UFO: Alien Invasion
Loading...
Searching...
No Matches
r_thread.cpp File Reference
#include "r_local.h"
#include "../../ports/system.h"
#include "../../shared/thread.h"
#include <unistd.h>
Include dependency graph for r_thread.cpp:

Go to the source code of this file.

Macros

#define THREAD_SLEEP_INTERVAL   5

Functions

int R_RunThread (void *p)
void R_ShutdownThreads (void)
void R_InitThreads (void)

Variables

renderer_threadstate_t r_threadstate

Macro Definition Documentation

◆ THREAD_SLEEP_INTERVAL

#define THREAD_SLEEP_INTERVAL   5

Definition at line 36 of file r_thread.cpp.

Referenced by R_RunThread().

Function Documentation

◆ R_InitThreads()

void R_InitThreads ( void )
See also
R_ShutdownThreads

Definition at line 85 of file r_thread.cpp.

References Com_CreateThread(), R_RunThread(), and r_threadstate.

Referenced by R_BeginFrame().

◆ R_RunThread()

int R_RunThread ( void * p)
Todo
  • update per-model dynamic light list sorting here

Definition at line 38 of file r_thread.cpp.

References R_GetLevelSurfaceLists(), R_SetupFrustum(), r_threads, r_threadstate, refdef, Sys_Sleep(), THREAD_BSP, THREAD_RENDERER, and THREAD_SLEEP_INTERVAL.

Referenced by R_InitThreads().

◆ R_ShutdownThreads()

void R_ShutdownThreads ( void )
See also
R_InitThreads

Definition at line 69 of file r_thread.cpp.

References r_threads, r_threadstate, and THREAD_BSP.

Referenced by R_BeginFrame(), and R_Shutdown().

Variable Documentation

◆ r_threadstate