Reduce Flicker dramatically (Double Buffer)
Re: Reduce Flicker dramatically (Double Buffer)
But if gui have background image this way doesnt work! How make it with background image ???
My questions are baffling!
-
- Posts: 343
- Joined: 08 Jun 2019, 17:36
Re: Reduce Flicker dramatically (Double Buffer)
Also having listview issues. Causing a pretty large cpu spike with the double buffer added on a GUI that contains a listview. Curious of any non-hacky fixes here
Re: Reduce Flicker dramatically (Double Buffer)
@djuga works well with background images too in my experience both with transparent pngs and normal images.
Maybe you want to try movedraw instead of move, but it's not always necessary.
Maybe you want to try movedraw instead of move, but it's not always necessary.
Re: Reduce Flicker dramatically (Double Buffer)
Thank you, thank you, thank you, I was about to port a GUI to Python just to avoid this problem and this simple line eliminated the flicker completely.
Re: Reduce Flicker dramatically (Double Buffer)
Awesome! This one line makes all the difference, thanks for sharing!
-
- Posts: 61
- Joined: 01 Sep 2020, 09:49
Re: Reduce Flicker dramatically (Double Buffer)
@manehscripts
@hasantr
Did you find solution for this?
@hasantr
Did you find solution for this?
Re: Reduce Flicker dramatically (Double Buffer)
No, I don't think there is a solution available yet.
Re: Reduce Flicker dramatically (Double Buffer)
For listview You can use LVS_EX_DOUBLEBUFFER.
Re: Reduce Flicker dramatically (Double Buffer)
It does work with background images in my experience.
Here I have a background map image and I paint the player/enemy (another two different images) on top of it based on memory coordinates.
It's using this because it needs to be updated in between 30~60fps.
Re: Reduce Flicker dramatically (Double Buffer)
Been struggling with flickering GUI from quickly updating GuiControl's for the longest time... added that 1 line, problem solved. Thank you good sir.
YOU'RE NOT ALEXANDER
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: No registered users and 85 guests