You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that some devices will close apps that are not keeping up with the screen refresh rate. A user reported that when the frame limiter tries to keep the game running at 60fps on a 120hz display the app will be terminated with no error report or other indications after about 3 minutes.
We made the following conclusions:
The frame limiter isn't getting correct information regarding the display
V-sync and frame limiter should not be enabled at the same time, preferably we should change it to an enum and not two bool options (this would also help clear existing bad configs)
Android will enable v-sync after context switching between apps even if it was off when the app was started
It's a bit unclear if it's possible to query the v-sync status in SDL2, from what I read things have changed in this regard for SDL3, but maybe this works:
Uint32 flags;
if (SDL_GetRendererInfo(renderer, &flags) == 0) {
if (flags & SDL_RENDERER_PRESENTVSYNC) {
printf("VSync is enabled.\n");
} else {
printf("VSync is not enabled.\n");
}
} else {
// Handle errorprintf("Could not get renderer info! SDL_Error: %s\n", SDL_GetError());
}
It is in fact possible that we should more or less assume that all Android devices are vsync capable and should set it as enabled by default and not provide an option to switch it on (and have the limiter off as well).
To Reproduce
1: install DevilutionX on Android with a 120hz display and make sure it's set to 120hz and not 60hz.
Expected Behavior
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Operating System
Windows x64
DevilutionX version
1.5.2
Describe
It appears that some devices will close apps that are not keeping up with the screen refresh rate. A user reported that when the frame limiter tries to keep the game running at 60fps on a 120hz display the app will be terminated with no error report or other indications after about 3 minutes.
We made the following conclusions:
It's a bit unclear if it's possible to query the v-sync status in SDL2, from what I read things have changed in this regard for SDL3, but maybe this works:
It is in fact possible that we should more or less assume that all Android devices are vsync capable and should set it as enabled by default and not provide an option to switch it on (and have the limiter off as well).
To Reproduce
1: install DevilutionX on Android with a 120hz display and make sure it's set to 120hz and not 60hz.
Expected Behavior
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: