Backends: OSX, Metal: Tweaks. Use preferred method of obtaining a timestamp. (#4821)

+ Rename ImGuiFocusObserver. Docking branch will use it for more than focus.
This commit is contained in:
stuartcarnie
2022-04-27 16:33:14 +03:00
committed by ocornut
parent 3e5dde9a26
commit d58b8414b9
3 changed files with 22 additions and 38 deletions

View File

@ -125,8 +125,6 @@
#endif
io.DisplayFramebufferScale = ImVec2(framebufferScale, framebufferScale);
io.DeltaTime = 1 / float(view.preferredFramesPerSecond ?: 60);
id<MTLCommandBuffer> commandBuffer = [self.commandQueue commandBuffer];
MTLRenderPassDescriptor* renderPassDescriptor = view.currentRenderPassDescriptor;