1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

Use Rgba (4xf32) instead of Color32 in all interfaces

This simplifies a few things, but some benchmarks gets worse,
probably due to the increased memory use (and thus more cache misses).

I don't plan to merge this, but leave it here as an experiment
This commit is contained in:
Emil Ernerfeldt
2021-08-15 20:15:14 +02:00
parent 96c45716be
commit 5dd68337c4
42 changed files with 285 additions and 371 deletions

View File

@@ -90,7 +90,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
fonts.texture().size(),
egui::Pos2::ZERO,
&galley,
egui::Color32::WHITE,
egui::Rgba::WHITE,
fake_italics,
&mut mesh,
);