@[email protected] to Programmer [email protected] • 1 month agoTell me the truth ...piefed.jeena.netimagemessage-square167fedilinkarrow-up11.15Kcross-posted to: [email protected]
arrow-up11.15KimageTell me the truth ...piefed.jeena.net@[email protected] to Programmer [email protected] • 1 month agomessage-square167fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilink21•edit-21 month agoI have a solution with a bit fields. Now your bool is 1 byte : struct Flags { bool flag0 : 1; bool flag1 : 1; bool flag2 : 1; bool flag3 : 1; bool flag4 : 1; bool flag5 : 1; bool flag6 : 1; bool flag7 : 1; }; Or for example: struct Flags { bool flag0 : 1; bool flag1 : 1: int x_cord : 3; int y_cord : 3; };
minus-square@[email protected]linkfedilink3•1 month agoI watched a YouTube video where a dev was optimizing unity code to match the size of data that is sent to the cpu using structs just like this.
I have a solution with a bit fields. Now your bool is 1 byte :
Or for example:
I watched a YouTube video where a dev was optimizing unity code to match the size of data that is sent to the cpu using structs just like this.