A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 31 of 31

Thread: many enterFrames vs. one

  1. #21
    ·»¤«· >flashl!ght<'s Avatar
    Join Date
    Jun 2003
    Posts
    746
    so any more ideas Andre? Original FLA is zipped up there.... why are 300 onClipEvent(enterFrame)s of basic wonderer bots functioning faster than a centralized AI using?
    >flashl!ght<
    All the normal names were taken.
    Ron Paul was right.

  2. #22
    #
    Join Date
    Apr 2002
    Location
    berlin - germany
    Posts
    107
    I have no time for now to code some tests, but I will. This must be solved officially :)

  3. #23
    #
    Join Date
    Apr 2002
    Location
    berlin - germany
    Posts
    107
    This confuses me. It seems, that onEnterFrames on MovieClip are faster than a loop. AsBroadcaster is just as fast.

    Please try on your own and check my FLA. It's a rough test, but I cannot see any stupid mistake.

    What you see is not a line. There are 560 pixels as vector-graphics
    Attached Files Attached Files
    Last edited by AndreMichelle; 01-22-2005 at 02:44 PM.

  4. #24
    #
    Join Date
    Apr 2002
    Location
    berlin - germany
    Posts
    107
    To make it more confusing:

    By testing through the IDE, a loop is faster. This could has cause the wrong interpretation in the past. The question is, why ? Its allways good to know :)

  5. #25
    ·»¤«· >flashl!ght<'s Avatar
    Join Date
    Jun 2003
    Posts
    746
    By testing through the IDE, a loop is faster
    Think you could provide a MX version so I can test it in Flash?

    At any rate, it's the SA or HTML plugin that matters, sincet that's where it would be used. And also, I used an actual AI script(although very very simple - wonderer AI) to closer simulate a real life example...

    So I'm still very confused as to why multiple onClipEvent(enterFrame)s is faster than a single onEnterFrame. Strille? Squize?

    I'll have to compare multiple onClipEvent(enterFrame)s with multiple attachMovie() > onEnterFrames to see if maybe there's some speed in the onClipEvent usage directly on an MC
    >flashl!ght<
    All the normal names were taken.
    Ron Paul was right.

  6. #26
    n00b LeechmasterB's Avatar
    Join Date
    May 2004
    Location
    Switzerland
    Posts
    1,067
    Single EnterFrame: ~101 Fps
    Multi EnterFrame: ~65 Fps
    AsB EnterFrame: ~65 Fps

    Flash MX 2004 Pro

    I do stuff that does stuff...

    J-Force

  7. #27
    ·»¤«· >flashl!ght<'s Avatar
    Join Date
    Jun 2003
    Posts
    746
    Leechy -
    would you mind testing my file?
    >flashl!ght<
    All the normal names were taken.
    Ron Paul was right.

  8. #28
    #
    Join Date
    Apr 2002
    Location
    berlin - germany
    Posts
    107
    @LeechmasterB: Did you test the file in the Flash IDE ?

    I attached the zip as FlashMX again.
    Attached Files Attached Files

  9. #29
    ·»¤«· >flashl!ght<'s Avatar
    Join Date
    Jun 2003
    Posts
    746
    multiple onEnterFrames applied to dynamic clips was about in between. So far, this has been my results, about the same in both IDE an SA/plugin

    multi onClipEvent(enterframe) ~16fps
    multi onEnterFrame ~13-15fps
    single onEnterFrame ~11-12fps
    >flashl!ght<
    All the normal names were taken.
    Ron Paul was right.

  10. #30
    ·»¤«· >flashl!ght<'s Avatar
    Join Date
    Jun 2003
    Posts
    746
    something wasnt quite right in the MX version, i couldnt see the line at all

    however the clicking did change something:

    single onEnterFrame ~ 50fps
    multi onEnterFrame ~ 125fps
    ASB ~ 125fps
    Last edited by >flashl!ght<; 01-22-2005 at 05:14 PM.
    >flashl!ght<
    All the normal names were taken.
    Ron Paul was right.

  11. #31
    n00b LeechmasterB's Avatar
    Join Date
    May 2004
    Location
    Switzerland
    Posts
    1,067
    Originally posted by AndreMichelle
    @LeechmasterB: Did you test the file in the Flash IDE ?

    I attached the zip as FlashMX again.
    Andreemichelle 2nd test:
    (->ide and player same results)

    Single: ~105 Fps
    Multi: ~80 Fps
    ASB: ~80 Fps


    flashlights test:

    centralAI-singleOnEnterFrame : ~ 25 Fps
    centralAI-multiEnterFrame : ~ 32 Fps
    centralAI-multiEnterFrames : ~ 31 Fps

    I think the difference in the results depends mostly on if its flash mx or 2k4.

    greets
    I do stuff that does stuff...

    J-Force

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center