objdiff/src/views
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
..
appearance.rs Document configuration file & more cleanup 2023-08-12 14:18:09 -04:00
config.rs Repaint rework: more responsive, less energy 2023-11-21 14:34:26 -05:00
data_diff.rs Project configuration improvements 2023-09-09 23:43:12 -04:00
debug.rs Repaint rework: more responsive, less energy 2023-11-21 14:34:26 -05:00
demangle.rs Refactor state & config structs, various cleanup 2023-08-09 21:53:04 -04:00
file.rs Repaint rework: more responsive, less energy 2023-11-21 14:34:26 -05:00
frame_history.rs Repaint rework: more responsive, less energy 2023-11-21 14:34:26 -05:00
function_diff.rs Restore context menu on highlightable fields 2023-10-07 13:04:08 -04:00
jobs.rs Repaint rework: more responsive, less energy 2023-11-21 14:34:26 -05:00
mod.rs Repaint rework: more responsive, less energy 2023-11-21 14:34:26 -05:00
symbol_diff.rs Repaint rework: more responsive, less energy 2023-11-21 14:34:26 -05:00