Page 1 of 1

What does the "EF_", "FX_", "RT_" prefix in renderer-code mean?

Posted: Thu Mar 22, 2018 7:43 am
by toparada2
What does the "EF_", "FX_", "RT_" prefix in renderer-code mean?
I'm weak in English and I do not know what the prefixes mean..
Do they have any special meanings?

Please help me..

Re: What does the "EF_", "FX_", "RT_" prefix in renderer-code mean?

Posted: Fri Apr 06, 2018 10:12 am
by cry-miron
The RT_ prefix stands for RenderThread. This means that this method needs to be called from the render thread. To call these functions you often have 2 versions of the method, the RT version that can be called from the render thread, and the normal version that can be called from the main thread. Example:

Code: Select all

// Can be called from the main thread.
bool CD3D9Renderer::CreateDevice();

// Should only be called from the render thread. Calling CreateDevice() on the main thread will make sure this is called on the render thread.
bool CD3D9Renderer::RT_CreateDevice()
The FX_ prefix was used in the legacy pipeline for special effects, but is not used anymore as far as I know since the rendering refactor.

The EF_ prefix is most likely for "effects", but I'm not really sure what the exact meaning is of this prefix.