-
Notifications
You must be signed in to change notification settings - Fork 2k
Optimization opportunities (tracking issue) #1196
Copy link
Copy link
Open
Labels
help wantedExtra attention is neededExtra attention is neededperformanceLower CPU/GPU usage (optimize)Lower CPU/GPU usage (optimize)
Description
There is a lot of room for improvements to the CPU usage of egui. Here are some things worth investigating:
- Try different hash algorithms for
Id,FontCacheand others. - Precompute vertices for circles and rounded corners in
epaint::Tessellatorconstructor (Precompute rounded vertices #1547) - Paint small filled circles using textured rects (by adding a few low-radius circles to the font atlas) (Optimize tessellation of filled circles #1616)
- Run egui with a proper profiler and see what pops up
- Utilizing a
Cowlike type for RichText / LayoutJob #1098 -
eframe/native: runApp::updateand the rendering in different threads - Output a single veretex buffer and index buffer instead of
Vec<ClippedPrimitive> - Performance: replace bools in
Responsewith bit-sets #3862 - Optimize Plot egui_plot#18,
Any PR should come with a benchmark.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededperformanceLower CPU/GPU usage (optimize)Lower CPU/GPU usage (optimize)