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

Method EndFrame

Source/Engine/Profiler/ProfilerGPU.cpp:164–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void ProfilerGPU::EndFrame()
165{
166 if (_depth)
167 {
168 LOG(Warning, "GPU Profiler events start/end mismatch");
169 }
170
171 // Move frame
172 CurrentBuffer = (CurrentBuffer + 1) % PROFILER_GPU_EVENTS_FRAMES;
173
174 // Prepare current frame buffer
175 auto& buffer = Buffers[CurrentBuffer];
176 buffer.Clear();
177}
178
179bool ProfilerGPU::GetLastFrameData(float& drawTimeMs, float& presentTimeMs, RenderStatsData& statsData)
180{

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected