Path: chuka.playstation.co.uk!news From: "Rikki Prince" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Main Game Loop Technique Date: Mon, 15 Jul 2002 00:10:38 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 18 Message-ID: References: NNTP-Posting-Host: pc-62-31-230-115-ba.blueyonder.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 "Ben James" wrote in message news:agse0k$d9k26@www.netyaroze-europe.com... > It's not really worth worrying about to be honest. The checks are only done > once per frame and will take up a tiny fraction of 1% of the CPU time. I > tend to use a case statement but the results the same. i.e: Cheers. I usually use the case statement, but for ease of demonstration, I just used IFs. How about if I called a function containing the code, each time the case was selected? Would that harm the performance much? Having it all seperated into functions would make the code a bit easier to read, write and debug... Cheers, Rikki