diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-18 13:12:23 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-18 13:12:23 +0200 |
commit | a37239a9f5e2db97d49fd40d53d010b013ceeb3a (patch) | |
tree | 7c533620b6408a4d4efb3de0dbec73c4aef56304 /src/sliceitoff/display | |
parent | b00fe8fe50392a75529864fe03399fa3a0976143 (diff) |
vsync & player update
Diffstat (limited to 'src/sliceitoff/display')
-rw-r--r-- | src/sliceitoff/display/display.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sliceitoff/display/display.py b/src/sliceitoff/display/display.py index ae98134..e4cc670 100644 --- a/src/sliceitoff/display/display.py +++ b/src/sliceitoff/display/display.py @@ -8,7 +8,8 @@ class Display(): mode_info = pygame.display.Info() self.screen = pygame.display.set_mode( (mode_info.current_w, mode_info.current_h), - pygame.FULLSCREEN | pygame.SCALED ) + pygame.FULLSCREEN | pygame.SCALED, + vsync = 1 ) Scaling.update_scaling(self.screen.get_size()) def update(self, groups = None): |