Questions tagged [double-buffering]

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.

163 questions
0
votes
1 answer

How do I implement a 'double buffer' for my sprites in graphics mode in assembly?

I have searched Google for hours on how to prevent flickering while continuously drawing, erasing, and redrawing sprites I'm gonna use for my game. Many of the sites I see tell me to use a double buffer without even telling me how to. -_- Can…
user679846
0
votes
1 answer

Difference between double-buffering methods

I'm making my first applet game in Java, read a couple of tutorials and found different solutions for double-buffering. I would like to know what is the difference between them, any pros-cons, etc. Thanks in advance! First one: public void…
Kokufuu
  • 29
  • 6
0
votes
1 answer

How do I implement double buffering in the winapi?

I can't stop the flickering. I got the advice to add dubbel-buffering. How do I do that? #include #include #include #include #include using namespace std; namespace { const int ID_NEW = 1; …
Merni
  • 2,842
  • 5
  • 36
  • 42
0
votes
1 answer

.NET CF double-buffering when painting over base control

I've used double-buffering for some .NET Compact Framework controls that are entirely user-drawn, but I'm having trouble figuring out how I can use double-buffering for a control that inherits from another control and paints over it. I have a…
derekj
  • 47
  • 2
  • 8
0
votes
1 answer

Java Applet_Dubble Buffering Does Not Work

I'm coding a JApplet in Java, but dubble buffering doesn't remove the flickering!? What should I do? This is the important part of the code, I guess (tell me if you need to know more, please): // Background (dubble buffering) private Image…
Casper Lindberg
  • 1,053
  • 1
  • 11
  • 16
0
votes
1 answer

How to double buffer awt objects

I am trying to make a java program where you can draw (like paint) so far, I have pen size, and different colors. The only problem is the rectangles (theyre just there so you can see where to click) flicker whenever you're drawing. Here is my code:…
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
1 answer

SDL image tearing / stuttering

First of all, let me make some things clear: My monitor is at 60 hertz I cap my FPS to 60, and it seems to be working correctly I have the double buffering flag active I made a backbuffer myself, and made sure to draw to it, and afterwards to the…
Roy Spector
  • 151
  • 10
0
votes
2 answers

Improving Html5 canvas with double buffering?

I'm writing a game in javascript canvas, and I experience lag sometimes. I think this is because I draw pretty much to the canvas. My background for example isn't static, it moves from the right to the left, so each time, I have to clear the entire…
Bosiwow
  • 2,025
  • 3
  • 28
  • 46
0
votes
1 answer

C# Double Buffering of a panel

I've looked everywhere for double buffering of panels, but it all uses too confusing terms form me. I am graphing biorhythms and want to have a move function to slowly shift forward the biorhythms. However, it flashes alot so I need to figure out…
0
votes
1 answer

Is it possible to vsync SDL_SetVideoMode?

I am trying to change the size of the window of my app with: mysurface = SDL_SetVideoMode(width, height, 32, SDL_OPENGL); Although I am using vsync swapbuffers (in driver xorg-video-ati), I can see flickering when the window size changes (I…
Weber K.
  • 320
  • 2
  • 11
0
votes
1 answer

java double-buffering performance

What is better to use in java: a manually implemented double-buffering, or to use an already double-buffered swing component? Or is this without any difference? Thank you.
T_01
  • 1,256
  • 3
  • 16
  • 35
0
votes
1 answer

double buffering and paint

I'm using both double buffering and Swing Events which seem to conflict. I'm using a JSlider and trying to double buffer. It actually does the double buffering draw, but the double buffering gets painted again and I lose my image. I'm using a…
0
votes
0 answers

Matlab: fast image capture by copying the backing store / back buffer?

I am using version R2007a. First for a little background: I am creating a tool that accumulates a scatter plot from data acquired in real time. When the number of points gets large enough, the graphics refresh can't keep up with the incoming data,…
0
votes
1 answer

Auto Moving Image with a close Button and button event in JAVA

i have this code. in this code an image is moving left to right with moveImage method and moves right to left with moveimg method in the code. what i want now is to work a button event. there is a button in code, i want when i click the button it…
1 2 3
10
11