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

"Auto scale when in foreground" not working for some game #487

Closed
kato-megumi opened this issue Feb 24, 2023 · 8 comments
Closed

"Auto scale when in foreground" not working for some game #487

kato-megumi opened this issue Feb 24, 2023 · 8 comments
Labels
bug Something isn't working priority: normal

Comments

@kato-megumi
Copy link
Contributor

Magpie version 程序版本

v0.10.0-preview2

Windows version 系统版本

Windows 11 Education 22H2 22621.1265

Related screenshot (optional) 相关截图(可选)

Untitled.video.-.Made.with.Clipchamp.mp4

Reproduction steps 复现步骤

  • Add game in profiles (trial version can be download at http://www.purplesoftware.jp/products/aoitori/index.html#trial )
  • Enable auto scale when in foreground
  • Click Launch
    Game should be launched and scaled to full screen but instead it remain small. After switch to another program and switch back, it got scaled like normal.

Log files 日志文件

2023-02-25 01:01:09.240|info|MagApp.cpp:_CreateHostWnd|缩放窗口尺寸:2560x1600
2023-02-25 01:01:09.241|info|DeviceResources.cpp:Initialize|可变刷新率支持:是
2023-02-25 01:01:09.249|info|DeviceResources.cpp:LogAdapter|当前图形适配器:
VendorId:0x10de
DeviceId:0x2484
描述:NVIDIA GeForce RTX 3070
2023-02-25 01:01:09.304|info|DeviceResources.cpp:Initialize|已创建 D3D Device
功能级别:11.1
2023-02-25 01:01:09.306|info|DeviceResources.cpp:_CreateSwapChain|Hardware Composition 支持:是
2023-02-25 01:01:09.306|info|DeviceResources.cpp:_CreateSwapChain|Multiplane Overlay 支持:是
2023-02-25 01:01:09.306|info|MagApp.cpp:_InitFrameSource|当前捕获模式:DwmSharedSurface
2023-02-25 01:01:09.306|info|DwmSharedSurfaceFrameSource.cpp:Initialize|源窗口 DPI 缩放为 1
2023-02-25 01:01:09.307|info|DwmSharedSurfaceFrameSource.cpp:Initialize|DwmSharedSurfaceFrameSource 初始化完成
2023-02-25 01:01:09.307|info|MagApp.cpp:_InitFrameSource|源窗口尺寸:1274x685
2023-02-25 01:01:09.308|info|EffectCacheManager.cpp:_LoadFromMemCache|已读取缓存 cache\Anime4K#Anime4K_Upscale_UL_3d0a410fcbdceaf9f
2023-02-25 01:01:09.308|info|Renderer.cpp:CompileEffect|编译 Anime4K\Anime4K_Upscale_UL.hlsl 用时 0.781 毫秒
2023-02-25 01:01:09.313|info|CursorManager.cpp:Initialize|CursorManager 初始化完成
2023-02-25 01:01:09.323|info|CursorManager.cpp:GetCursorTexture|已解析光标:0x10019
类型:Color
2023-02-25 01:01:09.334|info|CursorManager.cpp:GetCursorTexture|已解析光标:0x10007
类型:Color
2023-02-25 01:01:09.366|info|Renderer.cpp:_CheckSrcState|源窗口位置或大小改变
2023-02-25 01:01:09.366|info|Renderer.cpp:Render|源窗口状态改变,退出全屏
2023-02-25 01:01:19.939|info|MagApp.cpp:_CreateHostWnd|缩放窗口尺寸:2560x1600
2023-02-25 01:01:19.940|info|DeviceResources.cpp:Initialize|可变刷新率支持:是
2023-02-25 01:01:19.946|info|DeviceResources.cpp:LogAdapter|当前图形适配器:
VendorId:0x10de
DeviceId:0x2484
描述:NVIDIA GeForce RTX 3070
2023-02-25 01:01:19.981|info|DeviceResources.cpp:Initialize|已创建 D3D Device
功能级别:11.1
2023-02-25 01:01:19.984|info|DeviceResources.cpp:_CreateSwapChain|Hardware Composition 支持:是
2023-02-25 01:01:19.984|info|DeviceResources.cpp:_CreateSwapChain|Multiplane Overlay 支持:是
2023-02-25 01:01:19.984|info|MagApp.cpp:_InitFrameSource|当前捕获模式:DwmSharedSurface
2023-02-25 01:01:19.984|info|DwmSharedSurfaceFrameSource.cpp:Initialize|源窗口 DPI 缩放为 1
2023-02-25 01:01:19.984|info|DwmSharedSurfaceFrameSource.cpp:Initialize|DwmSharedSurfaceFrameSource 初始化完成
2023-02-25 01:01:19.984|info|MagApp.cpp:_InitFrameSource|源窗口尺寸:1280x720
2023-02-25 01:01:19.985|info|EffectCacheManager.cpp:_LoadFromMemCache|已读取缓存 cache\Anime4K#Anime4K_Upscale_UL_3d0a410fcbdceaf9f
2023-02-25 01:01:19.985|info|Renderer.cpp:CompileEffect|编译 Anime4K\Anime4K_Upscale_UL.hlsl 用时 0.81700003 毫秒
2023-02-25 01:01:19.990|info|CursorManager.cpp:Initialize|CursorManager 初始化完成
2023-02-25 01:01:19.998|info|CursorManager.cpp:GetCursorTexture|已解析光标:0x9da0559
类型:Masked Color
2023-02-25 01:01:20.834|info|Renderer.cpp:_CheckSrcState|前台窗口已改变
2023-02-25 01:01:20.834|info|Renderer.cpp:Render|源窗口状态改变,退出全屏

@kato-megumi kato-megumi added the bug Something isn't working label Feb 24, 2023
@Blinue
Copy link
Owner

Blinue commented Feb 25, 2023

This is a known issue, I will fix it soon.

@Blinue Blinue added this to Magpie Feb 26, 2023
@Blinue Blinue moved this to Todo in Magpie Feb 26, 2023
@Blinue Blinue moved this from Todo to Done in Magpie Mar 1, 2023
@kato-megumi
Copy link
Contributor Author

New problem crop up
Magpie version
dbedf20
Video

Untitled.video.-.Made.with.Clipchamp.mp4

Game refuse to launch, say "デバイスの初期化に失敗しました" (Translated: Device initialization failed)
Log files
magpie.log

@Blinue
Copy link
Owner

Blinue commented Mar 4, 2023

Sorry, I didn't realize it was the same game. I am currently investigating

@Blinue
Copy link
Owner

Blinue commented Mar 4, 2023

2023-03-04.11-39-29.mp4

Cannot reproduce it, perhaps you should check your game settings.

@kato-megumi
Copy link
Contributor Author

kato-megumi commented Mar 6, 2023

After clean game's settings and try a bunch of things, it seem bug appear more frequently with heavier effect (half the time with FSR, every time with Anime4K upscale ul). What effect did you use?

a.mp4

I dont know it related or not but it seemed like disable effect cache increase bug appear rate.

@Blinue
Copy link
Owner

Blinue commented Mar 6, 2023

I was able to reproduce the problem after turning on "Simulate exclusive fullscreen when scaling". Do you have this option turned on?

@kato-megumi
Copy link
Contributor Author

Yes, I also turn on "Simulate exclusive fullscreen when scaling".
Oh, the problem go away if I turn it off.

@Blinue
Copy link
Owner

Blinue commented Mar 7, 2023

Created #495 to track it

@Blinue Blinue closed this as completed in be59c6c Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: normal
Projects
Archived in project
Development

No branches or pull requests

2 participants