mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 21:38:39 -04:00
Fix overflow in fps counter at 2147 fps (#1725)
This commit is contained in:
parent
31c9e45453
commit
0f728d629b
@ -749,7 +749,7 @@ void I_FinishUpdate(void)
|
||||
// Update FPS counter every second
|
||||
if (time >= 1000000)
|
||||
{
|
||||
fps = (frame_counter * 1000000) / time;
|
||||
fps = ((uint64_t)frame_counter * 1000000) / time;
|
||||
frame_counter = 0;
|
||||
last_time = frametime_start;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user