mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-11-25 19:31:36 +00:00
reduce noise from FPS counter
This commit is contained in:
parent
6664d8b323
commit
368b385ccf
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include "timeutil.h"
|
#include "timeutil.h"
|
||||||
|
|
||||||
//#define SHOWFPS
|
#define SHOWFPS
|
||||||
//#define SHOWPC
|
//#define SHOWPC
|
||||||
//#define DEBUGCPU
|
//#define DEBUGCPU
|
||||||
//#define SHOWMEMPAGE
|
//#define SHOWMEMPAGE
|
||||||
@ -264,11 +264,9 @@ int main(int argc, char *argv[])
|
|||||||
char buf[25];
|
char buf[25];
|
||||||
sprintf(buf, "%lu FPS", loopCount / lenSecs);
|
sprintf(buf, "%lu FPS", loopCount / lenSecs);
|
||||||
g_display->debugMsg(buf);
|
g_display->debugMsg(buf);
|
||||||
if (lenSecs >= 60) {
|
|
||||||
startAt = time(NULL);
|
startAt = time(NULL);
|
||||||
loopCount = 0;
|
loopCount = 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef SHOWPC
|
#ifdef SHOWPC
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user