[Metal] iOS vertical sync

Hey Everyone,


I'm currently working on a metal 2 renderer and I've hit a snag. I was able to disable vsync on macOS by setting the MTKView to paused and I enabled enableSetNeedsDisplay. This works well on macOS by setting setNeedsDisplay to YES.

I am using MetalKit for the base app and using a GameViewController.


On iOS it's a different story. I get a blank screen that doesn't update although the draw function is being called correctly. I tried calling setNeedsLayout but that shows a static view.

For now I have decided that it's not possible but I'd like to be proven wrong.


I would appreciate it if anyone could give me some pointers on whether or not its possible.



Thank you

-Antoine