comparison pytouhou/ui/sdl/backend.pyx @ 589:0768122da817

Add a frameskip option, and use swap interval to implement it.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 10 Oct 2014 15:59:11 +0200
parents 8f51e34d911c
children 80687f258001
comparison
equal deleted inserted replaced
588:7a82c4b52b16 589:0768122da817
8 def init(_): 8 def init(_):
9 global GameRenderer 9 global GameRenderer
10 from pytouhou.ui.sdl.gamerenderer import GameRenderer 10 from pytouhou.ui.sdl.gamerenderer import GameRenderer
11 11
12 12
13 def create_window(title, x, y, width, height): 13 def create_window(title, x, y, width, height, _):
14 window = Window(title, x, y, width, height, sdl.WINDOW_SHOWN) 14 window = Window(title, x, y, width, height, sdl.WINDOW_SHOWN)
15 window.create_renderer(0) 15 window.create_renderer(0)
16 return window 16 return window