From: Patrik Gornicz Date: Sat, 2 Aug 2008 19:56:58 +0000 (-0400) Subject: added phonies to make, added fps to debug X-Git-Tag: physics-premerge~172 X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=commitdiff_plain;h=7adc59fef43ae9741d455448770b585e28e87c98;p=libbear.git added phonies to make, added fps to debug --- diff --git a/src/Makefile b/src/Makefile index 6168eb3..7964286 100644 --- a/src/Makefile +++ b/src/Makefile @@ -106,6 +106,7 @@ distclean: clean tags: ${SRCS} ctags $^ +.PHONY: tar tar: ${Q1}echo "tar: physics.tar.bz2" ${Q2}rm -f physics.tar # prevents appending @@ -113,6 +114,7 @@ tar: tar -C ../.. -rf physics.tar "physics/src/$$f"; done ${Q2}bzip2 physics.tar +.PHONY: git-tar git-tar: ${Q1}echo "git-archive: ../physics.tar.bz2" ${Q2}cd ..; git-archive --prefix=physics/ HEAD | bzip2 > physics.tar.bz2 diff --git a/src/debug.h b/src/debug.h index c8dfdb4..1a9fc02 100644 --- a/src/debug.h +++ b/src/debug.h @@ -4,6 +4,9 @@ // comment out when not debugging #define DEBUGGING +// comment out to prevent FPS and UPS printing +#define FPSUPS + #include using std::cerr; using std::cout; diff --git a/src/main.cpp b/src/main.cpp index 7313306..0f186bd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -144,8 +144,10 @@ void updateFPSCounters() last_Second = tickCountMicro(); - //cout << "ups:\t" << ups << endl; - //cout << "fps:\t" << fps << endl; +#ifdef FPSUPS + cout << "ups:\t" << ups << endl; + cout << "fps:\t" << fps << endl; +#endif } }