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

Flickering issue on windows #14

Closed
Dissssy opened this issue Dec 17, 2023 · 11 comments
Closed

Flickering issue on windows #14

Dissssy opened this issue Dec 17, 2023 · 11 comments

Comments

@Dissssy
Copy link

Dissssy commented Dec 17, 2023

I'm writing a search utility that has overlay windows that will resize automatically as search results come in from various different sources, and as the window shrinks it leaves behind artifacts that flicker in and out (presumably being left in one of the buffers) my guess is they arent being cleared correctly? Is there something I can do?

@MrAliSalehi
Copy link
Contributor

i have the same problem, I think its related to egui and not directly to this overlay

@Dissssy
Copy link
Author

Dissssy commented Dec 17, 2023

unfortunate, its very odd behavior for sure.

@coderedart
Copy link
Owner

yeah. that's egui, and not really related to overlay. you can ask on egui repo instead. or on egui discord.

@MrAliSalehi
Copy link
Contributor

@Dissssy if you opened an issue please share it here🙏

@coderedart
Copy link
Owner

you will have the best chance of getting an answer if you can provide a small reproducible example. There's already plenty of issues if you search on egui's github repo. But without a proper reproducible example, its very hard to diagnose (and fix) it.

@Dissssy
Copy link
Author

Dissssy commented Dec 20, 2023

Much appreciated, I might someday and if i do ill definitely mention it here, but this is just a small side project just for me and doesn't bother me that much, I just figured i was missing something obvious, thank you though!

@MrAliSalehi
Copy link
Contributor

@coderedart
I tried reproducing this issue with egui and It didn't happen, I think the problem is actually the overlay,
it gets worse when you try to draw with the painter on the screen, it actually doesn't erase the previous frame and show everything

@coderedart
Copy link
Owner

do you have a small reproducible example that i can test?

@MrAliSalehi
Copy link
Contributor

you can run the examples, it would cause the same thing, I also sent you a video on discord, check it out)

@coderedart
Copy link
Owner

try running cargo update to use egui_render_glow 0.6.0. I forgot to disable scissor test before clearing the surface. pretty stupid mistake. So, it only cleared the part where scissor region was set in the last frame.

If it doesn't work, reopen the issue.

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

No branches or pull requests

3 participants