Fix overflow in fps counter at 2147 fps (#1725)

This commit is contained in:
gendlin 2024-06-03 01:07:31 -04:00 committed by GitHub
parent 31c9e45453
commit 0f728d629b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}