float vs int
Posted: Thu Sep 03, 2009 4:59 pm
I would just like a little clearity here; what is the major difference (that I should be concerned about) with float and int ? It is my understanding the floats take up more memory and are therefor are more taxing on my cpu load dureing calculations,. . with In The Shadows I don't really notice a difference changing the 64x64 array between the two,. (the data for the raycasting/wall collisions)
Thing I'm wondering is if i should do my lighting by int 0-32 for brightness of walls 33-64 for floor light level etc. or just use 0-1f for walls 1-2f floors etc..
Thing I'm wondering is if i should do my lighting by int 0-32 for brightness of walls 33-64 for floor light level etc. or just use 0-1f for walls 1-2f floors etc..