what is d3d_triplebuffer?

Posted By: slacker

what is d3d_triplebuffer? - 03/16/06 19:51

and what is it for? I have read that you should disbale it for published games - what is its function? What advantage is there to using it?

I can't seem to find any info on it.
Posted By: FRAJO

Re: what is d3d_triplebuffer? - 03/16/06 19:58

Normally there's a front and a backbuffer.

the engine draws in the backbuffer and when that's finished it flips backbuffer
to front buffer and front to back. Then draw again.

d3d_triplebuffer adds one more buffer. let's call it middlebuffer

Draw to backbuffer

Switch back to middle, middle to front, front to back

goto Draw to backbuffer

So it takes 3 frames with d3d_triplebuffer

panel.visible=on;
wait(3);
//now the panel is visible;
Posted By: slacker

Re: what is d3d_triplebuffer? - 03/17/06 18:17

So what is the advantage of this? It seems like it would slow things down.
Posted By: Anonymous

Re: what is d3d_triplebuffer? - 03/17/06 19:53

http://www.nvidia.com/page/pg_20010527107687.html

Quote:

Double Buffering
A programming technique that uses two frame buffers so the GPU can be working on one frame while the previous frame is being sent to the computer display. This prevents conflicts between the display refresh function and the graphics rendering function.

Frame Buffer
Memory that is dedicated to the graphics processor and used to store rendered pixels before they are displayed on the monitor.

Triple Buffering
A step beyond double buffering that uses an additional back buffer to process the next image, resulting in smoother animation. With triple buffering, the GPU can start rendering a third frame while the first frame is being displayed and the second frame is waiting to be displayed. Triple buffering helps to insure that the GPU is never idle because it is waiting for rendered frames to be sent to the monitor.



Posted By: slacker

Re: what is d3d_triplebuffer? - 03/17/06 21:07

Thanks for digging that up.

Smoother animation? I will set up a test this weekend to test with and without triple buffering.

Anyone else have any thoughts as to how much better game preformance is with or without d3d_triple buffering?
Posted By: Anonymous

Re: what is d3d_triplebuffer? - 03/18/06 00:47

Triple buffering requires more video memory, but you will gain additional framerates.
Posted By: NITRO777

Re: what is d3d_triplebuffer? - 03/18/06 04:17

Quote:

I have read that you should disbale it for published games



Doesnt make sense to disable it for published games unless you were shooting for low-end systems.
© 2024 lite-C Forums