I am working on a Zuma like game in Flash 8 AS2. Game FPS is 30.
My problem is that game is taking too much CPU. Major CPU is used by graphical part, when Flash does repaint. Like moving the balls, rotating and spinning balls. Also I have some graphics in game that contiously runs.
In a P4 1.7 GHz system it takes 75 % CPU with only 30 balls on screen.
Also I am reading data from an array which is about 6000 elements in onEnterFrame. Is there any fast reading method from arrays ? There is several checking and loops are going on in onEnterFrame.
Anyone can tell why it is so slow and why Flash 8 repaint is so slow. Is there any way to make is fast, low on CPU usages ?