View Full Version : Push attributes
Teofuzz
06-18-2001, 10: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?
thanks
tFz
Michael Steinberg
06-18-2001, 10: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.
Teofuzz
06-18-2001, 11:09 AM
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...)
Thx
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.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.