I am working on improving the performance of our game. The main performance issue seems to be slate.
I use a packed version with r.vsync 0 and t.maxFrames 150 to make sure that no UI Elements from the editor interfere and the framerate is not capped by vsync or anything else.
When I have a look at the profiler slate takes something between half and a third of our whole frame time.
What is kind of weird about this is that when I use the stat slate to look at the slate performance than the window is telling me that slate takes only 0.3ms which would be perfectly fine. In the profiler it is usually more than 10ms.
We do not have very complex widgets, only our tutorial screens. But they are only created once we need them. Only thing is that we have a special effect like shooter games so in certain situtations the corners of the screen turn red, which is handled by a widget. It is created from code but we have the performance issues before it is attached to the viewport.
Any ideas what is happening or how to improve this?