GardensOfKadesh / Homeworld

Gardens of Kadesh: A WebAssembly port of Homeworld.
Other
60 stars 11 forks source link

HiDPI causes bad upscaling from lower resolution rendering #5

Open rbrune opened 3 years ago

rbrune commented 3 years ago

HiDPI displays (e.g. >= 4k) with high dpi scaling enabled causes the canvas to be not rendered at full native resolution. Hence the canvas content is upscaled and results in ugly blurriness. The dynamic resolution changing code needs to take into account the dpi scaling and set the correct full native canvas resolution.