Should I still use render cells on a layer with moving stuff

0 favourites
  • 3 posts
  • The manual says to use render cells on large layers with many static objects, which I have except there are a few moving objects on it too. Should I still use render cells or will that cause some problems?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hey again Sam, <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Ashley actually wrote up a really cool explanation and analysis of C2's render cell system, which you can find here: ... cells-work

    If you're more interested in "how to use it" than "how it works", You may want to jump to the following sections:

    • When to use it?
    • When to avoid it?
    • Extra tips

    That said, if you have the time, it's worth reading the whole thing, to get an idea of how and why the benefits of render cells are so dependent on the situation.

    From what I gather, render cells are per-layer, so for any layer that will have tons of essentially static objects out of frame, it might be a good candidate. So the main game layer, with enemies and particles and such, not so much; but a static decorative backdrop layer, with tons of individual objects, might be a good candidate.

    In your case, with mixed layers, any moving object will need it's render cells updated, but that may not amount to that much if there are 1000 static objects and only 10 moving ones.

    Ultimately you may want to just try it out both ways and see if there's any noticeable change in performance. You may be able to use the debug preview mode to get an idea, as it has a built-in performance profiler, though definitely click the "undock" button on the debug panel to separate it from your game window, or you'll likely get a performance hit just from the debug window itself.

  • Really helpful! Thanks again

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)