From c41e6a3e7e5eeb905a337a108021244bdbcbffaa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 18 May 2017 12:47:44 -0700 Subject: [PATCH] gamnit: differentiate background from default material and explain perf stats MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gamnit/examples/template/src/template.nit | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/gamnit/examples/template/src/template.nit b/lib/gamnit/examples/template/src/template.nit index 8439b29..9c2c220 100644 --- a/lib/gamnit/examples/template/src/template.nit +++ b/lib/gamnit/examples/template/src/template.nit @@ -63,8 +63,8 @@ redef class App # cause glitches on mobiles devices with small depth buffer. world_camera.near = 1.0 - # Make the background blue and opaque. - glClearColor(0.0, 0.0, 1.0, 1.0) + # Make the background sky blue and opaque. + glClearColor(0.5, 0.8, 1.0, 1.0) # If the first command line argument is an integer, add extra sprites. if args.not_empty and args.first.is_int then @@ -109,8 +109,9 @@ redef class App if event isa QuitEvent or (event isa KeyEvent and event.name == "escape" and event.is_up) then # When window close button, escape or back key is pressed - # show the average FPS over the last few seconds. - print "{current_fps} fps" + print "Ran at {current_fps} FPS in the last few seconds" + + print "Performance statistics to detect bottlenecks:" print sys.perfs # Quit abruptly -- 1.7.9.5