Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-24-2012, 12:22 AM   #1
Registered User
Join Date: Mar 2012
Posts: 2
Question FPS Slowing Over Time

I created a very simple application that increments a counter and displays said counter on the stage. At around 18,000-20,000 iterations, I noticed a serious drop in FPS. Here's is the entire code:

var count:int = 0;

addEventListener(Event.ENTER_FRAME, mainLoop);
function mainLoop(e:Event):void {
    Count.text = String(count); //(Count text field already placed on stage)
I'm running this at 39 FPS and by 20,000 iterations it has slowed to about 16 FPS. This problem is occurring on multiple computers with multiple versions of Flash player, in and out of the browser. I used Flash CS5.5 to write this.

Any ideas on why this is happening? Any help will be much appreciated.
Erigrath is offline   Reply With Quote
Old 03-24-2012, 01:20 AM   #2
Registered User
Join Date: Mar 2012
Posts: 2

Problem Solved! For anyone else who may encounter this problem - Apparently there is a major Memory Leak in flash associated with TLF Text Fields. I changed the field to Classic Text and the problem went away.

There is a topic about it on the adobe forums which I'm not allowed to link to, but apparently this has been an issue for over a year now.
Erigrath is offline   Reply With Quote
Old 03-24-2012, 04:59 PM   #3
Senior Member
Join Date: Feb 2006
Location: Washington, DC
Posts: 2,812
Send a message via AIM to abeall

Yeah, I have yet to use TLF for anything, so many issues and little advantages. Classic TextField FTW!
Aaron Beall | Flash portfolio | Fireworks extensions | Twitter
abeall is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 09:07 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.