mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 11:21:30 +11:00
Stop spam
This commit is contained in:
parent
b4675905d2
commit
644ff06483
|
@ -17,6 +17,8 @@ id<MTLRenderPipelineState> g_pipeline_state;
|
|||
|
||||
-(void)drawInMTKView:(nonnull MTKView *)view
|
||||
{
|
||||
//printf("draw view\n");
|
||||
|
||||
// Wait to ensure only MaxBuffersInFlight number of frames are getting proccessed
|
||||
// by any stage in the Metal pipeline (App, Metal, Drivers, GPU, etc)
|
||||
dispatch_semaphore_wait(m_semaphore, DISPATCH_TIME_FOREVER);
|
||||
|
|
Loading…
Reference in a new issue