if(!STAT(SHOWFPS))
return;
- float currentTime = gettime(GETTIME_REALTIME);
+ float currentTime = gettime(GETTIME_FRAMESTART);
+
showfps_framecounter += 1;
if(currentTime - showfps_prevfps_time > STAT(SHOWFPS))
{
STATIC_INIT(fpscounter_init)
{
- float currentTime = gettime(GETTIME_REALTIME);
+ float currentTime = gettime(GETTIME_FRAMESTART);
showfps_prevfps_time = currentTime; // we must initialize it to avoid an instant low frame sending
}