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

Method Tick

trinity/Tr2SyncToGpu.cpp:13–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void Tr2SyncToGpu::Tick()
14{
15 USE_MAIN_THREAD_RENDER_CONTEXT();
16 uint64_t completed;
17 m_frame = renderContext.GetRecordingFrameNumber();
18 completed = renderContext.GetRenderedFrameNumber();
19 for( auto it = begin( m_tasks ); it != end( m_tasks ); ++it )
20 {
21 if( it->frame > completed )
22 {
23 m_tasks.erase( begin( m_tasks ), it );
24 return;
25 }
26 it->task();
27 }
28 m_tasks.clear();
29}
30
31void Tr2SyncToGpu::Flush()
32{

Callers 1

RenderMethod · 0.80

Calls 4

beginFunction · 0.70
endFunction · 0.70

Tested by

no test coverage detected