1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-04 13:33:34 +00:00
lovr/src/modules
bjorn 443376efde ModelData: Use union for transform fields;
Nodes can have either a transform matrix, or decomposed transform
properties, but never both.  Using a union means we can store both
of those variants in the same piece of memory, using the existing
matrix boolean to figure out which one to use.

This reduces the size of the struct by 48 bytes (152 -> 104), which
ends up speeding up some model operations, I'm guessing due to the
CPU cache.
2020-02-11 16:38:31 -08:00
..
audio Update header; 2020-01-22 15:38:57 -08:00
data ModelData: Use union for transform fields; 2020-02-11 16:38:31 -08:00
event platform -> os; 2019-12-13 19:55:46 -08:00
filesystem zip: Only call munmap if zip file was actually mapped; 2020-01-20 15:59:53 -08:00
graphics ModelData: Use union for transform fields; 2020-02-11 16:38:31 -08:00
headset ModelData: Use union for transform fields; 2020-02-11 16:38:31 -08:00
math Adjust includes; 2019-12-10 13:01:28 -08:00
physics Fix -Wshadow; 2020-01-23 11:18:04 -08:00
thread Commenting; 2020-01-15 17:56:09 -08:00
timer platform -> os; 2019-12-13 19:55:46 -08:00