Open jonathanolson opened 1 year ago
We aren't listening for devicePixelRatio changes (and should be).
To reproduce, open up a sim that uses WebGL (natural-selection, neuron, etc.) or set ?rootRenderer=canvas, and:
?rootRenderer=canvas
Loaded high-DPI on high-DPI:
Loaded low-DPI on high-DPI:
It looks like this is possible with matchMedia, example in https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio.
Notably above, the text is rendered with SVG, but the bunnies are rendered with WebGL. The bunnies are blurrier on the bottom example.
We aren't listening for devicePixelRatio changes (and should be).
To reproduce, open up a sim that uses WebGL (natural-selection, neuron, etc.) or set
?rootRenderer=canvas
, and:Loaded high-DPI on high-DPI:
Loaded low-DPI on high-DPI:
It looks like this is possible with matchMedia, example in https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio.