Stop spam

This commit is contained in:
Daniel Collin 2019-10-28 09:39:02 +01:00
parent b4675905d2
commit 644ff06483

View file

@ -17,6 +17,8 @@ id<MTLRenderPipelineState> g_pipeline_state;
-(void)drawInMTKView:(nonnull MTKView *)view -(void)drawInMTKView:(nonnull MTKView *)view
{ {
//printf("draw view\n");
// Wait to ensure only MaxBuffersInFlight number of frames are getting proccessed // Wait to ensure only MaxBuffersInFlight number of frames are getting proccessed
// by any stage in the Metal pipeline (App, Metal, Drivers, GPU, etc) // by any stage in the Metal pipeline (App, Metal, Drivers, GPU, etc)
dispatch_semaphore_wait(m_semaphore, DISPATCH_TIME_FOREVER); dispatch_semaphore_wait(m_semaphore, DISPATCH_TIME_FOREVER);