You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
test on iPhone 6 Plus (non-integer scale factor) #621
Apps that use OpenGL or Metal for rendering can opt out of the scaling stage and render directly into a renderbuffer that has the native screen dimensions. All you have to do is to set the contentScaleFactor of your GLKView to the value of UIScreen.nativeScale (the OpenGL ES/Metal project templates in Xcode do this by default). This is an important performance optimization as more pixels generally means lower framerates.
Interesting — we also fall down on sprites, presumably because we are defaulting to UIScreen.mainScreen().scale, which is 3.0 and doesn't map to our 1.0 or 2.0 expectations.
Activity
ljbade commentedon Nov 20, 2014
ugh, that is an ugly hack
at least android doesn't try to 'pretend' everything is perfect and there has only ever been one screen size
but then you do end up with 0.75, 1, 1.5, 2, 3, 4, and 5 being valid UI scale factors so far
incanus commentedon Feb 10, 2015
Interesting — we also fall down on sprites, presumably because we are defaulting to
UIScreen.mainScreen().scale, which is3.0and doesn't map to our1.0or2.0expectations.fixes #621: better performance for iPhone 6 Plus through smaller rend…
incanus commentedon Feb 10, 2015
Sprites issue moved to new ticket; this ticket is about increasing GL performance per the original API tweak, which is done above & pending Travis.
Merge pull request #845 from mapbox/scale-factor-3