Path: chuka.playstation.co.uk!news From: "Robert Shand" Newsgroups: scee.yaroze.beginners Subject: Re: map-tastic tile question Date: Thu, 17 Jun 1999 18:36:48 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 35 Message-ID: <7kbc23$4fj3@chuka.playstation.co.uk> References: <7kalnc$4fj2@chuka.playstation.co.uk> NNTP-Posting-Host: modem-65.viractin.dialup.pol.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Derek da Silva wrote in message news:7kalnc$4fj2@chuka.playstation.co.uk... > Hi > > I'm looking to make some optimizations to a simple tile based game I'm > working on - specifically the method used to draw the visible part of the > map. > > At the moment I just run through my array of tiles and check each one to see > if it should be drawn to the screen... > Ok this probably isn't on the lines that you were thinking of but it should still improve speed a teeny little bit. When doing for loops do -- instead of ++, apparently the Playstation is ever so slightly quicker at -- For example int i for(i=100000,i!=0;i--) { printf("Hello world\n"); } Hope that helps Bob bob@shandfam.freeserve.co.uk