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 works very inconsistently with NVDIA GameStream #239

Closed
davidmwest opened this issue Dec 10, 2021 · 4 comments
Closed

Magpie works very inconsistently with NVDIA GameStream #239

davidmwest opened this issue Dec 10, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@davidmwest
Copy link

Magpie version 程序版本

.71

Windows version 系统版本

Win 11 Professional

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

IMG_0752

Reproduction steps 复现步骤

Set up https://moonlight-stream.org/

Stream to your device. With magpie running and enhancing the window, one of two things seems to happen:

  1. The game works, but as soon as you alt tab, and come back, you have to restart both magpie and the game for it to work again. Otherwise magpie seems to "freeze". Audio still works and the mouse can still click, but the video is stuck on a single frame, and the displayed framerate is 0.
  2. The game works, but only for about 5 seconds, then the video freezes. Audio continues and mouse clicking still works.

Given that magpie usually works when running Moonlight during a fresh stream (new instance of magpie, new instance of the game window), I suspect the fix is probably fairly simple, but of course I am no expert here.

Lastly, even while magpie appears to be frozen to the moonlight gamestream client, if I go to my PC, I can see that magpie is working as intended. So the bug here is likely at the intersection of magpie's "capture" feature and "gamestream". It would be nice to get some official developer support here. There are dozens of us playing via Gamestream. Dozens!

Log files 日志文件

Latest experimental:
Magpie.log
Runtime.log

.71:
Runtime.log
Magpie.log
Runtime.1.log

@davidmwest davidmwest added the bug Something isn't working label Dec 10, 2021
@hooke007
Copy link
Collaborator

#141

@davidmwest
Copy link
Author

Checking "Disable Directflip" in options seems to fix the issues I'm seeing. I was able to enjoy a mostly contiguous gaming session of "Boku to Koi Suru Ponkotsu Akuma". I will do more testing under other scenarios when I have time.

I have no idea what "Directflip" is, but it does seem to cause interference with Gamestream.

@davidmwest
Copy link
Author

davidmwest commented Dec 11, 2021

https://devblogs.microsoft.com/directx/dxgi-flip-model/

When should I use blt model?
There is one piece of functionality that flip model does not provide: the ability to have multiple different APIs producing contents, which all layer together into the same HWND, on a present-by-present basis. An example of this would be using D3D to draw a window background, and then GDI to draw something on top, or using two different graphics APIs, or two swapchains from the same API, to produce alternating frames. If you don’t require HWND-level interop between graphics components, then you don’t need blt model.

@Blinue
Copy link
Owner

Blinue commented Dec 11, 2021

Directflip is a technique to reduce input latency, but it is incompatible with some games/streaming services, so I have provided an option to turn it off.

Go to #141 for further discussion

PS. Despite the work at hand, I will prioritize this issue.

@Blinue Blinue closed this as completed Dec 11, 2021
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

3 participants