Is it possible for clients to load entities with scene instead of attaching them after load?

I want to have many enemies spawn into the world when the players spawn in. However, it can cause some lag spikes as all the entities are getting attached and loaded.

Is it possible to have an entity already in the scene, and then attach it after all players are done loading? Or is there maybe some better way to do it?

Answers

  • Do you have a specific example showing the issue you're running to? The problem could be in any of several areas.
  • Simplest case is:

    - Have a BoltEntity in the scene
    - OnServer, when all players have finished loading, attach the entity

    On the client, will this link their locally loaded entity to the one that was attached on the server?
Sign In or Register to comment.