Is there a built-in way to know real number of colors per device ?

Without having to deal with resources qualifiers, part numbers or other manual ways of finding which device we are running on ?

If not, I ask for a feature-request !

thanks,

  • This could have been requested as far back as the first 64 color devices (2016 I recall).  Since then there are 2,8,and 64k color device.

    One thing you can do it cut down the targets for your app.  If you don't want to support 2 colors, don't include the edge 130, 8 colors, don't include the fr45 or swim2.

    You can also use jungles, where at build time, you can not only know what's there, but have different code to handle the different color depths.  On a fenix3, include the 16 color code, a fenix5, the 64 color code, on a venu, the 64k color code.

    The resource compiler will take care of things like bitmaps, where if you're on a 16 color device, the bitmap is built for that