10 DRAW_PERF_TRIANGLES_UNKNOWN = 0,
11 DRAW_PERF_TRIANGLES_UI = 1,
12 DRAW_PERF_TRIANGLES_TERRAIN = 2,
13 DRAW_PERF_TRIANGLES_CHARACTER = 3,
14 DRAW_PERF_TRIANGLES_MESH = 4,
16 DRAW_PERF_DRAW_CALL_COUNT = 5,
18 DRAW_PERF_TOTAL_TRIANGLES = 6,
31 static int GetMaxSimultaneousTextures();
34 static int g_perfCounters[DRAW_PERF_END];
38 #ifdef USE_DIRECTX_RENDERER 39 #include "RenderDeviceDirectX.h" 40 #elif defined(USE_OPENGL_RENDERER) 41 #include "RenderDeviceOpenGL.h" 43 #include "RenderDeviceOpenGL.h" static int GetPerfCount(StatisticsType nStatisticsType)
get the performance counter for a given type
Definition: RenderDevice.cpp:17
different physics engine has different winding order.
Definition: EventBinding.h:32
Definition: RenderDevice.h:5
static void ClearAllPerfCount()
reset all the performance counters to 0.
Definition: RenderDevice.cpp:22
static void IncrementDrawBatchAndVertices(int nDrawCount, int nVertices, int nPrimitiveType=DRAW_PERF_TRIANGLES_UNKNOWN)
increment both draw count and vertices
Definition: RenderDevice.cpp:27