Minor optimization

main
Skyball2000 2023-03-28 17:34:58 +02:00
parent a104409677
commit 1f6f8b4552
1 changed files with 4 additions and 1 deletions

View File

@ -118,8 +118,11 @@ elif what_to_run == 'level':
screen_transform = PositionScale((0, 0), (1.5, 1.5))
pygame.init()
# optimize performance
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")
clock = pygame.time.Clock()