Code optimisation
I have much problems with the speed of my code. I am writing a Pacman clone in Delphi, but the code is very slow, especially graphics. I gave the code to one better programmer , and he made it six times as fast as it was before. The difference between us is that he knows more of system stuff and which things are faster. Stuff like: if you load bitmaps into TBitmap object, the system loads it from file every time I use it, but if you load it from resource file it wstays in memory. Could you tell me about general things, which are faster than others. Or specify on-line document about this.
if possible load all external graphics and sounds, into memory, then instead of loading the graphics(etc) from a file keep it in memory...probably the same thing your friend did...compiler optimizations do wonders also..but good code matters more..
-Syntax
-dieraxx@iname.com
-Syntax
-dieraxx@iname.com
-Lucas
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement