I founded in SMaterial.h :
bool Wireframe:1;
bool PointCloud:1;
...
a bit bit field of one boolean value !
Why this change ?
u8 ColorMask:4;
another bit field ?
I don't understand. Is it a bug ?
SMaterial in version 1.6
well a bool can only be 1 or zero so its not bad to change the size to just 1 bit. dunno really if that really make the switching of materials faster or anything but it makes the Smaterial struct smaler in size. but again dunno if that actually helps.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
It doesn't help with switching materials, it will be slower because your processor prefers to work in 32 or 64 bits, however it does keep the size of SMaterial small:
1.5.x = 184 bytes
1.6.x = 168 bytes
(on 64-bit systems)
As you can see, the size is actually smaller despite the extra SMaterial members.
1.5.x = 184 bytes
1.6.x = 168 bytes
(on 64-bit systems)
As you can see, the size is actually smaller despite the extra SMaterial members.