-
|
I've noticed a difference in anti-alias quality when rendering lines and curves depending on the monitor/platform. The issue occurs with MacOS Sequoia (15.6.1), using a external 4K monitor set at 2560x1440. Running the exact code (https://github.com/ajstarks/ebcanvas/blob/main/play/main.go) On Linux (Fedora 42, Gnome, native display at 1920x1080) or another Mac (11.7.9, native display set to 1920x1200). Does not show the issue. Here is the problematic display (phone camera as screenshots do not show the issue) Problem: Other Mac: (no issue) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
https://github.com/tinne26/kage-desk/blob/main/docs/tutorials/ebitengine_game.md#layout The TLDR is that you are not using Layout properly. If you return a fixed size from the layout function, and you are drawing on a 1600x1000 layout... of course on a bigger screen it's going to look worse. You are forcing Ebitengine to do a more extreme scaling. You are missing two key things: 1) respect window size 2) respect monitor scaling factor This is also why screenshots show nothing: you are rendering the same thing. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the insights. Will fix. |
Beta Was this translation helpful? Give feedback.


https://github.com/tinne26/kage-desk/blob/main/docs/tutorials/ebitengine_game.md#layout
The TLDR is that you are not using Layout properly. If you return a fixed size from the layout function, and you are drawing on a 1600x1000 layout... of course on a bigger screen it's going to look worse. You are forcing Ebitengine to do a more extreme scaling. You are missing two key things: 1) respect window size 2) respect monitor scaling factor
This is also why screenshots show nothing: you are rendering the same thing.