Main Menu

too slow?

Started by Alex, March 17, 2007, 05:48:53 PM

Previous topic - Next topic

Alex

Is there any way to speed up the processes in my playbasic game?
when there are too many calculations, it begins to get bogged down, but it is necessary that these calculations occur.
I use alot of for next loops with getarrayelements because the arrays change sizes alot and i have to run through them all

kevin


  Without seeing the code or knowing what your trying to do,  how can we possibly help ?

Quotewhen there are too many calculations, it begins to get bogged down, but it is necessary that these calculations occur.

  erm, which are ? 

  There's certainly going to be opportunity for  'micro' optimizations in your code,  but the streamlining  method (the algorithm) is a best way to speed something up. 

  Other common problems occur when users don't understanding the drawing process, thus  there's various mini articles on the subject. 

  I like Big Blit's   

A crash course in Image & Sprites Draw Modes 

Copying/Drawing Between Images Types   

Buffer Locking