egui/crates
LoganDark 5bac853d9c
eframe: Repaint immediately on RepaintAsap, fixes #903 (#2280)
* eframe: Repaint immediately on RepaintAsap, fixes #903

This completely eliminates the white flickering seen on Windows when
rapidly resizing a window on the glow backend. The reason that happens
is because DWM only waits for the resize event to be delivered before
displaying the window at its new size. You must repaint synchronously
inside that iteration of the event loop or else you get flickering.

* Differentiate between RepaintAsap and RepaintNext

RepaintNext looks like it is indeed needed in at least one case instead
of RepaintAsap.

* Use RepaintNext in more situations

Starting to understand why this was the behavior. It looks like only a
few special cases should be given RepaintAsap, such as the window being
resized. All other cases should be RepaintNext, as it can wait.

Using RepaintAsap in all situations will cause things like lag when
changing a slider by keyboard with a high key repeat rate.

* Add explanatory comments

I am a total hypocrite for forgetting to add these.

* Rename RepaintAsap to RepaintNow

There is no notion of "possibility" here like there is when waiting for
RedrawEventsCleared. RepaintNow causes an immediate repaint no matter
what.

* Fix RepaintNow comment

"Delays" is ambiguous.
2022-11-13 20:30:39 +01:00
..
eframe eframe: Repaint immediately on RepaintAsap, fixes #903 (#2280) 2022-11-13 20:30:39 +01:00
egui Fixed color edit popup going outside the screen (#2270) 2022-11-11 14:09:54 +01:00
egui-wgpu Opt-in logging of egui-wgpu using puffin 2022-11-10 16:28:08 +01:00
egui-winit bump msrv 1.64 and tts + bindgen dep (#2274) 2022-11-11 10:27:25 +01:00
egui_demo_app Add helpers for zooming an app using Ctrl+Plus and Ctrl+Minus (#2239) 2022-11-05 11:18:13 +01:00
egui_demo_lib Painter extend accepts IntoIter (#2249) 2022-11-07 09:32:28 +01:00
egui_extras feat: add a way to provide customable scaling to SVG rasterization (#2252) 2022-11-07 16:52:14 +01:00
egui_glium Update ahash to 0.8.1 (#2255) 2022-11-07 09:23:45 +01:00
egui_glow Update op puffin 0.14.0 (#2257) 2022-11-07 12:37:37 +01:00
egui_web Fix broken GitHub source links due to #1940 2022-08-20 15:18:02 +02:00
emath Use total_cmp for clamping drag value in order to avoid floating point ambiguities (#2213) 2022-11-02 19:38:39 +01:00
epaint use RandomState::with_seeds replace AHasher::default (#2254) 2022-11-07 10:53:07 +01:00