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
Double buffering in Jython
recently I started learning Jython and now I have rather simply problem. I would like to improve quality of my animation. Unfortunately I don't know how to add double buffering to my applet . Could you help me?
Best regards!
from javax.swing import…
0
votes
2 answers
How to fix bad Double-Buffering
I tried following a double buffering tutorial, and I really don't know what I did wrong. It works before then before I did the tutorial, but there is still and occasional flicker here and there. I have two files Game and gameLoop
Game:
import…

user2259774
- 11
- 8
0
votes
0 answers
VB.NET Usercontrol Buffered Graphics
I wanted to create a basic usercontrol that has a buffered graphics.
But something is not right, it stops at the line
Using gr As Graphics = Graphics.FromImage(m_Buffer)
I even managed to crash VS2010. That is why I suspect that I introduced…

tmighty
- 10,734
- 21
- 104
- 218
0
votes
1 answer
stop applet flickering with double buffering Java Applet
sorry to keep asking questions about my program but i think i'm nearly there and i'm teaching myself java so please bear with me. I'm creating an applet that moves sheep object across the screen in a random direction when a dog object moves close to…

Will
- 1,487
- 1
- 23
- 35
0
votes
2 answers
rendering and color picking in QGLWidget : how to cope with both
I'm wondering if there's a better solution than this: I have a rendering code and a color picking code, I already shared everything that could be shared between these two codes (VBOs, etc..) and my code looks like:
void paintGL()
{
label1:
…

Johnny Pauling
- 12,701
- 18
- 65
- 108
0
votes
3 answers
Flashing while reloading JTree
I am making a simulator with a JTree updating frequently. The nodes in the tree are all JProgressBars.
I'm calling tree.treeModel.insertNodeInto(,,) and treeModel.reload() to update the tree. the problem is that it instantly updates itself without…

akashnil
- 253
- 2
- 10
0
votes
1 answer
Allegro, sprites leaving trail
I'm getting the problem my sprites leave a trail behind when i move them.
Tried drawning a BG with every refresh but then it start flickering.
This is what i do
// ...
int main(int argc, char *argv[])
{
BITMAP *buffer = NULL;
BITMAP…

Crasher
- 2,211
- 2
- 18
- 17
0
votes
0 answers
Color field in PropertyGrid ridiculously slow
I've got a PropertyGrid displaying an object, one of whose fields is a System.Drawing.Color. This makes the field on the PG automatically display a color, and if you click to edit it, you get a nice drop-down, showing custom colors, system colors,…

Darrel Hoffman
- 4,436
- 6
- 29
- 41
0
votes
1 answer
WM_EX_COMPOSITED without double-buffering
I am trying to implement double-buffering in a Win32 application, so I need the controls of a window to be painted from the backmost-control to the frontmost. As I understand it, WM_EX_COMPOSITED does this, but it also does double-buffering itself1.…

Seth Carnegie
- 73,875
- 22
- 181
- 249
-1
votes
1 answer
Can someone please explain the following piece of code? It is a code for double buffering used for game development in java
I wanted to use double buffering for my code and I found this in the internet. But I dont understand how it works.
private Image doubleBuffer;
public void update(Graphics g) {
Dimension size = getSize();
if (doubleBuffer == null ||…

thixuni
- 11
- 2
-1
votes
1 answer
Qt, openGL, widgets and offscreen rendering
I am developing on RedHat Linux, cat /etc/redhat-release:
Red Hat Enterprise Linux Workstation release 7.2 (Maipo)
I am using Qt Creator 4.3.1:
Based on Qt 5.9.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
The project I'm developing is…

SPlatten
- 5,334
- 11
- 57
- 128
-1
votes
1 answer
How can I implement double buffering in my c++ game?
I have the problem of the flashing screen and I know that I need to use double buffering to fix it, but I don't know how and where to add it in my game. If for some reason I can't use it, is there any other way of reducing the flashing, because with…

JoanB
- 1
- 1
-3
votes
1 answer
Processing Jittering & Flickering When Rect Moves
So I have a sketch that contains hundreds of different-sized rectangles, saved in an array list, when I put my mouse on them they get pushed away, but when I move away and let them go back to position they go back and stutter in their position, they…

MRZ
- 1
- 2