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
0 answers
JApplet DoubleBuffering
I have a problem with my JApplet and my whole point of using it was due to that Buffered Reader already exist in it by default.
So my program is going to move a ball, but it creates many different pictures in different locations as it's suppose to…

Simon
- 1
0
votes
1 answer
BufferStrategy in windowed mode causes constant intense white screen flicker
I put this code together based on a lot of examples I found around here on stackoverflow. When I run the program the entire screen flickers intensely. I'm sure there is something simple I'm overlooking, but so far have been unable to track down a…

Orange
- 63
- 8
0
votes
0 answers
client graphics flicker when getting data from another ip but when using localhost it works fine
I'm trying to make online game. The server sends data of surrounding "chunks" to client, which then saves the chunks and when drawing it checks the saved data of those chunks and draws them. So the data that is drawn is saved on Array on the client.…

user3738243
- 159
- 2
- 13
0
votes
1 answer
three.js: texture feedback loop (fbo pingpong?)
i'm trying to realize a web version of a hlsl shader i've made (with vvvv)- i'm rather new to web programming but found three.js/webGL would be the way to go.
so far everything is working out ok, but now I'm stuck at the most complex part, which…

digitalWannabe
- 114
- 13
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
Drawing large amount of images on Panel C# is still slow and flickers
I am trying to create a program that is able to analyze DNA data and visualize the differences compared to a reference sequence of DNA. This involves a big number of letters that I want drawn on a Panel with each base (A, C, G, T) having a different…

Sjoerd Redeker
- 13
- 4
0
votes
0 answers
Buffers not creating when canvas reopened
Okay so for a project I'm creating I've decided to create a JFrame and have a menu which when options are clicked will open up a canvas in the center of the JFrame. Since the rendering is all been done on a canvas I have double buffered it. Now when…

Patch
- 203
- 2
- 3
- 6
0
votes
1 answer
I can't get double buffering to work
I have tried quite a few tutorials and I can't seem to get double buffering to work. Here is my main (the update() method is the code i tried, but I still see flickering):
public class Main extends JApplet implements Runnable {
private static…

MCMastery
- 3,099
- 2
- 20
- 43
0
votes
1 answer
Java - MouseMotionListener causes double buffering image to return null
With this little project of mine I created a grid with larger slots on the bottom. I wanted to add in the mouse's current coordinates so in the GridPanel constructor I did:
addMouseMotionListener(new MouseMotionAdapter(){
... mouseMoved and…

cyneris
- 45
- 5
0
votes
1 answer
Double buffering on .NET Compact Framework
I was wondering if someone could explain to me how to double buffer a complete form in .net compact framework. I've found examples of double buffering but I can't seem to get any of these to work.
We created an application with multiple forms. Some…

V3nn3tj3
- 11
- 3
0
votes
1 answer
How can I load PNGs into a PictureControl?
What can I use to load PNGs into a Picture Control, in a way that uses double-buffering?
I've been using this code, which handles the double-buffering for BMPs, as to avoid the flicker of constant repainting. Now I need to switch to PNGs to reduce…

GreatDane
- 683
- 1
- 9
- 31
0
votes
1 answer
java double buffer doesn't erase
I am doing a project with double buffering. When I paint, it simply paints on top of the old layers, but I need to erase them. Repaint() didn't work, but I'm guessing something equally as simple is the answer.
Any ideas?
Added code, and now it…

user2956947
- 239
- 1
- 2
- 12
0
votes
1 answer
Can't close window after adding canvas in Java
public class Screen extends Canvas{
private BufferedImage image;
private int height = Toolkit.getDefaultToolkit().getScreenSize().height-37;
private int width = Toolkit.getDefaultToolkit().getScreenSize().width;
private boolean…

JoeyTheAsian
- 49
- 6
0
votes
0 answers
Double buffering to end flickering in C
I know it should be something very simple but really for some reason I can't get the hang of it.
I searched and searched and all I could under stand is that we put the bits in a 2D array then change the graphical pointer to that array which would…

spiderangel
- 43
- 1
- 9
0
votes
1 answer
How to do double buffering in C++ Builder 2010?
I have a code that continuously draws lines. The problem is that the lines keep flickering every time form is refreshed. I heard I should use double buffering, but how to do it? I'm using c++ builder 2010. Here is my code:
void __fastcall…

user3403621
- 77
- 1
- 13