From: "DeHackEd" References: <01bd65fa$b5ea4320$6c1daace AT hmsbob> Subject: Re: Which compiler switches give best results??? Date: Sun, 12 Apr 1998 09:38:14 -0400 Lines: 25 Message-ID: Newsgroups: comp.os.msdos.djgpp To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Read the INFO pages and look to see what the compiler has to offer. -O2 or -O3 generally make excellent code, but there may be some things that are omitted that you would want to look at. Remember that some options arn't always reliable, so think about it. But to speed things up, you should probably use -ffast-math but only in your release version as you should throughly debug the code as -ffast-math causes some necessary checking to be omitted. Try out different combinations. See what makes your code run fastest. Use -pg to profile (though this will slow your framerate down to below 5 fps - it did it on dosdoom). -- "DeHackEd" EMail address not given out due to low-life spammers. Ricmk wrote in message <01bd65fa$b5ea4320$6c1daace AT hmsbob>... >I am writing a 3D game which uses fixed/floating math, a lot of bitmap >blitting, tons of loops, and plays sounds on top of that. I was wondering >which switches to use with the compiler to give the game the fastest frame >rate possible? Any ideas? > Thank you in advance > RicMK