PlayCanvas Scene Size Limit Reached – How to Optimize or Increase Limit?

Hello everyone,

I’m working on a project in PlayCanvas and my scene has reached the maximum size limit. Because of this, I’m unable to add more assets or make further changes.

I want to ask:

  1. Is there a way to increase the scene size limit (for example, through project settings or subscription level)?
  2. If not, what are the best practices for optimization so that the scene stays within the allowed size?
  • Should I split the project into multiple smaller scenes?
  • Should I compress or re-organize assets?
  • Are there specific tips for reducing memory usage without losing quality?

Any guidance, recommended workflows, or references to documentation would be really helpful.

Thank you!

Scene limit is likely to be the amount of entities and attribute/properties in the scene hierarchy.

ie you have A LOT of entities in the current scene.

The way around this is to split the scene into multiple scenes and load/destroy them additively at runtime.

See Loading Scenes | PlayCanvas Developer Site

There’s other things you can do but they likely are specific to your project. eg. Do all the entities need to be there in the scene at the same time? Can you add/destroy entities/templates as users select/move stuff. Do all the assets need to be loaded at once or can the loaded/unloaded when needed.

This problem is also causing entities not to be added or deleted, which is creating further issues

Our project is such that we want to work in a single scene because it will be beneficial for us. If we create separate scenes, it will cause many problems. There might be some other way as well.

@KPal Can you take a look at this issue where the user can’t delete entities?

Our project is such that we want to work in a single scene because it will be beneficial for us. If we create separate scenes, it will cause many problems. There might be some other way as well.

At the moment, there is no other choice. There is a hard limit on the scene hierarchy JSON size

I would be surprised if there wasn’t some small workarounds that allow you to split into multiple scenes/templates and load at runtime

Hello! could you add me to your project to take a look? username: kpal

Thanks!

ok

I added you please check

1 Like

@KPal , nothing has been deleted yet. Entities are still not being deleted. Did you check this?

Yes I am testing some stuff on a separate branch I created to not impact your project

1 Like

ok thank you for your coordination

No worries! Which entities would you like to delete? I can at least get those deleted to allow you to continue while i find the root cause on another branch

Update: I have managed to find the corrupt entity and fix it so you should now be able to delete entities :slight_smile:

1 Like

Thank you for your help. It’s working now…

1 Like

@KPal Well I have stucked in the very same problem again

After deleting a lot of things which could be deleted from the scene I thought I won’t face the issue again
But after doing some of the work in scene like adding tags to entities i am facing the same issue again
can’t even move the entity as well,
can’t add tags anymore,
Having the same error of can not save changes please refresh the editor

Would you please check it once again and resolve the issue
and guide me as well why am I getting this error all over again and how can I prevent it for the next time

I will take a look for you

Yes, please remove the corrupted files and entities, and also let us know how to identify corrupted entities and files so that we can handle it ourselves as well

1 Like

I have cloned the main branch into a branch called test but I do not see any issues with creating and deleting or moving entities? Could you replicate in this branch so I can validate that the issue still persists. Thanks.

I have already resolved my issue. Thank you for your coordination and help.

1 Like

No worries. If you find the issue again create a checkpoint before fixing so I can inspect your scene