google-code-export / pyglet

Automatically exported from code.google.com/p/pyglet
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Doc intro need chapter on animation #596

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
There is no information how to trigger a redraw in pyglet intro tutorial. There 
could be a separate chapter for that.

Original issue reported on code.google.com by techtonik@gmail.com on 23 Jul 2012 at 7:13

GoogleCodeExporter commented 9 years ago
The starting point is to measure FPS. With current `Hello, World!` FPS is equal 
to how many times per second user clicks a keyboard. The next technique should 
trigger draw at the end of on_draw handler to measure maximum FPS and show 
where 100% CPU load comes from. And the last technique should illustrate how to 
cap FPS to a certain level, how to detect lag or if CPU stays free. 

Original comment by techtonik@gmail.com on 23 Jul 2012 at 7:56