![](http://www.gamedev.net/community/forums/ubb/smile.gif)
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Beating the Machine
![](http://www.gamedev.net/community/forums/ubb/smile.gif)
I optimise nearly everything I can- however I never really test it against the compiler's opt's so I have no idea how successful I am ;-)
Do you still optimize your code?
It's funny that today, most of the games that I see seem to have increasing hardware requirements, but seem to go slower and slower, while not really adding much in the way of gratuitious eye candy, improved frame rate, or some sort of reason for this increased reliance on hardware. Are we just using our increased machine speed as a crutch?
I still optimize my code, by hand, using about 70-75% assembler. I usually beat the compiler by at least 10%, usually more. I also rework my algorithms and ideas, writing new test programs, and dragging as much as I can out of the hunk of junk in front of me. (For instance, I'm currently working on an online game, the recommended requirements for which are a P/100 with 16 megs of RAM and a 28.8 modem) Does anybody else still bother these days, or are the days of optimization dead?
- Nicholas
4th point : I'm still learning how to code for Win9x and OpenGl, so why should I optimize at this stage?
5th point : My PC runs fast enough (P!!! 450). I don't have to optimize. But I know you want to speed up your code if your PC requires it. (I know it, because I used to program for a P90 back in the good old DOS days)
6th point : The M$ Macro Assembler is just too expensive for me... (if you know some good alternatives...)
Of course I would optimize my code in some ways, if the time's right and the code's already there (Personally, I find it very difficult to code something in assembly from scratch.) Optimizing the core functions, the timecritical stuff, o.k. But to write about 50% or more percent of your code in assembly is a waste of time, I think.
That my point of view. Anyway, less optimizing makes your code easier to port onto other platforms.
BTW what assembler do you use? inline or the M$ macro asm or sth different?