-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Little Freeze every 3 sec. #425
Comments
What about version 1.4? (this may help to find the issue) What if you take 1.6 release, then replace all DLL files by those from 1.3? Also display FPS in the console (Ctrl+i in the scrcpy window). |
Sorry, i don't come here very often. |
To know if the problem comes from from libav or SDL, could you replace only |
Ok. |
OK, so this is due a change between SDL 2.0.8 and 2.0.9. So it should also work with SDL2.dll from scrcpy v1.4, right? (SDL 2.0.9 is in the Windows release since scrcpy v1.5) |
Yes it is |
It may be related to https://discourse.libsdl.org/t/unstable-frame-rate-unexpectedly/25783. A workaround to make it work with SDL 2.0.9 could be: diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c
index 61b3f8d..3cdcedc 100644
--- a/app/src/scrcpy.c
+++ b/app/src/scrcpy.c
@@ -44,7 +44,9 @@ static struct input_manager input_manager = {
// init SDL and set appropriate hints
static bool
sdl_init_and_configure(bool display) {
- uint32_t flags = display ? SDL_INIT_VIDEO : SDL_INIT_EVENTS;
+ uint32_t flags = display
+ ? SDL_INIT_VIDEO | SDL_INIT_JOYSTICK
+ : SDL_INIT_EVENTS;
if (SDL_Init(flags)) {
LOGC("Could not initialize SDL: %s", SDL_GetError());
return false; |
Revert "Update SDL (2.0.9) for Windows" Several users experienced freezes with SDL 2.0.9. This reverts commit a5787dc. See: - <#425> - <https://discourse.libsdl.org/t/unstable-frame-rate-unexpectedly/25783>
Hello,
first thank you for this great app !
My issue is that with the lastest version (1.5 and 1.6) I have some little freeze (only in the app, not on my smartphone). Every around 3 sec. there is a freeze.
So, I came back on the 1.3 version and it works fine.
Smartphone Honor 8 Pro (DUK-L09) with Android 8.0, and Windows 10 Pro.
Sorry for my english ^^
The text was updated successfully, but these errors were encountered: