Forum rules - please read before posting.

Delay when switching to a player for the second time

I get a very noticeable delay/freezing while switching players, all except for the first time..

To reproduce, add two player to the same scene (each with an associated NPC to replace them during player switching), play and:
1. Switch to Player 2
2. Switch to Player 1
3. Switch to Player 2 (SLOW)
4. Switch to Player 1
5. Switch to Player 2 (SLOW)
6. Switch to Player 1
7. Switch to Player 2 (SLOW)

And so it goes on. Any ideas?

Comments

  • I cannot recreate such a delay from this alone. What are your field settings and components for the two players?

    Use the Profiler window, with Deep Profile enabled, to see if there is a memory spike (and learn the cause) at this time.

    This is likely due to the loading of Resources assets, e.g. walk sounds, when restoring a Player's position. If you have many files in Resources folders, see the optimisation tips in the Manual's "Performance and optimisation" chapter.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.