View Full Version : Frame Time
02-12-2006, 11:18 PM
How to calculate the time taken by a given Frame to complete?
02-12-2006, 11:24 PM
You can't, some stuff is put on hold and will not execute until glFlush is called, but even after that, your application can continue to run while the GPU continue with the hard work.
There is at least no portable way to do it that I am aware of.
You can of course measue the time the CPU is spending on a frame, but I guess that is not what you are interested in.
02-13-2006, 02:15 AM
disable vsync, and measure your before/after times after the swapbuffers. Unless the driver is triple buffering, you can be sure this is the time it took to render the frame.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.