What's SlateUI, it costs too much time

Hi,

Does anybody know SlateUI? I have a performance issue using Oculus Rift DK2. I find some developers have asked similar questions, but no answer to these questions.

I’m trying to get the latency down to <14ms for VR. The ‘profilegpu’ shows SlateUI takes 4.87ms in VR mode (Alt + Enter), but I don’t think it’s related to UI elements, because I remove all the UI elements from my game. Besides, I created an new empty project, ‘profilegpu’ also told me SlateUI taking lots of time.

99429-gpu0.png

From the source code, FSlateRHIRenderer::DrawWindow_RenderThread is doing the Slate Rendering. Guess, copying final render target to back buffer, rendering it to two views and flush/sync take much time.

Thanks in advance for your help.

Any suggestion?

Hi KevinWang,

Slate is used to render the actual Unreal Editor UI. Don’t worry about it, because when you package your project it will no longer be used.

@ Even without the editor open, SlateUI is still showing up in the GPU Profiler with a decent chunk of ms (started game through File Explorer, Right mouse “Launch Game”)

Did you launched the packaged game binaries or did you right click on the project and selected “Launch Game”? The second option doesn’t represents the final game, I think the editor opens in the background (invisible to the user) to start the game. It is the same as selecting in the editor “Play in standalone view”.