Question about Render cell in 191

0 favourites
  • 8 posts
  • Hey Ashley, thanks for the new update, you always deliver awesome improvements!

    I have a huge layer with hundred (and sometimes thousands) objects.

    Those objects are static, they only update variables once every 48 sec, but they have Sine (angle and opacity) happening from time to time for long periods of time.

    Is it convenient to enable the new Render cell option from r191? I'm testing CPU usage with the debugger, but still can't find any difference. I just need to be sue i'm using the right criteria to enable the new feature after reading yur article on cell rendering.

  • As ever the answer depends on measurements. If you can measure an improvement, then yes!

    Ideally you would move any moving objects to their own layer, so the one using render cells is truly static.

  • As ever the answer depends on measurements. If you can measure an improvement, then yes!

    Ideally you would move any moving objects to their own layer, so the one using render cells is truly static.

    Thanks, i made some mesurements and it doesn't seem to differ much (it is hard to measure though, since it fluctuates a lot).

    So sine opacity and angle will also make the object update render cell? In that case, i will move the "sine-ing" objects in another layer as you suggested.

  • Danwood

    For more info on render cells, Ashley has a new, in depth blog post:

    https://www.scirra.com/blog/ashley/14/h ... cells-work

  • Danwood

    For more info on render cells, Ashley has a new, in depth blog post:

    https://www.scirra.com/blog/ashley/14/h ... cells-work

    Yep i've checked it, my question regards this part:

    When to avoid it?

    Any layers with lots of changing objects - either creating, destroying, moving or changing Z order - will probably incur more extra work than is saved by the cheap viewport checks

    Does it include opacity/angle sine? If i have 1000 objects iwth angle or opacity sine, does it count as trade-off for cell rendering?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Changing opacity won't create any extra render cell work (it's not moving or Z ordering), but changing the angle counts as moving.

  • Changing opacity won't create any extra render cell work (it's not moving or Z ordering), but changing the angle counts as moving.

    Thank you Ashley, that answered my question!

  • Danwood

    Opacity...not sure about that one. Angle, yes, that seems like it might cancel it out, because you are 'moving' the object, or at least, the bounding box is changing (unless the object has symmetrical dimensions). Seems like the best thing to do is disable the behaviors as objects move on/offscreen.

    EDIT: whoops, guess Ashley stepped in while I was writing and gave a definitive answer.

    Ashley

    Does 'Is Onscreen' now take advantage of render cells? On a similar note, would there be a way to use render cells to provide a 'Pick by distance from point' command?

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