Download

How does the multithread rendering work?

Is there any video or document?

The code is quite complicated, it is almost close to impossible to be familiar with every line of code in the game engine. Not to mention there are a lot of new work added everyday.

I’ve read some code, got a basic idea of how it is working.

The main thread will issue a command by something like:
ENQUEUE_UNIQUE_RENDER_COMMAND_xxx
It will insert a task into TaskGraph.
And the rendering thread will try to get available tasks for it to process.

In that way, the main logic computing and rendering could be separated.

However, there aren’t any details. Although theoretically, it is possible to get it clear by reading all of the code related to multithreaded, which is quite difficult.

Is there any quick way for me to get a basic understanding of how it works in UE4?

Thanks