Minor optimization
parent
a104409677
commit
1f6f8b4552
|
@ -118,8 +118,11 @@ elif what_to_run == 'level':
|
||||||
screen_transform = PositionScale((0, 0), (1.5, 1.5))
|
screen_transform = PositionScale((0, 0), (1.5, 1.5))
|
||||||
|
|
||||||
pygame.init()
|
pygame.init()
|
||||||
|
# optimize performance
|
||||||
screen = pygame.display.set_mode((12 * ConstantsParser.CONFIG.level_size[0] * screen_transform.scale[0],
|
screen = pygame.display.set_mode((12 * ConstantsParser.CONFIG.level_size[0] * screen_transform.scale[0],
|
||||||
12 * ConstantsParser.CONFIG.level_size[1] * screen_transform.scale[1]))
|
12 * ConstantsParser.CONFIG.level_size[1] * screen_transform.scale[1]),
|
||||||
|
flags=pygame.HWSURFACE | pygame.DOUBLEBUF,
|
||||||
|
vsync=1)
|
||||||
|
|
||||||
pygame.display.set_caption("PM GAME")
|
pygame.display.set_caption("PM GAME")
|
||||||
clock = pygame.time.Clock()
|
clock = pygame.time.Clock()
|
||||||
|
|
Loading…
Reference in New Issue