]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove dynamic allocation from VertexFormat
authorMikko Rasa <tdb@tdb.fi>
Sat, 3 Dec 2016 15:53:19 +0000 (17:53 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 3 Dec 2016 15:53:19 +0000 (17:53 +0200)
On 64-bit systems the pointer takes eight bytes, and a typical malloc
implementation will have two pointers worth of overhead.  Vertex formats
hardly ever reach even eight components, so it's cheaper to just store
a fixed-size array in the class itself.


No differences found