On 17/11/13 00:15, elliot wrote: > [...] > > Thank you for reading and any comments/insight are appreciated. >
I'm not an expert and I never look for more than 60 FPS, meaning that if I can get them constant... it's perfect and I'm happy :) The first "non performant-wise" thing I can see is that you're updating the physics on_draw and you should be doing it on update and setting it to the times you want it to happen per second. I recommend you reading this: http://pyglet-current.usebox.net/programming_guide/time.html (assuming you're using pygler 1.2 from the repo) I don't know how Pymunk works, but I can see your entities.py is using Batch, so I guess that's OK (although you're setting blend behaviour and other stuff in each draw call and it would be enough to do it once). Regards, Juan -- jjm's home: http://www.usebox.net/jjm/ blackshell: http://blackshell.usebox.net/ -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/groups/opt_out.
