MCPcopy Create free account
hub / github.com/defold/defold / FlushRecording

Function FlushRecording

engine/profiler/src/profiler_render.cpp:277–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275 }
276
277 static void FlushRecording(RenderProfile* render_profile, uint32_t capacity)
278 {
279 uint32_t c = render_profile->m_RecordBuffer.Size();
280 for (uint32_t i = 0; i < c; ++i)
281 {
282 ProfilerFrame* frame = render_profile->m_RecordBuffer[i];
283 DeleteProfilerFrame(frame);
284 }
285 if (render_profile->m_RecordBuffer.Capacity() < capacity)
286 render_profile->m_RecordBuffer.SetCapacity(capacity);
287 render_profile->m_RecordBuffer.SetSize(0);
288 render_profile->m_PlaybackFrame = -1;
289 }
290
291 // float *r, *g, *b; /* red, green, blue in [0,1] */
292 // float h, s, l; /* hue in [0,360]; saturation, light in [0,1] */

Callers 2

DeleteMethod · 0.85
SetModeFunction · 0.85

Calls 5

DeleteProfilerFrameFunction · 0.85
SizeMethod · 0.45
CapacityMethod · 0.45
SetCapacityMethod · 0.45
SetSizeMethod · 0.45

Tested by

no test coverage detected