How do I new cell render in r191 ?

0 favourites
  • 6 posts
From the Asset Store
Create your game with this complete pack of images and animations!
  • hi,

    i see that ashley add new feature with new cell render related with z order

    i dont understand that well (i just read the blog of ashley about that ) but i need more

    any simple example to see how to use it ?

    thanks

  • Well, I think Ashley's blog was pretty exhaustive, and included example cases where render cells would be helpful.

    Basically: good for large layouts where you have lots of static objects that don't move or change their z order.

    Put all those static objects on one layer and enable render cells for said layer.

    Make sure not to put any other objects on that layer that you would be repositioning (moving or rotating; opacity changes are fine) regularly.

    Enjoy better framerates (assuming you have > 1000 static objects).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes That me if i have large layer with 100 object living with bullet That i hâve pour the same layer and enable the cell render?

  • Yes That me if i have large layer with 100 object living with bullet That i hâve pour the same layer and enable the cell render?

    I guess you are asking if, if you have 100 object with bullets, the render cell is worth ut, well, it seems that it may not be worth it in that case as this feature saves up time for non moving objects (if you have a huge mostly static scenery, it is worth it, however, due to the fact it is more a micro optimisation applied to a lot of objects, the performance gain can be lower than the cost, and moving objects should avoid that as in their case, it is a loss: checking if they need to change their cells cost much than not using them)

    also keep in mind that this option was introduced especially for gales with large environnements composed of a multitude of single non changing instances that do not move (movement related to the layer they are on).

    however, since you can turn it on and off in entire layers, you may be able to just test it out and see if that works well or not in your case.

  • Bullets would seem to be the worst thing to put on a render cells layer. They are always moving. I would guess enabling render cells in such a case would result in worse performance.

    As always, test and see. Maybe you'll be surprised.

  • Render cells only benefit when you have thousands of static objects. Read the blog post on how render cells work. 100 objects is probably too few to show any benefit, and if they are moving (since they have the bullet behavior), using render cells could actually make it a bit slower.

    As the blog post recommends, the time to use it is when you can actually measure an improvement.

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