Archived

This topic is now archived and is closed to further replies.

Sphet

bit shifting and isometrics engines..

Recommended Posts

Guest Anonymous Poster
a bit shift once to the left is equal to muliplying by 2, only faster. so if you bit shift 4 to the left, it's *2*2*2*2, or, *16. In other words, 4 << 3 = 4*2*2*2 = 32

Share this post


Link to post
Share on other sites
I'm trying to remember where I read this and how it is applied.

When trying to calculate the position offset for blitting tiles, someone suggested bitshifting the values because they're faster than multiplies. I can neither remember who wrote this, or what it was about. Anyone remember which of the original Iso tutorials/articles this was from and what it was about?

Share this post


Link to post
Share on other sites