Page 1 of 1

Very low performance in Play Mode

Posted: Thu Feb 21, 2019 11:06 am
by Abelius
Hi Tony,

This could actually be an old one because I've observed this since I'm using DS, but only now I've come to realize exactly how to reproduce it, and it's so awfully self-evident that I'm ashamed I didn't before. :roll:

The thing is, when I enter Play Mode, the general performance of the entire Unity Editor windows could hit pretty hard.

I thought at first this could be related to my own game's optimization (which is not great, I admit), but then I realized that the graphics stats in the Game window are always over 100 FPS. However, the apparent performance of the game looks more like 10 FPS (not kidding). And that manifests in both Game and Scene windows.

But... that only happens when I have something selected in the Conversation Editor window. Both a node or the conversation properties, by clicking on the window background. Then, if I click on an empty space or any other object in the Scene window, the heavy lag disappears.

In fact, even outside Play Mode, I think it's affecting Unity performance. Everything goes smoother as long there's nothing DS related in the Inspector.

No doubt is a good thing I've found out how to avoid this issue when testing the game, but I'm wondering if this is something it could be fixed, either with a different config or by you investigating into the matter. Also, I don't know if this is happening to me only, or could be a general issue with the plugin.

At any rate, you know you can reach to me in case you want more tests done or uploading my project.

Thanks.

Re: Very low performance in Play Mode

Posted: Thu Feb 21, 2019 11:16 am
by Tony Li
The node editor has a lot to draw, and it's not just drawing but processing. You've probably noticed slower performance when the editor is showing a lot of nodes, and it has even more to do in play mode when showing the active conversation. It tries to cache as much as possible to reduce processing, but I'll look for ways to optimize this in future updates.

Re: Very low performance in Play Mode

Posted: Thu Feb 21, 2019 11:39 am
by Abelius
Ah, I see. So it's related to the graphical representation.

But I still don't get why the issue manifests only when selecting something, and not as long as the editor window is visible? :?

Anyway, thank you in advance for looking into it.

Re: Very low performance in Play Mode

Posted: Thu Feb 21, 2019 11:45 am
by Tony Li
I'm sure there's something I can optimize. I'll see what I can do in the next few updates.