mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-09 12:49:25 -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();
|
UpdateGrab();
|
||||||
|
|
||||||
// [FG] [AM] Real FPS counter
|
// [FG] [AM] Real FPS counter
|
||||||
|
if (frametime_start)
|
||||||
{
|
{
|
||||||
static uint64_t last_time;
|
static uint64_t last_time;
|
||||||
uint64_t time;
|
uint64_t time;
|
||||||
@ -729,8 +730,8 @@ void I_FinishUpdate(void)
|
|||||||
|
|
||||||
time = frametime_start - last_time;
|
time = frametime_start - last_time;
|
||||||
|
|
||||||
// Update FPS counter every 10th of second
|
// Update FPS counter every second
|
||||||
if (time >= 100000)
|
if (time >= 1000000)
|
||||||
{
|
{
|
||||||
fps = (frame_counter * 1000000) / time;
|
fps = (frame_counter * 1000000) / time;
|
||||||
frame_counter = 0;
|
frame_counter = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user