diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-03-20 02:01:10 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-03-20 02:01:10 +0100 |
commit | 9bd58022bff2b0cb5f52112cfa2058c2b2fd4154 (patch) | |
tree | 981a70992f213e7418503ce628a3a40a6b455375 | |
parent | 0f69b2f47a87c58ea01c4a4ae4157b4ee92a9d89 (diff) | |
download | termgl-9bd58022bff2b0cb5f52112cfa2058c2b2fd4154.tar.gz |
Updated example Pong to use FPS
-rw-r--r-- | example/pong.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/example/pong.cpp b/example/pong.cpp index 568010e..a42bb55 100644 --- a/example/pong.cpp +++ b/example/pong.cpp @@ -85,8 +85,7 @@ int main() render.render(); - //printf ("%i %i %i %i %i", iEdgeTop, iEdgeBottom, iEdgeLeft, iEdgeRight, iAball); - /*return 0;*/ + render.setTargetFPS(20); unsigned int cc = 0; @@ -137,8 +136,6 @@ int main() screen.write(); render.render(); - - usleep(50*1000); } return 0; |