Protofall / Crayon-Game-Framework

My own library for making games on the Dreamcast
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

General: Use int for looping #238

Open Protofall opened 4 years ago

Protofall commented 4 years ago

I've been using uint8_t and such for my loops, but it seems thats inefficient due to bit masking. Use ints instead.

https://interrupt.memfault.com/blog/best-and-worst-gcc-clang-compiler-flags#comparison-of-for-loop-using-uint8_t-and-int

I should also do this for all my projects that go in-game (Audio API, savefile code, etc)

Protofall commented 3 years ago

Make them unsigned int instead