MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / BeginFrame

Method BeginFrame

Source/Engine/Profiler/ProfilerGPU.cpp:135–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void ProfilerGPU::BeginFrame()
136{
137 // Clear stats
138 RenderStatsData::Counter = RenderStatsData();
139 _depth = 0;
140 auto& buffer = Buffers[CurrentBuffer];
141 buffer.FrameIndex = Engine::FrameCount;
142 buffer.PresentTime = 0.0f;
143
144 // Try to resolve previous frames
145 for (int32 i = 0; i < PROFILER_GPU_EVENTS_FRAMES; i++)
146 {
147 Buffers[i].TryResolve();
148 }
149}
150
151void ProfilerGPU::OnPresent()
152{

Callers

nothing calls this directly

Calls 2

RenderStatsDataClass · 0.85
TryResolveMethod · 0.80

Tested by

no test coverage detected