mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-08-03 12:47:01 -04:00
update FPS counter every second, don't show DRS frame skip
This commit is contained in:
parent
1d128eca75
commit
f8906440eb
@ -720,6 +720,7 @@ void I_FinishUpdate(void)
|
||||
UpdateGrab();
|
||||
|
||||
// [FG] [AM] Real FPS counter
|
||||
if (frametime_start)
|
||||
{
|
||||
static uint64_t last_time;
|
||||
uint64_t time;
|
||||
@ -729,8 +730,8 @@ void I_FinishUpdate(void)
|
||||
|
||||
time = frametime_start - last_time;
|
||||
|
||||
// Update FPS counter every 10th of second
|
||||
if (time >= 100000)
|
||||
// Update FPS counter every second
|
||||
if (time >= 1000000)
|
||||
{
|
||||
fps = (frame_counter * 1000000) / time;
|
||||
frame_counter = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user