3 ms·
> If weird devicePixelRatio causes problems with a lot of pixel-exact UI, you may choose to use your own logical pixels that has a rounded devicePixelRatio. Ex
by FrostKiwi 1y ago
> If weird devicePixelRatio causes problems with a lot of pixel-exact UI, you may choose to use your own logical pixels that has a rounded devicePixelRatio.
Exactly that is unfortunately not possible, you may or may not get off by one resolution.
> I would not expect that everything is 2x smaller
Of course.
> but rather 2x more detailed
That's specifically the thing you cannot guarantee, as sometimes due to lack of standarization, it maybe 2.01x size, leading to those UI elements being the right size, but slightly blurry due to pixel grid mismatches.