FPreLoadScreenSlateThreadTask

The Slate thread is simply run on a worker thread.

Windows
MacOS
Linux

Inheritance Hierarchy

FRunnable

FPreLoadScreenSlateThreadTask

References

Module

PreLoadScreen

Header

/Engine/Source/Runtime/PreLoadScreen/Public/PreLoadSlateThreading.h

Include

#include "PreLoadSlateThreading.h"

Syntax

class FPreLoadScreenSlateThreadTask : public FRunnable

Remarks

The Slate thread is simply run on a worker thread. Slate is run on another thread because the game thread (where Slate is usually run) is blocked loading things. Slate is very modular, which makes it very easy to run on another thread with no adverse effects. It does not enqueue render commands, because the RHI is not thread safe. Thus, it waits to enqueue render commands until the render thread tickables ticks, and then it calls them there.

Constructors

Overridden from FRunnable

Name Description

Public function Virtual

bool

 

Init()

FRunnable interface

Public function Virtual

uint32

 

Run()

Runs the runnable object.

Public function Virtual

void

 

Stop()

Stops the runnable object.

This is called if a thread is requested to terminate early.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss