Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
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

Closed

Description

@incanus

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.

http://oleb.net/blog/2014/11/iphone-6-plus-screen/

Does anyone have one of these? @mapbox/gl

Activity

  1. added
    iOS
    performance
    on Nov 20, 2014
  2. ljbade commented on Nov 20, 2014

    @ljbade
    Contributor

    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

  3. incanus commented on Feb 10, 2015

    @incanus
    ContributorAuthor

    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.

    screen shot 2015-02-10 at 2 00 06 pm

  4. added a commit that references this issue on Feb 10, 2015
    49e76db
  5. incanus commented on Feb 10, 2015

    @incanus
    ContributorAuthor

    Sprites issue moved to new ticket; this ticket is about increasing GL performance per the original API tweak, which is done above & pending Travis.

  6. added a commit that references this issue on Feb 10, 2015
    4fe94a2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    iOSperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions