comparison pytouhou/ui/sdl/gamerenderer.py @ 533:de778a80820a

Optimise Clock a bit more.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 10 Feb 2014 18:03:50 +0100
parents dacdcca59b66
children b895ed2de71f
comparison
equal deleted inserted replaced
532:dacdcca59b66 533:de778a80820a
66 game.cancelled_bullets, game.items, 66 game.cancelled_bullets, game.items,
67 game.labels)) 67 game.labels))
68 68
69 69
70 def render_interface(self, interface, boss): 70 def render_interface(self, interface, boss):
71 interface.labels['framerate'].set_text('%.2ffps' % self.window.clock.get_fps()) 71 interface.labels['framerate'].set_text('%.2ffps' % self.window.get_fps())
72 72
73 self.window.win.render_set_viewport(Rect(0, 0, interface.width, interface.height)) 73 self.window.win.render_set_viewport(Rect(0, 0, interface.width, interface.height))
74 self.window.win.render_set_clip_rect(Rect(0, 0, interface.width, interface.height)) 74 self.window.win.render_set_clip_rect(Rect(0, 0, interface.width, interface.height))
75 75
76 items = [item for item in interface.items if item.anmrunner and item.anmrunner.running] 76 items = [item for item in interface.items if item.anmrunner and item.anmrunner.running]