From 1ab40ff5b96bd8acfdb4821ed00b000adb041cad Mon Sep 17 00:00:00 2001 From: Yuval Dolev Date: Tue, 14 Jan 2020 17:21:03 +0200 Subject: [PATCH] Lowered view sample count to improve the rendering speed on high dpi displays. --- metal/4ed_metal_render.mm | 1 - platform_mac/mac_4ed_metal.mm | 1 - 2 files changed, 2 deletions(-) diff --git a/metal/4ed_metal_render.mm b/metal/4ed_metal_render.mm index 5cace252..7ac6f35e 100644 --- a/metal/4ed_metal_render.mm +++ b/metal/4ed_metal_render.mm @@ -223,7 +223,6 @@ metal__make_buffer(u32 size, id device){ pipeline_state_descriptor.vertexFunction = vertex_function; pipeline_state_descriptor.fragmentFunction = fragment_function; pipeline_state_descriptor.vertexDescriptor = vertexDescriptor; - pipeline_state_descriptor.sampleCount = mtk_view.sampleCount; pipeline_state_descriptor.colorAttachments[0].pixelFormat = mtk_view.colorPixelFormat; pipeline_state_descriptor.colorAttachments[0].blendingEnabled = YES; pipeline_state_descriptor.colorAttachments[0].alphaBlendOperation = MTLBlendOperationAdd; diff --git a/platform_mac/mac_4ed_metal.mm b/platform_mac/mac_4ed_metal.mm index 19ea4459..0ce3397d 100644 --- a/platform_mac/mac_4ed_metal.mm +++ b/platform_mac/mac_4ed_metal.mm @@ -56,7 +56,6 @@ mac_metal__init(NSWindow *window, Render_Target *target){ [metal->view setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; [metal->view setPaused:YES]; [metal->view setEnableSetNeedsDisplay:NO]; - [metal->view setSampleCount:4]; metal->view.device = MTLCreateSystemDefaultDevice();