comparison pytouhou/options.py @ 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 e7a4731a278b
children e15672733c93
comparison
equal deleted inserted replaced
588:7a82c4b52b16 589:0768122da817
140 netplay_group.add_argument('--friendly-fire', action='store_true', help='Allow friendly-fire during netplay.') 140 netplay_group.add_argument('--friendly-fire', action='store_true', help='Allow friendly-fire during netplay.')
141 141
142 graphics_group = parser.add_argument_group('Graphics options') 142 graphics_group = parser.add_argument_group('Graphics options')
143 graphics_group.add_argument('--backend', metavar='BACKEND', choices=['opengl', 'sdl'], nargs='*', help='Which backend to use (opengl or sdl).') 143 graphics_group.add_argument('--backend', metavar='BACKEND', choices=['opengl', 'sdl'], nargs='*', help='Which backend to use (opengl or sdl).')
144 graphics_group.add_argument('--fps-limit', metavar='FPS', type=int, help='Set fps limit. A value of 0 disables fps limiting, while a negative value limits to 60 fps if and only if vsync doesn’t work.') 144 graphics_group.add_argument('--fps-limit', metavar='FPS', type=int, help='Set fps limit. A value of 0 disables fps limiting, while a negative value limits to 60 fps if and only if vsync doesn’t work.')
145 graphics_group.add_argument('--frameskip', metavar='FRAMESKIP', type=int, help='Set the frameskip, as 1/FRAMESKIP, or disabled if 0.')
145 graphics_group.add_argument('--no-background', action='store_false', help='Disable background display (huge performance boost on slow systems).') 146 graphics_group.add_argument('--no-background', action='store_false', help='Disable background display (huge performance boost on slow systems).')
146 graphics_group.add_argument('--no-particles', action='store_false', help='Disable particles handling (huge performance boost on slow systems).') 147 graphics_group.add_argument('--no-particles', action='store_false', help='Disable particles handling (huge performance boost on slow systems).')
147 graphics_group.add_argument('--no-sound', action='store_false', help='Disable music and sound effects.') 148 graphics_group.add_argument('--no-sound', action='store_false', help='Disable music and sound effects.')
148 149
149 opengl_group = parser.add_argument_group('OpenGL backend options') 150 opengl_group = parser.add_argument_group('OpenGL backend options')