View Single Post
Old 02-Jan-2013, 06:06   #16
Andrew Lauritzen
AndyTX
 
Join Date: May 2004
Location: British Columbia, Canada
Posts: 2,236
Default

Quote:
Originally Posted by rpg.314 View Post
And I am skeptical, as 3d already pointed out, that the driver is optimizing the shaders between frames.
Yes totally agreed in this case and didn't mean to imply that. But trust me, such things have been done and are routinely done on separate threads (which is far less harmful thankfully, although graphics drivers eating a whole thread for themselves is another topic...). More common is shader recompiles due to state changes which can cause nasty spikes too, although normally they subside after a little gameplay. For instance, I think it was NV30 that had to recompile the shader if you changed a uniform/constant from or to zero

I also agree that games should consider using some sort of smoothing function on the raw time deltas (gonna take a closer look at PID controllers, thanks for the link), although it's obviously important to eliminate the spikes as well. In fact, making the critical single-threaded rendering path as predictable and lightweight as possible is important in general.

Thanks for the comments and insight so far guys!
__________________
The content of this message is my personal opinion only.

Last edited by Andrew Lauritzen; 02-Jan-2013 at 06:14.
Andrew Lauritzen is offline   Reply With Quote