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
0
votes
1 answer
Why does turning on double buffering break my list control and resizing the window then fixes it?
I am using a wxListCtrl in report style in a programming project on Windows 10, using Visual Studio 2017. I noticed that when the program first starts, there are some strange artifacts: the vertical lines between the columns don't move with the…

Simon
- 405
- 2
- 8
0
votes
0 answers
What's a good way to disable double buffering in the current java
I just need a way to turn off double buffering in java the current way doesn't seem to work.
I've tried using the RepaintManager and its setDoubleBufferingEnabled method and it doesn't seem to do anything.

Meltingiceman
- 9
- 3
0
votes
0 answers
How to fix ListBox flickering (only after I minimized the form)?
After I minimize the form, and pop it back up, the listBox (which is OwnerDrawned so I can customize the colors and behavior to my likings) starts to flicker when I hover over the items.
How to fix this ?
I've tried several solutions by now, like…

Bas Curtiz
- 73
- 8
0
votes
1 answer
Choosing between double buffer and ring buffer?
I have a problem of decoding a packet which is sent through UART of a micro controller (The firmware needs to be baremetal, no RTOS support). The packet is 32 bytes long, and is send at every 10 milliseconds (continuously, without any stop).
I need…

SRK
- 308
- 3
- 16
0
votes
0 answers
Drawing over a window with Double Buffering - still flickering
I am trying to track an object's position with GDI in C++ and to draw that position over application's display by creating a rectangle. The object changes position slightly quite often and while the object is standing still or moving the rectangle…

Andrei
- 9
- 1
0
votes
0 answers
C++ console application using double buffer size limitation
# include "DISPLAY.h"
DoubleBuffer::DoubleBuffer()
{
COORD size = { WINDOW_X_SIZE , WINDOW_Y_SIZE };
SMALL_RECT rect;
rect.Left = 0;
rect.Right = WINDOW_X_SIZE - 1;
rect.Top = 0;
rect.Bottom = WINDOW_Y_SIZE - 1;
…

이채운
- 1
0
votes
1 answer
How to use a wxGLCanvas in a double-buffered wxFrame?
My wxWidgets application has a main wxFrame with a wxAUIManager.
In four panes i have a wxTreeCtrl, a wxNotebook (in a wxPanel to manage flickering), a wxListBox and an wxGLCanvas respectively.
To manage a flickering issue I would like to have the…

marcks
- 400
- 1
- 2
- 11
0
votes
1 answer
java double buffering moving an object with keys
I want to understand this code
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import javax.swing.JFrame;
public class pinpon extends JFrame {
private Image image;
private…

Anıl Kırıkkaya
- 3
- 4
0
votes
1 answer
How to use swapbuffers in Graphics.h
So atm im using swapbuffers in this code to refresh it:
#include "graphics.h"
void drawGridOnX(int xtotal, int ytotal);
int levelcode[400][45][100];
void decodelevelAndDraw();
void main() {
initwindow(1600,…

MoustacheSpy
- 743
- 1
- 6
- 27
0
votes
0 answers
DoubleBuffered SplitContainer doesn't show the splitter being dragged
I have a SplitContainer which needs DoubleBuffer-ing on the whole control.
I've tried to accomplish this in the usual way by using the example from Hans Passant found here which usually works great.
using System.Windows.Forms;
class BufferedSplit :…

Equalsk
- 7,954
- 2
- 41
- 67
0
votes
1 answer
Double buffering with a JWindow
I am trying to double buffer a transparent JWindow however it seems like the technique used takes no effect (different cycle values are drawn over each other).
public final class Overlay extends JWindow {
public static final Color TRANSPARENT =…

Jire
- 9,680
- 14
- 52
- 87
0
votes
2 answers
Querying number of screen buffers in OpenGL
I'm working on an OpenGL app where the screen image is often static. I can think of 3 ways to handle this situation:
Simply keep rendering the entire screen over and over anyways
Ask OpenGL to call the render loop only when there are changes
Only…

Markus A.
- 12,349
- 8
- 52
- 116
0
votes
0 answers
Java8: double-buffer lag
We have noticed a substantial increase in the time it takes for double buffering to complete after java version 8 u40 compared to releases before this one. It became so slow(to the tune of an order of magnitude) that we turn it off for anything…
0
votes
1 answer
Why do random symbols appear when I do double buffering in console?
I am trying to use double buffering in console. I have written this code, it compiles, but in the created console few downmost lines are filled with random characters. ChangingCHAR_INFO cur[Width*Height];
into
CHAR_INFO cur[Width*Height+200];…

Vladgor
- 21
- 3
0
votes
1 answer
Using personal SurfaceView on LinearLayout
I'm currently developing an Android App, using a personal SurfaceView and double buffering. However I'm facing a little problem with my code.
In one hand I have an xml view, based on LinearLayout hierarchy. When I instantiate my activity, I set my…

Sierra
- 591
- 9
- 28