|
Well as far as assembly goes it's great for speeding up the code for a crucial part of app. (let's say you want to do low level surface to surface bliting of video frames). In such cases it can make all the diference...
However i've seen simple moves on the program do wonderfull things.
Once upon a time a nice man wrote a program called xxx (aka windows starfield screen saver) and this program was good.
It could display 100 stars at 20 fps on a 386 machine and all this was writen in basic using real numbers.
Then another guy came and found that if he replaced all real num declaration with integers. Furthermore he replaced all real num 3D calculations with int equivalents wich were first multiplied by a 1000 and then later on divided with 1000 to display positions correctly and with same precision.
And when he compiled it he realized that the same program on the same machine ran at 1000fps ...
simple move ... great optimization.... B)
__________________
coffee is my heroin.
|