mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 14:33:46 -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
|
// Update FPS counter every second
|
||||||
if (time >= 1000000)
|
if (time >= 1000000)
|
||||||
{
|
{
|
||||||
fps = (frame_counter * 1000000) / time;
|
fps = ((uint64_t)frame_counter * 1000000) / time;
|
||||||
frame_counter = 0;
|
frame_counter = 0;
|
||||||
last_time = frametime_start;
|
last_time = frametime_start;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user