A computer-graphics technique for updating a dynamic image that greatly reduces the visual artifacts, especially flicker, caused by the screen pixels 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 [doublebuffered]
181 questions
0
votes
1 answer
How to prevent a full screen double buffered app from screen freeze when debugging it?
I'm making a full screen app that uses double buffering. The problem is a following: when I debug it and the debugger pauses the process (breakpoint hit or exception thrown), the secondary buffer may got stuck on the screen. In this case I only see…

Calmarius
- 18,570
- 18
- 110
- 157
0
votes
0 answers
How to Double-Buffer JLayeredPane
I am currently making a path-laying Tile game in Java where I am using a JLayeredPane with multiple layers. The game runs fine, but everytime the repaint method is called, the entire pane flickers.
Right now I have the game running on a timer where…
0
votes
0 answers
Is this considered 'double buffering'?
I'm working on a simple drawing program where the user draws lines on the screen using the mouse.
When running the program, it eventually gets very 'laggy' when the drawing area gets filled with more and more lines.
I asked about it in SO and also…

Aviv Cohn
- 15,543
- 25
- 68
- 131
0
votes
1 answer
Central video buffering on livestream
I am working on a project that involves live streaming video content from a source
to a webpage/player (source can be camera, webcam, external server).
The trouble I'm having is that I give that address of the streaming device to the user
and the…

0xGiddi
- 404
- 2
- 12
0
votes
2 answers
BufferStrategy vs DIY Double Buffering in JFrame
Until now, I've done double buffering by creating and Image, drawing what I wanted to that Image using its associated Graphics object then draw that Image to the screen using the paint method's Graphics object. Recently, I learned about the…

resotpvl
- 59
- 1
- 7
0
votes
2 answers
How to prevent TextBox flickering?
I try to prevent TextBox flickering with no success so far.
The TextBox is multiline readonly.
This code run a few times per second. The text has about 10k characters.
int ss = txt.SelectionStart;
int sl = txt.SelectionLength;
txt.Text =…

joe
- 8,344
- 9
- 54
- 80
0
votes
0 answers
How to solve Ruler Control flickering
I'm using this Ruler control in my project.
The mouse tracking line that is drawn into the ruler flickers when the mouse moves. I've tried to add this line inside its constructor:
SetStyle(ControlStyles.OptimizedDoubleBuffer |…

Pedro77
- 5,176
- 7
- 61
- 91
0
votes
2 answers
How to double buffer list view in c#. (step by step)
I am using a listview (listView1) which is flickering when i populate data into it(adding 10 lines in every second).
How can I enable double buffer property to make it flicker free.
Please give me step by step instructions. I am new to c#.

Jake
- 1,560
- 2
- 17
- 25
0
votes
0 answers
Java (graphics2D) - simple double buffer JFrame loading screen
I have class that updates a component that is synchronized to a song. When I first run it, it takes a while to load the song, then displays the graphics piece by piece as they load.
I was wondering if/how to have the JFrame display a loading screen…

Connor
- 670
- 3
- 9
- 29
0
votes
3 answers
Using double-buffering with SlimDX
I'm trying to use SlimDX to create a DirectX9 application.
If I use .PresentationInterval = PresentInterval.Default, it renders at ~The refresh rate of my monitor and looks fine.
If I use .PresentationInterval = PresentInterval.Immediate, I get…

Basic
- 26,321
- 24
- 115
- 201
0
votes
0 answers
Double Buffering image in JFrame with other swing controls
I have a JFrame with an JLabel that houses an ImageIcon containing a BufferedImage. The BufferedImage's graphis are drawn on with several different graphics calls, such as drawOval(), drawRectangle(), etc, with many drawn shapes on it. As time…

Stealth Rabbi
- 10,156
- 22
- 100
- 176
0
votes
2 answers
How do I enable double-buffering on the Windows Forms StatusBar?
Is there a way to enable double buffering on the Windows Forms StatusBar class?
I'm updating some map coordinates on a mouse-move event, and the flashing / repaint is severely obvious. I've tried inheriting from the StatusBar class and setting its…

Brannon
- 5,324
- 4
- 35
- 83
0
votes
0 answers
Form flickering after a minimize happened in mdi parent form
I used the code here
https://stackoverflow.com/a/3718648/2006502
to prevent flickering of form(MDI form). And the code (to turning on WS_EX_COMPOSITED style flag written in my MDI parent form) also affect all child form in which the above is MDI…

Shaheed Muhammad
- 15
- 1
- 7
0
votes
0 answers
double buffering? ... or?
I uploaded a video of my mini java game - i've tried to catch it as a video.
here the link: http://www.youtube.com/watch?v=aWQkVivsfbI&feature=youtu.be
so my question: How to handle that bold white stripes while going to the left / up ? When going…

Martin Košťál
- 77
- 5
0
votes
2 answers
C#, Overriding OnPaint: alpha transparency with double buffer
I'm developing a Windows Mobile 5.0 and above application with .Net Compact Framework 2.0 SP2 with C#.
I'm overriding OnPaint method on a custom messagebox that draw a bitmap that fills the entire form with alpha transparency, and a gradient box…

VansFannel
- 45,055
- 107
- 359
- 626