View Full Version : Push attributes
06-18-2001, 11:47 AM
In my engine, before drawing each object I need to push all the attributes and then pop at the end...
The question is:
does saving all attributes is time expensive?
06-18-2001, 11:57 AM
As every (or probably more than) any state change, it is. I couldn't imagine a situation where you have to change all attributes for every object.
06-18-2001, 12:09 PM
I meant if it was time expensive related to the time used to render the object that has a reasonable average of 10-20-30 or more faces.
(Surely, a day I must look what changes are necessary...)
Yes, it is time expensive.
If speed is a concern should you save the state in your own variables.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.