zalo / CascadeStudio

A Full Live-Scripted CAD Kernel in the Browser
https://zalo.github.io/CascadeStudio/
MIT License
1.03k stars 129 forks source link

Fix 3D canvas resolution on HiDPI screen #52

Closed milkowski closed 3 years ago

milkowski commented 3 years ago

This change fixes blurry WebGL viewport on HiDPI devices.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/zalo/cascade-studio/qay3frlyy
✅ Preview: https://cascade-studio-git-fork-milkowski-master.zalo.vercel.app

zalo commented 3 years ago

Looks good to me! This used to not hit framerate on my iPhone, but it must have gotten better when I changed the mesh rendering path (and upgraded my iPhone xD).

Merged.