jb55 on Nostr: There is one glaring egui issue where it copies strings into labels before rendering: ...
There is one glaring egui issue where it copies strings into labels before rendering:
https://github.com/emilk/egui/discussions/388
Which causes about 600 nanosecond delay per string instead of 1-2 ns for unowned strings. This adds up to a decent chunk of the frame budget (0 to 1 ms) when rendering lots of strings. Very fixable, just need to use an unowned string label type, i started an egui fork working on this…
You can still hit 144fps at 7ms per frame, so it’s not a huge deal yet…
so technically yeah its copied because of this egui api decision, but they don’t have to be.
https://github.com/emilk/egui/discussions/388
Which causes about 600 nanosecond delay per string instead of 1-2 ns for unowned strings. This adds up to a decent chunk of the frame budget (0 to 1 ms) when rendering lots of strings. Very fixable, just need to use an unowned string label type, i started an egui fork working on this…
You can still hit 144fps at 7ms per frame, so it’s not a huge deal yet…
so technically yeah its copied because of this egui api decision, but they don’t have to be.