mirror of
https://github.com/storytold/egui.git
synced 2026-11-20 17:42:29 +01:00
<!-- Please read the "Making a PR" section of [`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/main/CONTRIBUTING.md) before opening a Pull Request! * Keep your PR:s small and focused. * The PR title is what ends up in the changelog, so make it descriptive! * If applicable, add a screenshot or gif. * If it is a non-trivial addition, consider adding a demo for it to `egui_demo_lib`, or a new example. * Do NOT open PR:s from your `master` branch, as that makes it hard for maintainers to test and add commits to your PR. * Remember to run `cargo fmt` and `cargo clippy`. * Open the PR as a draft until you have self-reviewed it and run `./scripts/check.sh`. * When you have addressed a PR comment, mark it as resolved. Please be patient! I will review your PR, but my time is limited! --> * [x] I have followed the instructions in the PR template Compiler optimization will replace these later on, but when building without optimization they will (most often) stay divisions and divisions are clearly slower than multiplications. Note that the `/ 2.5` replacement is not bit-exact (since 0.4 cannot be represented exactly, but 2.5 can), but my guess is that the approximation is good enough. The others should be bit-exact. (Division by 2 for unsigned numbers will be replaced to >>1 earlier in the compile chain, so no point in doing the same there.) Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
Test apps
Some application to tests various parts of egui and eframe.
At some point it would be nice to have automatic screenshot regression tests for these.