Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动应用时支持自定义参数 #575

Closed
BLACKCHARGE opened this issue Apr 22, 2023 · 9 comments
Closed

启动应用时支持自定义参数 #575

BLACKCHARGE opened this issue Apr 22, 2023 · 9 comments
Labels
enhancement New feature or request

Comments

@BLACKCHARGE
Copy link

Question 问题

一部分游戏的程序自带了DPI缩放设置,即使设置了应用程序高DPI替代游戏也会自动按照系统的缩放设置使用比较差的插值算法放大窗口,magpie只能捕获到已经被放大后的窗口,无法以游戏的原生分辨率捕获到窗口。
目前唯一的解决方案只有把系统的缩放设置为100%,这时游戏才会以原生分辨率窗口启动。
不知道有没有什么办法能够禁用程序的DPI缩放设置,比如启动时欺骗程序以100%缩放运行.

Logs files (optional) 日志文件(可选)

No response

@BLACKCHARGE BLACKCHARGE added the question Further information is requested label Apr 22, 2023
@hooke007
Copy link
Collaborator

hooke007 commented Apr 22, 2023

一部分游戏的程序自带了DPI缩放设置

举个例子?

@Blinue
Copy link
Owner

Blinue commented Apr 23, 2023

GDI 和 DwmSharedSurface 可以捕获到原生分辨率。

@BLACKCHARGE
Copy link
Author

GDI 和 DwmSharedSurface 可以捕获到原生分辨率。

似乎是无效的,我上传的日志分别是对于200%和100%缩放下使用GDI进行捕获。可以看到源窗口分辨率是不一样的,帧数也不同;
magpie.log
至于游戏,就是某些日式RPG,窗口名为chrome legacy window,游戏引擎不确定,但是图标是一样的

@BLACKCHARGE
Copy link
Author

image
目前筛出来的几款,除了Material Girl以外都不支持GDI和Dwm捕获,会黑屏

@hooke007
Copy link
Collaborator

对主程序创建快捷方式,目标后缀两项启动参数,示例

"D:\SteamLibrary\steamapps\common\Summer Memories\Game.exe" --high-dpi-support=1 --force-device-scale-factor=1

steam的话留意会弹窗,比如
Snipaste_2023-04-23_06-46-22

@BLACKCHARGE
Copy link
Author

对主程序创建快捷方式,目标后缀两项启动参数,示例

"D:\SteamLibrary\steamapps\common\Summer Memories\Game.exe" --high-dpi-support=1 --force-device-scale-factor=1

steam的话留意会弹窗,比如 Snipaste_2023-04-23_06-46-22

谢谢,这个好用,DPI缩放消失了,如果使用magpie启动游戏的时候也支持加入参数就更方便了

@BLACKCHARGE BLACKCHARGE changed the title 对于自带DPI缩放设置的的程序如何禁用DPI缩放 启动应用时支持添加参数禁用DPI缩放 Apr 23, 2023
@Blinue
Copy link
Owner

Blinue commented Apr 23, 2023

这个参数不是通用的,但可以增加一个自定义参数选项,只能在通过 Magpie 启动时附加。

@Blinue Blinue added enhancement New feature or request and removed question Further information is requested labels Apr 23, 2023
@Blinue Blinue added this to Magpie Apr 23, 2023
@Blinue Blinue moved this to Todo in Magpie Apr 23, 2023
@Blinue Blinue changed the title 启动应用时支持添加参数禁用DPI缩放 启动应用时支持自定义参数 Apr 23, 2023
@BLACKCHARGE
Copy link
Author

steam的话留意会弹窗,比如

多提一嘴,用steam启动游戏可以设置启动参数的,不会弹窗
image

@hooke007
Copy link
Collaborator

我知道,我就是演示给学习版用的

@Blinue Blinue moved this from Todo to In Progress in Magpie Apr 30, 2023
@Blinue Blinue moved this from In Progress to Done in Magpie May 2, 2023
@Blinue Blinue closed this as completed in 19d0954 May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

3 participants