Performance Spike Instantiating Dialogue System Trigger
Posted: Tue Dec 19, 2023 9:43 pm
I'm experiencing large CPU performance spikes when instantiating prefabs that have a Dialogue System Trigger attached. Baseline CPU/Scripts is around 2.3 ms and it jumps to ~42 ms each time I instantiate a single prefab. If I remove the trigger it's around 7 ms (other scripts and effects run simultaneously).
Disabling the script has no impact, but removing it entirely prevents the spike. The are no actions included in the triggers.
Since I have object pools setup for these prefabs it's taking an eternity to load scenes.
On the Dialogue System Controller script I've checked Preload Resources and turned on Warm Up Conversation, each with no effect.
I have 8 Actors setup in the Dialogue Database (so far), no quests or locations, 6 variables, and 5 conversations.
https://ibb.co/D1YLfj1
Disabling the script has no impact, but removing it entirely prevents the spike. The are no actions included in the triggers.
Since I have object pools setup for these prefabs it's taking an eternity to load scenes.
On the Dialogue System Controller script I've checked Preload Resources and turned on Warm Up Conversation, each with no effect.
I have 8 Actors setup in the Dialogue Database (so far), no quests or locations, 6 variables, and 5 conversations.
https://ibb.co/D1YLfj1