![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Macros | |
#define | R_SPEEDS_GRAPH_COLORS 8 |
#define | R_SPEEDS_GRAPH_TEXTLENGTH 64 |
Functions | |
static int | R_CountLeafTriangles (const model_t *model, const mleaf_t *leaf) |
void | R_TimeReport (const char *desc) |
void | R_TimeReport_BeginFrame (void) |
void | R_TimeReport_EndFrame (void) |
Variables | |
cvar_t | r_speeds_graph = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph", "0", "display a graph of renderer statistics "} |
static float | r_speeds_graph_colors [R_SPEEDS_GRAPH_COLORS][4] = {{1, 0, 0, 1}, {0, 1, 0, 1}, {0, 0, 1, 1}, {1, 1, 0, 1}, {0, 1, 1, 1}, {1, 0, 1, 1}, {1, 1, 1, 1}, {1, 0.5f, 0, 1}} |
cvar_t | r_speeds_graph_filter [8] |
cvar_t | r_speeds_graph_height = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_height", "128", "size of graph"} |
cvar_t | r_speeds_graph_length = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_length", "1024", "number of frames in statistics graph, can be from 4 to 8192"} |
cvar_t | r_speeds_graph_maxdefault = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_maxdefault", "100", "if the minimum and maximum observed values are closer than this, use this value as the graph range (keeps small numbers from being big graphs)"} |
cvar_t | r_speeds_graph_maxtimedelta = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_maxtimedelta", "16667", "maximum timedelta to display in the graph (this value will be the top line)"} |
cvar_t | r_speeds_graph_seconds = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_seconds", "2", "number of seconds in graph, can be from 0.1 to 120"} |
cvar_t | r_speeds_graph_width = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_width", "256", "size of graph"} |
cvar_t | r_speeds_graph_x = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_x", "0", "position of graph"} |
cvar_t | r_speeds_graph_y = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_y", "0", "position of graph"} |
int | r_speeds_longestitem = 0 |
char | r_speeds_timestring [4096] |
const char * | r_stat_name [r_stat_count] |
int | r_timereport_active |
double | r_timereport_current = 0 |
double | r_timereport_start = 0 |
double | r_timereport_temp = 0 |
int | speedstringcount |
float | viewscalefpsadjusted |
#define R_SPEEDS_GRAPH_COLORS 8 |
Definition at line 250 of file r_stats.c.
Referenced by R_TimeReport_EndFrame().
Definition at line 242 of file r_stats.c.
References mleaf_t::firstleafsurface, i, model, and mleaf_t::numleafsurfaces.
Referenced by R_TimeReport_EndFrame().
void R_TimeReport | ( | const char * | desc | ) |
Definition at line 193 of file r_stats.c.
References CHECKGLERROR, dp_strlcat, dpsnprintf(), GL_Finish(), int(), cvar_t::integer, length, r_speeds, r_speeds_longestitem, r_speeds_timestring, r_timereport_active, r_timereport_current, r_timereport_temp, speedstringcount, Sys_DirtyTime(), and vid_conwidth.
Referenced by CL_Frame(), CL_VM_DrawHud(), CL_VM_UpdateView(), Host_Frame(), R_RenderScene(), R_RenderView(), R_RenderWaterPlanes(), R_Shadow_DrawPrepass(), R_Shadow_UpdateBounceGridTexture(), S_PaintAndSubmit(), S_Update(), SCR_DrawScreen(), and SV_Frame().
Definition at line 228 of file r_stats.c.
References cvar_t::integer, r_refdef, r_speeds, r_speeds_timestring, r_timereport_active, r_timereport_current, r_timereport_start, speedstringcount, r_refdef_t::stats, and Sys_DirtyTime().
Referenced by SCR_DrawScreen().
Definition at line 255 of file r_stats.c.
References mleaf_t::areaindex, bound, model_t::brush, cl, CL_Locs_FindNearest(), cls, mleaf_t::clusterindex, color, r_refdef_view_t::colorscale, Cvar_SetValueQuick(), data, model_brush_t::data_leafs, dpsnprintf(), DrawQ_Fill(), DrawQ_Line(), DrawQ_String(), fabs(), float, FONT_DEFAULT, r_refdef_view_t::forward, height, host, i, index, int(), cvar_t::integer, max, Mem_Alloc, Mem_Free, client_state_t::movement_origin, cl_locnode_t::name, NULL, client_state_t::num_particles, mleaf_t::numleafbrushes, mleaf_t::numleafsurfaces, r_refdef_view_t::origin, client_static_t::permanentmempool, model_brush_t::PointInLeaf, r_refdef_view_t::quality, R_CountLeafTriangles(), r_draw2d_force, r_refdef, r_speeds, r_speeds_graph, R_SPEEDS_GRAPH_COLORS, r_speeds_graph_colors, client_static_t::r_speeds_graph_current, client_static_t::r_speeds_graph_data, client_static_t::r_speeds_graph_datamax, client_static_t::r_speeds_graph_datamin, r_speeds_graph_filter, r_speeds_graph_height, client_static_t::r_speeds_graph_length, r_speeds_graph_length, r_speeds_graph_maxdefault, r_speeds_graph_maxtimedelta, r_speeds_graph_seconds, r_speeds_graph_width, r_speeds_graph_x, r_speeds_graph_y, r_speeds_timestring, r_stat_animcache_shade_vertices, r_stat_animcache_shape_vertices, r_stat_animcache_skeletal_bones, r_stat_batch_copytriangles_batches, r_stat_batch_copytriangles_surfaces, r_stat_batch_copytriangles_triangles, r_stat_batch_copytriangles_vertices, r_stat_batch_dynamic_batches, r_stat_batch_dynamic_surfaces, r_stat_batch_dynamic_triangles, r_stat_batch_dynamic_vertices, r_stat_batch_fast_batches, r_stat_batch_fast_surfaces, r_stat_batch_fast_triangles, r_stat_batch_fast_vertices, r_stat_bloom_copypixels, r_stat_bloom_drawpixels, r_stat_bouncegrid_bounces, r_stat_bouncegrid_hits, r_stat_bouncegrid_lights, r_stat_bouncegrid_particles, r_stat_bouncegrid_splats, r_stat_bouncegrid_traces, r_stat_count, r_stat_drawndecals, r_stat_draws, r_stat_draws_elements, r_stat_draws_vertices, r_stat_entities, r_stat_entities_surfaces, r_stat_entities_triangles, r_stat_framedatacurrent, r_stat_framedatasize, r_stat_indexbufferuploadcount, r_stat_indexbufferuploadsize, r_stat_lightmapupdatepixels, r_stat_lightmapupdates, r_stat_lights, r_stat_lights_clears, r_stat_lights_dynamicshadowtriangles, r_stat_lights_lighttriangles, r_stat_lights_scissored, r_stat_lights_shadowtriangles, r_stat_name, r_stat_particles, r_stat_photoncache_animated, r_stat_photoncache_cached, r_stat_photoncache_traced, r_stat_quality, r_stat_renders, r_stat_rendertargets_pixels, r_stat_rendertargets_used, r_stat_timedelta, r_stat_totaldecals, r_stat_vertexbufferuploadcount, r_stat_vertexbufferuploadsize, r_stat_world_leafs, r_stat_world_portals, r_stat_world_surfaces, r_stat_world_triangles, r_timereport_active, r_timereport_current, r_timereport_start, host_static_t::realtime, sb_lines, r_refdef_t::scene, speedstringcount, r_refdef_t::stats, strlen(), Sys_DirtyTime(), client_state_t::time, cvar_t::value, vid_conheight, vid_conwidth, r_refdef_t::view, width, r_refdef_scene_t::worldmodel, x, x1, x2, y, and y2.
Referenced by SCR_DrawScreen().
cvar_t r_speeds_graph = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph", "0", "display a graph of renderer statistics "} |
Definition at line 4 of file r_stats.c.
Referenced by CL_Screen_Init(), and R_TimeReport_EndFrame().
|
static |
Definition at line 252 of file r_stats.c.
Referenced by R_TimeReport_EndFrame().
cvar_t r_speeds_graph_filter[8] |
Definition at line 5 of file r_stats.c.
Referenced by CL_Screen_Init(), and R_TimeReport_EndFrame().
cvar_t r_speeds_graph_height = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_height", "128", "size of graph"} |
Definition at line 21 of file r_stats.c.
Referenced by CL_Screen_Init(), and R_TimeReport_EndFrame().
cvar_t r_speeds_graph_length = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_length", "1024", "number of frames in statistics graph, can be from 4 to 8192"} |
Definition at line 16 of file r_stats.c.
Referenced by CL_Screen_Init(), and R_TimeReport_EndFrame().
cvar_t r_speeds_graph_maxdefault = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_maxdefault", "100", "if the minimum and maximum observed values are closer than this, use this value as the graph range (keeps small numbers from being big graphs)"} |
Definition at line 23 of file r_stats.c.
Referenced by CL_Screen_Init(), and R_TimeReport_EndFrame().
cvar_t r_speeds_graph_maxtimedelta = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_maxtimedelta", "16667", "maximum timedelta to display in the graph (this value will be the top line)"} |
Definition at line 22 of file r_stats.c.
Referenced by CL_Screen_Init(), and R_TimeReport_EndFrame().
cvar_t r_speeds_graph_seconds = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_seconds", "2", "number of seconds in graph, can be from 0.1 to 120"} |
Definition at line 17 of file r_stats.c.
Referenced by CL_Screen_Init(), and R_TimeReport_EndFrame().
cvar_t r_speeds_graph_width = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_width", "256", "size of graph"} |
Definition at line 20 of file r_stats.c.
Referenced by CL_Screen_Init(), and R_TimeReport_EndFrame().
cvar_t r_speeds_graph_x = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_x", "0", "position of graph"} |
Definition at line 18 of file r_stats.c.
Referenced by CL_Screen_Init(), and R_TimeReport_EndFrame().
cvar_t r_speeds_graph_y = {CF_CLIENT | CF_ARCHIVE, "r_speeds_graph_y", "0", "position of graph"} |
Definition at line 19 of file r_stats.c.
Referenced by CL_Screen_Init(), and R_TimeReport_EndFrame().
int r_speeds_longestitem = 0 |
Definition at line 191 of file r_stats.c.
Referenced by R_TimeReport().
char r_speeds_timestring[4096] |
Definition at line 188 of file r_stats.c.
Referenced by R_TimeReport(), R_TimeReport_BeginFrame(), and R_TimeReport_EndFrame().
const char* r_stat_name[r_stat_count] |
Definition at line 26 of file r_stats.c.
Referenced by R_TimeReport_EndFrame().
int r_timereport_active |
Definition at line 189 of file r_stats.c.
Referenced by R_RenderScene(), R_RenderView(), R_RenderWaterPlanes(), R_Shadow_DrawPrepass(), R_TimeReport(), R_TimeReport_BeginFrame(), R_TimeReport_EndFrame(), and SCR_DrawScreen().
double r_timereport_current = 0 |
Definition at line 190 of file r_stats.c.
Referenced by R_TimeReport(), R_TimeReport_BeginFrame(), and R_TimeReport_EndFrame().
double r_timereport_start = 0 |
Definition at line 190 of file r_stats.c.
Referenced by R_TimeReport_BeginFrame(), and R_TimeReport_EndFrame().
double r_timereport_temp = 0 |
Definition at line 190 of file r_stats.c.
Referenced by R_TimeReport().
int speedstringcount |
Definition at line 189 of file r_stats.c.
Referenced by R_TimeReport(), R_TimeReport_BeginFrame(), and R_TimeReport_EndFrame().
|
extern |
Definition at line 4382 of file gl_rmain.c.
Referenced by R_Bloom_StartFrame().