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.

Load @3x assets #1008

Closed
Closed

Description

@kkaefer

Follow up to #843: We should also create and load 3x assets when the pixelRatio is >= 3. This is currently capped to 2x.

Activity

  1. incanus commented on Mar 17, 2015

    @incanus
    Contributor

    create

    IIRC from chat, we want to scale these up on the fly from 2x, right?

  2. kkaefer commented on Mar 17, 2015

    @kkaefer
    MemberAuthor

    IIRC from chat, we want to scale these up on the fly from 2x, right?

    We are currently doing this, but they're, well, scaled up.

  3. incanus commented on Mar 17, 2015

    @incanus
    Contributor

    Ok, so I guess my question then is: do you mean to pre-create 3x sprites? If so, where do we draw the line, given that Android has higher ratios as well as non-integer ratios?

  4. friedbunny commented on Mar 17, 2015

    @friedbunny
    Contributor

    In the long term, it seems like moving to vectorized sprites is the way to fix this. SVG, fonts, PaintCode-esque procedural generation...

    In the short term, it appears the official Android guidance is to have up to xxhdpi (@3x) assets:

    You should not use the xxxhdpi qualifier for UI elements other than the launcher icon.

    Of course, there's a ton more complexity than "just use 3x!" when it comes to Android screens, but that looks adequate for now?

  5. kkaefer commented on Mar 17, 2015

    @kkaefer
    MemberAuthor

    Agree that we should use vector spirits and rasterize on the CPU, eg. With a stripped down version of agg

  6. ljbade commented on Mar 18, 2015

    @ljbade
    Contributor

    My HTC One and Sony Xperia Z3 both use pixel ratios of 3

  7. ljbade commented on Mar 18, 2015

    @ljbade
    Contributor

    @kkaefer Hmm how much of a code size burden will SVG + AGG be?

    But I do aggree vector sprites is the correct way to future proof this. I would not be surprised sooner or later a 4x phone will come out with a 4k screen or something crazy.

  8. added
    Core
    MapKit parity
    on Feb 9, 2017
  9. added
    archived
    on Nov 12, 2018
  10. stale commented on Nov 25, 2018

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

  11. removed
    archived
    on May 29, 2019
  12. friedbunny commented on May 29, 2019

    @friedbunny
    Contributor

    On the iOS side, it appears that roughly 30-40% of devices in use are @3x, while four (of seven) of the iPhones that Apple currently sells are @3x.

  13. added
    archived
    on Nov 25, 2019
  14. stale commented on Nov 25, 2019

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

  15. removed
    archived
    on Nov 25, 2019
  16. added
    archived
    on May 23, 2020
  17. stale commented on May 24, 2020

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

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

    CoreMapKit parityarchived

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions