projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reworked ups/fps/paused logic
[physics.git]
/
src
/
main.cpp
diff --git
a/src/main.cpp
b/src/main.cpp
index
e932742
..
0efd748
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-182,10
+182,14
@@
void updateFPSCounters()
last_Second = tickCountMicro();
last_Second = tickCountMicro();
-#ifdef FPSUPS
- cout << "ups:\t" << ups << endl;
- cout << "fps:\t" << fps << endl;
-#endif
+ if(cfg::showFPS())
+ {
+ cout << "fps:\t" << fps << endl;
+ }
+ if(cfg::showUPS())
+ {
+ cout << "ups:\t" << ups << endl;
+ }
}
}
}
}