Elektrine lite

← Feed

@waldi@chaos.social

Post #1790220

2026-02-17 12:34 UTC

@hweimer The game output is rather tiny, unreadable small. It seems that the browser gives you a raw, unscaled, canvas, while I use a 1.75x scaling on my desktop. It looks like https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio is related to it, at least it mentions HiDPI displays and there is an example for canvas stuff.

Replies (1)

  • @hweimer@fediscience.org 2026-02-18 11:04

    @waldi It's difficult to find a one-size-fits-all approach to this. The Android version is full-screen, but this is probably also suboptimal on 4k monitors given that the assets do not have sufficient resolution for that (I''m not an artist). I've succeeded in rescaling the canvas, but the results were also not very pretty and I probably would have to make significant changes to the underlying rendering, which would also affect non-4k scenarios.

    Open ##1790221