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

Magpie doesn't scale at all #967

Open
Bibe10 opened this issue Jul 13, 2024 · 9 comments
Open

Magpie doesn't scale at all #967

Bibe10 opened this issue Jul 13, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@Bibe10
Copy link

Bibe10 commented Jul 13, 2024

Magpie version 程序版本

0.11.1

Windows version 系统版本

Windows 11

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

No response

Reproduction steps 复现步骤

  • Launch sims RPCSims2 trough desktop
  • Open Magpie
  • Clicking on scale after 5 seconds

So I download Magpie for the first time, I used the short keys shift, windows and A to scale. Everything was okay. I changed the hotkeys to something simple like shift S. It worked 2 times and than suddenly magpie doesn't react to my game. Not with hotkeys or just scaling after 5 seconds. I reinstalled but still everything the same.

Log files 日志文件

magpie.1.log

@Bibe10 Bibe10 added the bug Something isn't working label Jul 13, 2024
@Bibe10
Copy link
Author

Bibe10 commented Jul 14, 2024

So It scales again but after a few times switching between the apps it doesn't scale anymore, the "Scale after 3s" is also disabled

@Blinue
Copy link
Owner

Blinue commented Jul 14, 2024

You've configured the scaling mode to scale by 30 times, but the GPU can't handle such a large image. I recommend adjusting your configuration to match the setup shown in the image below:

image

@Bibe10
Copy link
Author

Bibe10 commented Jul 15, 2024

The game scales but my main problem is that after a while it doesn't scale anymore. The scaling timer is also disabled and all what I can do is restart my computer which is frustrating.

@Bibe10
Copy link
Author

Bibe10 commented Jul 31, 2024

Can you please help me?

@Blinue
Copy link
Owner

Blinue commented Aug 1, 2024

Sorry for the delayed response. Could you provide new logs to help me troubleshoot the issue?

@Bibe10
Copy link
Author

Bibe10 commented Aug 1, 2024

magpie.1.log

@Blinue
Copy link
Owner

Blinue commented Aug 1, 2024

Does this issue occur with every game or only with RPCSims2?

@Bibe10
Copy link
Author

Bibe10 commented Aug 1, 2024

I only use it with sims 2. It is frustrating that the game doesn't scale anymore after switching a few times between the game and the webbrowser

@Blinue
Copy link
Owner

Blinue commented Aug 2, 2024

I'm not sure what happened, but the logs show some oddities.

Firstly, the logs indicate that Magpie does not try to disable the round corner during capture. This code is always executed on Windows 11, yet no log entry was created, suggesting that Magpie may have detected a different OS version.

if (_HasRoundCornerInWin11()) {
if (Win32Utils::GetOSVersion().IsWin11()) {
INT attr = DWMWCP_DONOTROUND;
HRESULT hr = DwmSetWindowAttribute(
hwndSrc, DWMWA_WINDOW_CORNER_PREFERENCE, &attr, sizeof(attr));
if (FAILED(hr)) {
Logger::Get().ComError("禁用窗口圆角失败", hr);
} else {
Logger::Get().Info("已禁用窗口圆角");
_roundCornerDisabled = true;
}
}
}

logs:

2024-07-31 18:43:21.247|info|Renderer.cpp:426|_InitFrameSource|当前捕获模式: Graphics Capture
2024-07-31 18:43:21.546|info|GraphicsCaptureFrameSource.cpp:90|_Initialize|GraphicsCaptureFrameSource 初始化完成

Secondly, Magpie immediately attempted to rescale after the foreground window changed, which doesn't align with the code logic.

logs:

2024-07-31 18:43:40.601|info|ScalingWindow.cpp:481|_CheckSrcState|前台窗口已改变
2024-07-31 18:43:40.601|info|ScalingWindow.cpp:318|Render|源窗口状态改变,退出全屏
2024-07-31 18:43:45.429|info|ScalingOptions.cpp:40|Log|缩放选项
IsWindowResizingDisabled: false
IsDebugMode: false
...

Are you running Magpie in a special environment, such as a virtual machine or compatibility mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants