Path: chuka.playstation.co.uk!news From: James Shaughnessy Newsgroups: scee.yaroze.programming.gnu_compiler Subject: -O Optimising levels Date: Thu, 12 Mar 1998 15:02:29 +0000 Organization: Bacardi Ferrari V12 Lines: 24 Message-ID: <3507F905.2AF3@manc.u-net.com> NNTP-Posting-Host: manc.u-net.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (Win95; I) Hey there people, If you haven't already seen Gravitation I suggest you check it out now -- a must for fans of the Thrust genre. I've done a lot of optimising the code from my early demos (such as removing the floating point numbers, and using sprites for bullets) and it seems to run perfectly okay without a -O compiler option. BUT when I use any optimising things go pear-shaped! I use a mixture of single and double buffering (single buffer virtual screen during play, and double buffering for intro/menus) and for some reason this is the first to go nuts, although I've had the game crash in mid play once. Is it something to do with having your data structures odd sizes? (Like using an array[7] instead of an even array[8]?) Anything obvious I've missed? Thanks, Jim -- ----------------------------------------- James Shaughnessy james@manc.u-net.com http://www.netyaroze-europe.com/~shaughnj -----------------------------------------