FPreLoadScreenSlateThreadTask

The Slate thread is simply run on a worker thread.

Choose your operating system:

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

void

 

Exit()

Exits the runnable object.

Public function Virtual

bool

 

Init()

Initializes the runnable object.

Public function Virtual

uint32

 

Run()

Runs the runnable object.