As said on Discord #dev channel yesterday, PR #2113 introduces a lot of blocking issues.
These are the results of the tests done by me, @AndreMiras and @opacam :
-
sdl2==2.0.10 have issues that have been solved by the SDL2 team, so it needs to be bumped to 2.0.12.
-
sdl2==2.0.12 works but create freezes during runtime.
-
These freezes are definitely related to the new SDL_LockMutex / SDL_UnlockMutex mechanism they added for concurrency issues.
-
Commenting SDL_LockMutex on Touch related events fixes the freeze issue for non-fullscreen apps.
-
On fullscreen apps, the patch it's also needed on Resize, .. etc events.
I'm providing an attached patch that fixes the issues on top of 2.0.12, btw seems not a good idea to do that, so it needs some more investigation:
disable_mutex.txt
As said on Discord #dev channel yesterday, PR #2113 introduces a lot of blocking issues.
These are the results of the tests done by me, @AndreMiras and @opacam :
sdl2==2.0.10have issues that have been solved by the SDL2 team, so it needs to be bumped to2.0.12.sdl2==2.0.12works but create freezes during runtime.These freezes are definitely related to the new
SDL_LockMutex/SDL_UnlockMutexmechanism they added for concurrency issues.Commenting
SDL_LockMutexonTouchrelated events fixes the freeze issue for non-fullscreen apps.On fullscreen apps, the patch it's also needed on
Resize, .. etcevents.I'm providing an attached patch that fixes the issues on top of
2.0.12, btw seems not a good idea to do that, so it needs some more investigation:disable_mutex.txt