Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flicker Screen #4243

Open
KasaneRandall1 opened this issue May 22, 2024 · 1 comment
Open

Flicker Screen #4243

KasaneRandall1 opened this issue May 22, 2024 · 1 comment
Labels

Comments

@KasaneRandall1
Copy link

KasaneRandall1 commented May 22, 2024

  • Operating system: Windows
  • Python version: 3.12.3
  • SDL version: 2.28.3
  • PyGame version 2.5.2

Current behavior:
So i updated both Pygame and Python(3.10.5) and currently when i blit an img onto screen, the whole window start to flicker between img and black background. the interval between flickering is rndom on each run.

Expected behavior:
Before the update there was no flickering

additional Info
Bg img Size is 1024x1024
tested the code on laptop Linux Mint (Ubuntu), was way worse and faster flickering
init
class_main_menu
main_menu
display_flip

@IGR2020
Copy link

IGR2020 commented Jun 29, 2024

Try pygame.display.update() instead of pygame.display.flip()
Also try disabling threaded display functions and call it manually in the main loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants