objdiff/src
Luke Street 74e89130a8 Repaint rework: more responsive, less energy
Previously, we repainted every frame on Windows at full refresh rate.
This is an enormous waste, as the UI will be static most of the time.
This was to work around a bug with `rfd` + `eframe`.
On other platforms, we only repainted every frame when a job was running,
which was better, but still not ideal. We also had a 100ms deadline, so
we'd repaint at ~10fps minimum to catch new events (file watcher, jobs).

This removes all repaint logic from the main loop and moves it into the
individual places where we change state from another thread.
For example, the file watcher thread will now immediately notify egui
to repaint, rather than relying on the 100ms deadline we had previously.
Jobs, when updating their status, also notify egui to repaint.

For `rfd` file dialogs, this migrates to using the async API built on top of
a polling thread + `pollster`. This interacts better with `eframe` on Windows.
Overall, this should reduce repaints and improve responsiveness to
file changes and background tasks.
2023-11-21 14:34:26 -05:00
..
diff CI updates, update deny.toml, clippy fix 2023-11-21 12:16:15 -05:00
jobs Repaint rework: more responsive, less energy 2023-11-21 14:34:26 -05:00
obj Configurable diff algorithms & new default algorithm 2023-11-21 11:48:18 -05:00
views Repaint rework: more responsive, less energy 2023-11-21 14:34:26 -05:00
app.rs Repaint rework: more responsive, less energy 2023-11-21 14:34:26 -05:00
app_config.rs Project configuration improvements 2023-09-09 23:43:12 -04:00
config.rs Reload objects when changed externally 2023-10-07 14:48:34 -04:00
lib.rs Configurable diff algorithms & new default algorithm 2023-11-21 11:48:18 -05:00
main.rs Add dark/light theme toggle (light theme WIP) 2023-07-15 11:17:59 -04:00
update.rs Version 0.2.0 2022-12-06 17:53:32 -05:00