Summary
Using the NPC Spawner Device in your game slows down the whole server, causing all kinds of problems like rubberbanding. My guess is that it causes some kind of memory leak on the server.
This is a new issue with v32.00. Everything worked fine before the update.
I have created a test project that tests in iterations with the following steps:
- Spawn 20 NPCs
- Wait for the npc_spawner_device.SpawnedEvent to fire 20 times.
- Kill each NPC by damaging them with Verse (without disabling the NPC spawner)
As you can see from the attached log, the first iteration takes about 6 seconds on a fresh server. After running for 1 hour it already takes 60 seconds for one iteration.
After a while, the NPCs will spawn with the default skin, and then load the correct skin near the end of each iteration (see screenshot).
In UEFN, the lag persists over multiple playtest sessions. This means that if I stop my playtest at 70 seconds and start a new one, the first iteration will also take 70 seconds.
I have published a private island for my test project here: 3527-5151-8965
The same problem can be seen in Havoc Hotel 2 (7996-5597-0868).
Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Stability
Steps to Reproduce
See description.
Do these steps multiple times:
- Spawn 20 NPCs
- Wait for the npc_spawner_device.SpawnedEvent to fire 20 times.
- Kill each NPC
Expected Result
Each test iteration should take the same amount of time (approximately 7 seconds).
Observed Result
Each test iteration takes longer than the previous one. Also the server slows down (rubberbanding, UI lag, damage lag, …)
Platform(s)
PC
Island Code
3527-5151-8965
server lag test.txt (12.4 KB)