Copy link to clipboard
Copied
I am using AS3 to design the application, I set the FPS to 25, in every 10 seconds, the FPS drops(stuttering), and the screen hangs for about 0.5 seconds, then FPS resumes. I tried GPU, but still the same. I suspected that it might be very resource consuming, and I lowered down the FPS to 16 or even 8, but it still stutters in every 10 seconds. Can some one help me?
I have found the cause. There are some movieclips still running some where after I removeChild them which caused the stuttering. Just stop them.
Copy link to clipboard
Copied
you need to optimize your code/display especially if you're creating an app for a mobile device.
one of the easiest things to do is to enable the cacheAsBitmap property of most movieclips and assign a cacheAsBitmapMatrix to those movieclips that would benefit.
Copy link to clipboard
Copied
I already optimized the code with cacheasbitmap. If it is caused by processor consumption, then it should help to lower down the FPS. But it doesn't help in this case, it still stutters every 10 seconds. It might be something else. Does the garbage collecter works every 10 seconds?
Copy link to clipboard
Copied
no, its invoked based on the amount of memory consumed. i think it's called after every increase of between 15kb and 20kb. at least, it used to be with fp 9 or so. i haven't tested in years.
Copy link to clipboard
Copied
I have found the cause. There are some movieclips still running some where after I removeChild them which caused the stuttering. Just stop them.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now