[SOLVED] Performance and layers

I’ll be using 2 different layers on my project in addition to default layers of playcanvas like world, depth, skybox, ui etc.

I wonder using different layers affects performance? Or is it only a sort algorithm and has nothing to do with performance?

Hi @commention,

So yeah, it mostly won’t have any significant performance overhead unless you are using a really big number of layers.

There is a number of loops running on the layer’s mesh instances list for culling, sorting and rendering (and also any custom callbacks registered). So the overhead is mostly management for that.


Thank you for your quick response! This forum is amazing because of you! :slight_smile: