MCPcopy Create free account
hub / github.com/carbonengine/trinity / Begin

Method Begin

trinity/Tr2GpuProfiler.cpp:70–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void Tr2GpuProfiler::Begin( IRoot* owner, const char* label, Tr2RenderContextAL& context )
71{
72 if( m_capturing )
73 {
74 Zone capture;
75 capture.type = Zone::REGION_BEGIN;
76 {
77 USE_MAIN_THREAD_RENDER_CONTEXT();
78 CR( capture.query.Create( renderContext ) );
79 CR( capture.timer.Create( renderContext ) );
80 }
81 capture.owner = owner;
82 capture.message = label;
83 CR( capture.query.Begin( context ) );
84 capture.timer.Begin( context );
85 m_stack.push_back( m_zones.size() );
86 m_zones.push_back( capture );
87 }
88}
89
90void Tr2GpuProfiler::End( Tr2RenderContextAL& renderContext )
91{

Callers 12

RenderVolumetricsMethod · 0.45
Tr2GpuProfilerZoneMethod · 0.45
RenderBatchesInOrderMethod · 0.45
RenderBatchGroupMethod · 0.45
RunSimulationMethod · 0.45
EmitParticlesMethod · 0.45
SortMethod · 0.45
RenderMethod · 0.45
BeginExecuteMethod · 0.45
TimeSectionMethod · 0.45

Calls 2

sizeMethod · 0.80
CreateMethod · 0.45

Tested by

no test coverage detected