Is it possible to do 3d math with only integers?
Posted: Mon Dec 03, 2007 1:53 pm
Since I'm very into optimizing my code, I want to use as much integers as much (only instead of other types of variables of course ). I looked in Mono & Disco's code, and there it uses single variables to calculate the screen coordinates for 3d models. Is it also possible to get a 3d model running at good performance (I mean that it runs smooth, the speed will be okay I think, integers are usally faster then singles)?
I think you need floating point math to prevent that the model is moving(rotating) weird, but I doubt if it's possible because Relsoft didn't use it in his code.
(most of Relsoft's code is optmized well).
Codemss
I think you need floating point math to prevent that the model is moving(rotating) weird, but I doubt if it's possible because Relsoft didn't use it in his code.
(most of Relsoft's code is optmized well).
Codemss