Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[client] drop the default FPS target to 60 now that the fps is dynamic
  • Loading branch information
gnif committed May 21, 2020
1 parent 26eea64 commit ae2ffd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
B1-208-gc9ff1e1949+1
B1-209-g26eea64689+1
6 changes: 3 additions & 3 deletions client/src/main.c
Expand Up @@ -1332,12 +1332,12 @@ static int lg_run()
SDL_DisplayMode current;
if (SDL_GetCurrentDisplayMode(SDL_GetWindowDisplayIndex(state.window), &current) == 0)
{
state.frameTime = 1e9 / (current.refresh_rate * 2);
state.frameTime = 1e9 / current.refresh_rate;
}
else
{
DEBUG_WARN("Unable to capture monitor refresh rate using the default FPS Limit: 200");
state.frameTime = 1e9 / 200;
DEBUG_WARN("Unable to capture monitor refresh rate using the default FPS Limit: 60");
state.frameTime = 1e9 / 60;
}
}
else
Expand Down

0 comments on commit ae2ffd0

Please sign in to comment.