Dialogue Manager EditorLoop Performance?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
PayasoPrince
Posts: 104
Joined: Thu Jan 27, 2022 6:47 pm

Dialogue Manager EditorLoop Performance?

Post by PayasoPrince »

Hello,

I have a strange issue that only occurs in Editor mode but does not occur when I build my game.

Anytime I press a key, even if the key does nothing, I get frame drops/jitters. I looked at the profiler and found that the cause of this is the EditorLoop. It's total is extremely high and it spikes higher anytime I press a key:
Image

I believe that this is the Dialogue Manager's Editor assets causing the EditorLoop to intensify.
Is there any way to resolve this? :?
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue Manager EditorLoop Performance?

Post by Tony Li »

It depends on the reason. The Unity editor gets slow when serializing any large asset, including large dialogue database assets. Tick the Dialogue Editor's Database section > Editor Settings > Fast Undo For Large Databases checkbox. If that doesn't fix it, turn on deep profiling and identify what method(s) in the editor loop are causing slowdowns.
Post Reply