egui/crates
Vincent Alsteen c87bcc4bcc
Remove unnecessary allocation in `RepaintCause::new` (#4146)
Hi!

I'm using egui for the UI of a VST3/Clap plugin, and this kind of
environment is rather picky on performance. I use
[assert_no_alloc](https://crates.io/crates/assert_no_alloc) to make sure
the audio thread is never allocating. The audio thread may request a
repaint of the GUI tho, and this is where a saw that it may allocate
when tracing the repaint reason.

Turns out it's not necessary, `Location::caller` is `'static`, so using
a `&'static str` instead of a `String` in `RepaintCause::file` will just
work, so this PR just does that.
2024-03-12 11:15:13 +01:00
..
ecolor Release 0.26.2 - Response.interact/context_menu fix 2024-02-14 10:49:57 +01:00
eframe Update kb modifiers from web mouse events (#4156) 2024-03-12 11:14:40 +01:00
egui Remove unnecessary allocation in `RepaintCause::new` (#4146) 2024-03-12 11:15:13 +01:00
egui-wgpu Release 0.26.2 - Response.interact/context_menu fix 2024-02-14 10:49:57 +01:00
egui-winit Add some profile scopes to handle_platform_output 2024-02-21 16:25:28 +01:00
egui_demo_app Add API for raw mouse motion (#4063) 2024-02-20 18:00:39 +01:00
egui_demo_lib A `Window` can now be resizable in only one direction (#4155) 2024-03-11 09:29:48 +01:00
egui_extras `egui_extras`: Fixed handling of `file://` protocol for images (#4107) 2024-03-08 10:24:34 +01:00
egui_glow Release 0.26.2 - Response.interact/context_menu fix 2024-02-14 10:49:57 +01:00
egui_plot egui_plot: fix panic when the base step size is set to 0 (#4078) 2024-02-20 16:26:47 +01:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath A `Window` can now be resizable in only one direction (#4155) 2024-03-11 09:29:48 +01:00
epaint Fix scaling of rounded corners for rect shape (#4152) (#4161) 2024-03-12 11:14:24 +01:00