When you drag a window under windows, the screen will stop playing
windows 下拖动窗口的时候,画面会停止播放 When you drag a window under windows, the screen will stop playing
During a resize or a move?
This is probably a SDL issue, but scrcpy uses a workaround:
https://github.com/Genymobile/scrcpy/blob/ed84e18b1ae3e51d368f8c7bc88ba4db088e6855/app/src/screen.c#L310-L320
So both resizing and moving should not freeze the mirroring.
Which scrcpy version do you use? Which windows version?
用鼠标拖动和移动窗口的时候,画面都会冻结 When you drag and move the window with the mouse, the screen will freeze scrcpy1.24 x64 windows11 x64
I have no access to a Windows machine right now. Could someone on Windows could reproduce/confirm?
@rom1v I can confirm this. The same thing happens for me on windows 11. I thought that was just the way it worked, didn't realize it was a bug. It would be nice if this could be fixed.
Thank you. Now that I have access to a Windows machine, I can reproduce too, even while resizing.
I thought the workaround for this problem in macOS during resize was also effective for Windows.
It looks like a SDL issue, but I have no workaround for this, I can't make the screen refresh even if I call the code to render from the resize/move callback :/
@rom1v would it be possible to use a different windowing method? For example, When I use qtscrcpy, which is a fork of scrcpy, this issue doesn't occur.
It's a bug in SDL. SDL3 might fix the issue, when it's released.
Migrating to Qt is not a plan currently.