In computer graphics - instead of writing graphics information to a part of memory that is immediately render to the screen, the application writes a complete 3d scene to a part of memory called the back buffer. Once all information is in place in the back buffer it is "presented" to the part of ...
21
votes
3answers
5k views
Double buffering on HTML5 Canvas game?
My simple canvas game seems to work fine on Chrome and FF on Mac/Linux. I haven't had chance to test it on smart phones or Windows environments yet. It doesn't use double buffering but I have seen ...
2
votes
2answers
336 views
Is using a dedicated thread just for sending gpu commands a good idea?
The most basic game loop is like this :
while(1)
{
update();
draw();
swapbuffers();
}
This is very simple but have a problem : some drawing commands can be blocking and cpu will wait ...
4
votes
1answer
238 views
Triple buffering and jittering
John Carmack has a tweet:
"Triple buffering adds latency and jitter; it should be avoided. The Answer is non-isochronous display updates."
Can anyone explain what he meant by adds latency and ...
0
votes
1answer
1k views
Triple buffering causes input lag?
Consider some time in between two vsyncs. Suppose the first display buffer is being used to display the current image, and suppose the game was really fast and computed and rendered the next image to ...
-1
votes
1answer
406 views
Thread safe double buffering
I am trying to implement a draw map method that will draw the tiled image across the surface of the component. I'm having issue with this code. The double buffering does not seem to be working, ...
-2
votes
2answers
278 views
how to double buffer in multiple classes with java
I am creating a Java 2D video game. I can load graphics just fine, but when it gets into double buffering I have issues. If i run this code, nothing is displayed except for the string("hello"); but ...
16
votes
1answer
7k views
What is the benefit of triple buffering?
I read everything written in a previous question. From what I understand in double buffering the program must wait until the finished drawing is copied or swapped before starting the next drawing. In ...
1
vote
1answer
448 views
Multiple buffering in OpenGL on Windows
What is the most common way modern games perform triple buffering ?
What does the SwapBuffers exactly do in terms of OpenGL states ?
Is it possible to perform double and triple buffering ...
7
votes
3answers
631 views
What is the contents of the buffer *after* a call to glSwapBuffers()?
(SDL_GL_SwapBuffers() in particular)
When you have drawn a scene, and you call swap-buffers, it is routine to then glClear() the scene before drawing anything; if you don't clear, what is the ...
3
votes
4answers
1k views
how to do partial updates in OpenGL?
It is general wisdom that you redraw the entire viewport on each frame.
I would like to use partial updates; what are the various ways can do that, and what are their pros, cons and relative ...
