mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 21:47:23 +00:00
[client] drop the default FPS target to 60 now that the fps is dynamic
This commit is contained in:
parent
26eea64689
commit
ae2ffd0a28
@ -1332,12 +1332,12 @@ static int lg_run()
|
|||||||
SDL_DisplayMode current;
|
SDL_DisplayMode current;
|
||||||
if (SDL_GetCurrentDisplayMode(SDL_GetWindowDisplayIndex(state.window), ¤t) == 0)
|
if (SDL_GetCurrentDisplayMode(SDL_GetWindowDisplayIndex(state.window), ¤t) == 0)
|
||||||
{
|
{
|
||||||
state.frameTime = 1e9 / (current.refresh_rate * 2);
|
state.frameTime = 1e9 / current.refresh_rate;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DEBUG_WARN("Unable to capture monitor refresh rate using the default FPS Limit: 200");
|
DEBUG_WARN("Unable to capture monitor refresh rate using the default FPS Limit: 60");
|
||||||
state.frameTime = 1e9 / 200;
|
state.frameTime = 1e9 / 60;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user