azul3d / engine

Azul3D - A 3D game engine written in Go!
https://azul3d.org
Other
606 stars 54 forks source link

Use pointers to State structures. #135

Closed azul3d-bot closed 8 years ago

azul3d-bot commented 8 years ago

Issue by slimsag Sunday Dec 28, 2014 at 20:58 GMT Originally opened as https://github.com/azul3d/gfx/issues/83


As of right now State is a ~140 byte structure. Most gfx.Object will utilize the same state (as it lowers the number of state changes).

If we turn Object.State into a pointer instead of a value -- we get the following benefits:

We would turn gfx.State into more traditional objects:

Overall I think this will be a big plus.

azul3d-bot commented 8 years ago

Fixed/merged as part of https://github.com/azul3d/engine/issues/1