Help to optimize!
Posted: Thu Jan 05, 2006 1:39 am
I have a "canvas" actor 320x240.
When I press down a mouse button on it I get variable "shoot" to become 1 (shoot=1;)
On mouse button up I have "shoot=0;"
Then my actor checks if shoot==1 then -/-/-/- (creating rockets, etc.)
The problem is: when I run it on PPC I have such a terrible slowdown even to 5 fps.
As I checked it is definetely not because of shooting (creating instances), but to my mind of checking mouse, that sounds strange...
Where is a problem?
Everything goes fine before I tap the screen. Even if I hold stylus it continues slowing even if I'm not shooting!
Would someone be so kind to help me.[/code]
When I press down a mouse button on it I get variable "shoot" to become 1 (shoot=1;)
On mouse button up I have "shoot=0;"
Then my actor checks if shoot==1 then -/-/-/- (creating rockets, etc.)
The problem is: when I run it on PPC I have such a terrible slowdown even to 5 fps.
As I checked it is definetely not because of shooting (creating instances), but to my mind of checking mouse, that sounds strange...
Where is a problem?
Everything goes fine before I tap the screen. Even if I hold stylus it continues slowing even if I'm not shooting!
Would someone be so kind to help me.[/code]