So, after a lot of engine research, I created the 2nd iphone framework. As you know, the world of engine architecture is vast, so I try to apply the best practices as much as possible.
I used:
uint_fast8_t mId;
If I look at the definition of uint_fast8_t, I find:
... typedef uint8_t uint_fast8_t;
And I use these types in all my code. My question is, is there a performance advantage for using these types? And what exactly is going on behind the scenes? Besides the obvious fact that this is the correct data type (unsigned 8-bit integer) for the data, is it worth it to transfer to all my code?
Is this really an unnecessary optimization that the compiler is likely to take care of anyway?
Thanks.
Edit: No replies / replies, so I give you generosity!
types iphone game-engine
mr-sk
source share