Push attributes

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

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.

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.