Uneven V-sync
"Edition Chamäleon" <[email protected]> Mon, 16 Jan 2017 15:17:14 +0000
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
Hi there, I've got an issue with v-sync on android. My Game is running perfectly on my pc and my laptop on Windows with 60 frames per sec. All scrolling and moving is perfectly smooth, even if there are lots of sprites on the screen. But on Android I've got problems with a strongly fluctuating framerate. It varies from 18 fps to 45 fps. Even if I do no scrolling and almost no rendercopy. Playing the game, fps can take any number ( 22, 27, 33, 37, 39, 44, 45 ), means there is no common divisor. Looks like VSYNC isn't working at all, or background processes on my android device disturb the flow massively. [Shocked] Settings: using SDL 2.0.3 my game is in c++ Testdevices : Samsung S4 mini , Samsung S3 mini, Samsung Tab A6, Asus Nexus7, Trekstore Suftab 9.6 ( Testdevices reach from old to new and from weak to powerful, but all show the problem, seems it is not dependent on the processor speed ) SDL_RENDERER_ACCELERATED is on SDL_RENDERER_PRESENTVSYNC is on SDL_THREAD_PRIORITY_HIGH is set developing with 960 x 540 Pixel Background processes are dissabled in the developer options on the samsung device Any ideas how this can be fixed ? Thanks in advance, Michael _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org