• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Three dimensional array causing repeating pause in movie

New Here ,
Apr 30, 2008 Apr 30, 2008

Copy link to clipboard

Copied

I'm creating what is essentially a 3 dimensional array. It's an array of objects, and each of those objects (a map) contains a few properties, one of which is a two dimensional array of tile objects. The strange thing is that the act of pusing each of these map objects on the array causes my movie to run with a periodic (about once a second) pause. The more map objects are pushed onto the array, the longer the pause. In between the pause, the movie runs at what seems like normal speed.

Does this sound normal? I can see the movie slowing down while building the 3 dimensional array, but once the array is built (and i've verified that it builds corrently- no endless loops or anything), even if I do absolutely NOTHING wtih it I still get the pause for as long as my movie runs...

that's the part that really seems strange to me- the repeating pause is directly related to my pushing of the map objects onto an array... Even if I build all the map objects and don't push them onto an array, the movie plays fine...

Any ideas or help would be appreciated. For anyone who is interested, the associated actionscript is attached. Thanks!
TOPICS
ActionScript

Views

210

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 03, 2008 May 03, 2008

Copy link to clipboard

Copied

LATEST
anyone? I don't need a direct solution... if anything the biggest problem I'd like to understand is that if all my objects are already created (i.e. already stored in memory), and my array is already created- how can simply pushing the objects onto the array cause a recurring pause/performance hit- even if I don't use the objects (including the array) at all (? All the memory is allocated already- all i'm doing is pushing a reference to the object onto the array, right? If anything I would think there could be a performance hit WHILE pushing objects onto the array, but what the heck is creating the pause/performance issue the rest of the time?

I would really appreciate any help, I don't know any flash experts in person, and I've been racking my brain on this one!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines