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

Window is flickering when playing animation #1595

Closed
christooss opened this issue Feb 12, 2022 · 8 comments
Closed

Window is flickering when playing animation #1595

christooss opened this issue Feb 12, 2022 · 8 comments
Labels
platform: Linux Linux specific issue priority: high high priority type: bug bug

Comments

@christooss
Copy link

christooss commented Feb 12, 2022

Version of Dear PyGui

Version: 1.3.1 (same issue persists in 1.3.0)
Operating System: Arch Linux

My Issue/Question

I've tried to use the Raccoon Music player - https://github.com/bandit-masked/raccoon and when I try to use it, the animations are flickering. I've contacted the developer and they said this might be a DPG bug.

To Reproduce

  1. open app,
  2. start play (that start the animations (look at the video posted down there)
  3. pres stop
  4. press "close area" to close application.

Expected behavior

I expect animations to be smooth.

Video

https://www.youtube.com/watch?v=lnBaV-iZxE8

@christooss christooss added state: pending not addressed yet type: bug bug labels Feb 12, 2022
@Mstpyt
Copy link
Collaborator

Mstpyt commented Feb 12, 2022

Do you have a integraded graphic card ?

@christooss
Copy link
Author

I'm using Nvidia on 470.103.01 version of drivers.

@hoffstadt hoffstadt added platform: Linux Linux specific issue priority: high high priority and removed state: pending not addressed yet labels Feb 14, 2022
@hoffstadt
Copy link
Owner

Thanks for the report, we will look into this!

@bandit-masked
Copy link
Collaborator

bandit-masked commented Feb 14, 2022

@christooss You could try adding dpg.configure_app(auto_device=True) before calling dpg.create_viewport() in gui.gui. If you have two graphics cards, e.g. one integrated and one external, this command would force DPG to use the external (the best) graphics card. I have never used it -- I don't have an external graphics card -- but Illu has used this with success with his application.

@christooss
Copy link
Author

Same issues apply, no change with adding configure_app thingy.

@hoffstadt
Copy link
Owner

Still looking into this!

@christooss
Copy link
Author

christooss commented Mar 11, 2022

I have "flickering" issues when resizing window too.

https://youtu.be/IYw-EkIXP5o

I think these two issues are related. More info about my system that might be useful: I'm running Cinnamon that doesn't support Wayland so I'm running Xorg.

@bandit-masked
Copy link
Collaborator

Hopefully fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Linux Linux specific issue priority: high high priority type: bug bug
Projects
None yet
Development

No branches or pull requests

4 participants