#include "r_local.h"
#include "../../ports/system.h"
#include <unistd.h>
#include <SDL_thread.h>
Go to the source code of this file.
Defines | |
#define | THREAD_SLEEP_INTERVAL 100 |
Functions | |
int | R_RunThread (void *p) |
void | R_ShutdownThreads (void) |
void | R_InitThreads (void) |
Variables | |
renderer_threadstate_t | r_threadstate |
Definition in file r_thread.c.
#define THREAD_SLEEP_INTERVAL 100 |
Definition at line 34 of file r_thread.c.
Referenced by R_RunThread().
void R_InitThreads | ( | void | ) |
Definition at line 77 of file r_thread.c.
References R_RunThread(), and renderer_threadstate_s::thread.
Referenced by R_BeginFrame().
int R_RunThread | ( | void * | p | ) |
Definition at line 36 of file r_thread.c.
References Com_DPrintf(), DEBUG_RENDERER, cvar_s::integer, R_GetLevelSurfaceLists(), R_SetupFrustum(), r_threads, rendererData_t::ready, refdef, renderer_threadstate_s::state, Sys_Sleep(), THREAD_BSP, THREAD_RENDERER, and THREAD_SLEEP_INTERVAL.
Referenced by R_InitThreads().
void R_ShutdownThreads | ( | void | ) |
Definition at line 66 of file r_thread.c.
References renderer_threadstate_s::thread.
Referenced by R_BeginFrame(), and R_Shutdown().
Definition at line 32 of file r_thread.c.
Referenced by CL_ViewRender(), R_RenderFrame(), and SCR_TimeRefresh_f().