From 9bd58022bff2b0cb5f52112cfa2058c2b2fd4154 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 20 Mar 2019 02:01:10 +0100 Subject: Updated example Pong to use FPS --- example/pong.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'example') 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; -- cgit v1.2.3