egui/web_demo
Emil Ernerfeldt 0a40b16bd4
Fix blurry rendering in some browsers (#4299)
* Closes https://github.com/emilk/egui/issues/4241

I would love some more testers of this.

I'm not sure if we really need the round-to-even code, but I'm hesitant
to out-right revert https://github.com/emilk/egui/pull/151 when I cannot
reproduce its problem. Keeping it seems quite safe though.

---
# Testing
Checkout the branch and run:

* `./scripts/start_server.sh`
* `./scripts/build_demo_web.sh` and then open
`http://localhost:8888/index.html#Rendering`
* `./scripts/build_demo_web.sh --wgpu` and then open
`http://localhost:8888/index.html#Rendering`

Check the "Rendering test" that the squares in the pixel alignment test
are perfectly sharp, like this:

<img width="576" alt="Screenshot 2024-04-01 at 13 27 20"
src="https://github.com/emilk/egui/assets/1148717/fb6c4824-9e25-4304-bc0c-3c50fbd44a52">

If it looks something like this, something is WRONG:
<img width="488" alt="Screenshot 2024-04-01 at 13 29 07"
src="https://github.com/emilk/egui/assets/1148717/04bd93ff-2108-40c5-95f6-76e3bcb9cd7f">


Please try it on different zoom levels in different browsers, and if
possible on different monitors with different native dpi scaling. Report
back the results!


### Mac
I have tested on a high-DPI Mac:
* Chromium (Brave):  Can reproduce problem on `master`, and it's now
fixed
* Firefox:   Can reproduce problem on `master`, and it's now fixed
* Safari:  Can't get it to work; giving up for now
2024-04-01 15:22:47 +02:00
..
.gitignore Rename `docs/` to `web_demo/` 2023-11-16 16:44:30 +01:00
CNAME Rename `docs/` to `web_demo/` 2023-11-16 16:44:30 +01:00
README.md Rename `docs/` to `web_demo/` 2023-11-16 16:44:30 +01:00
example.html Rename `docs/` to `web_demo/` 2023-11-16 16:44:30 +01:00
favicon.ico Rename `docs/` to `web_demo/` 2023-11-16 16:44:30 +01:00
index.html Fix blurry rendering in some browsers (#4299) 2024-04-01 15:22:47 +02:00
multiple_apps.html Rename `docs/` to `web_demo/` 2023-11-16 16:44:30 +01:00

README.md

This folder contains the files required for the egui web demo hosted at https://www.egui.rs/.

Testing locally

Deploying egui.rs

Each merge into master will trigger a new deploy