A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Does an mc that is offscreen add to the cpu-load?

  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    418

    Does an mc that is offscreen add to the cpu-load?

    hello,

    I was wondering if an mc that is added as a child to an mc, but is not seen on screen, adds to the graphic rendering load.
    i turned it off, but just didn't remove it from the displaylist. it's timers are off, and doesn't do anything.

    and if yes, does it help to turn visible to false? will that stop it from taking cpu-time?
    I program in AS3 only.

  2. #2
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,378
    Not to my knowledge, but that may be different since AS3.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

  3. #3
    Senior Member bluemagica's Avatar
    Join Date
    Jun 2008
    Posts
    766
    If it's not doing anything it won't eat cpu, but if it is in the displaylist, i.e, flash's memory, it will add to your memory usage, and hence may turn up the lag(too much memory usage means lag)
    If you like me, add me to your friends list .

    PS: looking for spriters and graphics artists for a RPG and an Arcade fighting project. If you can help out, please pm me!

    My Arcade My Blog

    Add me on twitter:

  4. #4
    Senior Member UnknownGuy's Avatar
    Join Date
    Jul 2003
    Location
    Canada
    Posts
    1,361
    It will probably just check if it needs to render it, and since it isn't on screen just skips over it(so probably really small CPU usage). The visible flag may be checked first, before all of its edges are checked(to see if any edge is on screen), so using the visible flag may help a bit. (but for a smaller number of mc's I doubt it matters)

    UnknownGuy

  5. #5
    Senior Member
    Join Date
    Jul 2008
    Posts
    418
    ok thanks!
    I program in AS3 only.

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