A computer-graphics technique for updating a dynamic image that greatly reduces the visual artifacts, especially flicker, caused by the screen pixel being changed. The new image is drawn in a "hidden" buffer while the user still sees the old image, stored in a "visible" buffer (hence "double-buffering"). When the new image is fully drawn, the visible and the hidden buffers are switched very quickly and the hidden buffer content becomes visible.
Questions tagged [double-buffering]
163 questions
1
vote
1 answer
Drag And Drop events are interrupting smooth motion of GUI when scrolling
I have a splitContainer control. inside one of the splitContainer panels there is a FlowlayoutPanel configured with AutoScroll=True.
the FlowLayoutPanel contains ~200 controls (so the user must scroll in order to communicate with all the controls). …

Jonathan Applebaum
- 5,738
- 4
- 33
- 52
1
vote
2 answers
Java double buffering with buffered image
After a day of searching, I have given up and decided to ask this question: I can't seem to stop the constant flickering of this program:
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.AffineTransform;
import…

JustAJavaCoder
- 47
- 1
- 10
1
vote
1 answer
DoubleBuffered versus SetStyle
I am getting conflicting Google results and I wondered if this can be clarified please?
I have:
typeof(TableLayoutPanel)
.GetProperty("DoubleBuffered",
System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)
…

Andrew Truckle
- 17,769
- 16
- 66
- 164
1
vote
4 answers
Winforms Graphics flickering. (Double buffering doesn't help!)
I'm trying to create a simple Windows Forms graphics app that basically will draw a circle every time the user clicks and it expands, while slowly fading away.
When I tried to use the Paint() Event for my graphics functionality, nothing happened, so…

Adraria
- 93
- 1
- 6
1
vote
1 answer
When to create a manual back buffer when using JPanel?
I've read that JPanel has a double buffering system, but I've also seen people manually create their own back buffer using BufferedImage, which allows the user to add to the image before actually rendering.
How does the JPanel double buffering work,…

Vince
- 14,470
- 7
- 39
- 84
1
vote
0 answers
What's the most reliable effect to cause screen tearing or stuttering?
I'm trying to investigate the various strategies to reduce or eliminate screen tearing, such as the various vsync implementations, manual frame rate timing, double-buffering, etc. I plan to create a tutorial or paper explaining my…
user457586
1
vote
1 answer
PictureBox double buffer keypress lag?
Sometimes, If I hold down for example the left arrow key, the pictureBox will stop drawing the coordinates of my character. A prime example is the yellow dot encircled in red. By holding down the left arrow key, the pictureBox did not constantly…
user3513035
1
vote
1 answer
Double buffering does not work on laptop, does on desktop
I ran into a strange problem recently. I wrote an application class which uses a very simple renderer to draw some models on screen. The camera is movable.
I ran the program on my laptop. Initially I noticed that nothing was being drawn on screen…

Nelarius
- 181
- 2
- 10
1
vote
0 answers
Screen tearing effect in SDL/OpenGL application
I'm working on an application which uses SDL (1.2.15) with OpenGL. It works fine in most cases. The problem occurs, when it's running on a laptop with pretty old nVidia drivers (February 2008). There is screen tearing effect. It looks like double…

jr_
- 31
- 4
1
vote
0 answers
C# Windows forms slow double buffering
So I have a custom WF control with some shapes and text in it. Those objects tend to move frequently. Since nothing like this.DoubleBuffered = true or "WS_EX_COMPOSITED" works (at least for me) to get rid of flickering, I managed to create a very…

JTaylor
- 13
- 2
1
vote
1 answer
Position of JLabel in Graphics when double buffering
I am using a thread to draw some animations, so I need to repaint the label for every frame. To do this without flickering I am updating the label with my backbuffer graphics object (using the lbl.update(bufferedGraphics); method), but when I do…

sideways8
- 153
- 1
- 1
- 14
1
vote
1 answer
glXSwapbuffers appear not to have swapped (?)
My situation is like this. I wrote a code that checked a group of windows if their content are eligible to be swapped or not (that is all the redrawing are successfully performed on the said window and all its children after a re-sizing event).…

null
- 63
- 6
1
vote
1 answer
Simple html5+javascript game flickering
I just started learning javascript, and i already faced some problems. I have a very simple "game" where you move red box with arrow keys and there is black background. I saw some topics about the same question and some of the guys says that make a…

FINDarkside
- 2,102
- 1
- 18
- 26
1
vote
1 answer
C++ win32 api double-buffering example help please
So, I know that people talk about double buffering on different posts, but whenever I try it I get a black screen! this is because the examples I see (I need examples) don't program the way i do - like with different libraries. I only use at the…

user2695106
- 15
- 4
1
vote
2 answers
Double buffered image example in Jpanel
I would know if my implementation is correct for double buffered image.. because i note that tremble the borders of my image that i move in the screen ... It is normal??
public void paintComponent(Graphics g) {
Image bufferimage=…

user2695795
- 21
- 1
- 2