Skip to content

Commit

Permalink
Merge pull request #569 from openmobilemaps/bugfix/reduce-sample-rate
Browse files Browse the repository at this point in the history
reduce to 1 sample per pixel
  • Loading branch information
maerki authored Jan 17, 2024
2 parents 8ebf024 + eee7d5b commit 73ca61d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ios/graphics/Pipelines/PipelineLibrary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public enum PipelineDescriptorFactory {
pipelineDescriptor.colorAttachments[0].pixelFormat = MetalContext.current.colorPixelFormat
pipelineDescriptor.vertexDescriptor = vertexDescriptor

pipelineDescriptor.rasterSampleCount = 4 // samples per pixel
pipelineDescriptor.rasterSampleCount = 1 // samples per pixel

let renderbufferAttachment = pipelineDescriptor.colorAttachments[0]
renderbufferAttachment?.pixelFormat = MetalContext.current.colorPixelFormat
Expand Down
2 changes: 1 addition & 1 deletion ios/maps/MCMapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ open class MCMapView: MTKView {

preferredFramesPerSecond = 120

sampleCount = 4 // samples per pixel
sampleCount = 1 // samples per pixel

callbackHandler.invalidateCallback = { [weak self] in
self?.invalidate()
Expand Down

0 comments on commit 73ca61d

Please sign in to comment.