From 7adc59fef43ae9741d455448770b585e28e87c98 Mon Sep 17 00:00:00 2001 From: Patrik Gornicz Date: Sat, 2 Aug 2008 15:56:58 -0400 Subject: [PATCH] added phonies to make, added fps to debug --- src/Makefile | 2 ++ src/debug.h | 3 +++ src/main.cpp | 6 ++++-- 3 files changed, 9 insertions(+), 2 deletions(-) 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 } } -- 2.10.2