Professional Web Applications Themes

is there a way to grab more memory for Director to use? - Macromedia Director Lingo

Hi! Post some of your animation code, and we wil have a look at it. Sounds strange that it's slow, so it must be something with the code. Regards /M...

  1. #1

    Default Re:is there a way to grab more memory for Director to use?

    Hi!

    Post some of your animation code, and we wil have a look at it.
    Sounds strange that it's slow, so it must be something with the code.


    Regards
    /M


    MosseMilk webforumsuser@macromedia.com Guest

  2. #2

    Default Re:is there a way to grab more memory for Director to use?

    Memory usage is probably not the problem

    A quick look at you code doesn't reveal exactly why it should run so slowly (I'm assuming that the actual sprite movement is slow). You are using tight repeat loops and updateStage to do the animation and this in itself is most likely the problem in conjunction with something else.

    - by itself, the looping and updatStage should result in fast animation, because Director will hog the system to do it and this is why such animations are frowned upon. See the jmckell site for some tutorials on 'threaded' animation techniques (See the Standard Behavior Script section).

    - The reason why it could actuall slow down your code is that when you issue an updateStage command, any active behaviors will actually receive a prepareframe event - ie any prepareframe handlers on other sprites will run on every updatestage - this could easily be the cause of the slowdown.

    So check out the animation tutorials on the site below to get an idea of more efficient techniques for doing this kind of stuff

    hth

    johnAq




    Referring URLs
    [url]http://www.jmckell.com/contents.html[/url]




    johnAq webforumsuser@macromedia.com Guest

  3. #3

    Default Re:is there a way to grab more memory for Director to use?

    Thanks John,
    from reading the referred url you gave me, I can really see what I was doing wrong. I think the problem boils down to that I was doing this in a frame behavior script that also included the game control handlers as well. What I should of done was to keep the animation lingo seperate from the frame behavior that also has the game control handlers by making a new behavior and placed that behavior onto the 28 sprites instead.





    Roofy webforumsuser@macromedia.com Guest

Similar Threads

  1. Error with Virtual Memory, Director Player 6.0
    By Chury in forum Macromedia Shockwave
    Replies: 0
    Last Post: January 13th, 02:15 AM
  2. Director Virtual Memory
    By Bopkay in forum Macromedia Director Basics
    Replies: 4
    Last Post: July 23rd, 02:36 AM
  3. DIRECTOR 5.0 not enough memory
    By RainerHH in forum Macromedia Director Basics
    Replies: 2
    Last Post: April 18th, 09:45 PM
  4. Flash memory inside Director
    By FoolsErrand in forum Macromedia Director Basics
    Replies: 2
    Last Post: January 25th, 05:54 AM
  5. tracking video memory usage in director
    By Vegard Cock in forum Macromedia Director Lingo
    Replies: 1
    Last Post: October 23rd, 06:04 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139