Emil Ernerfeldt
5dd68337c4
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
2021-08-15 20:15:14 +02:00
Emil Ernerfeldt
fbd0e35017
Clippy fixes for benchmark
2021-04-18 23:14:35 +02:00
Emil Ernerfeldt
c07f439b28
Add benchmark of ui.label
...
This is to help evaluate the impact of
https://github.com/emilk/egui/pull/302
2021-04-18 10:24:31 +02:00
Emil Ernerfeldt
44869a6718
Clean up benchmarks
2021-04-01 21:42:45 +02:00
Emil Ernerfeldt
4808da44a2
Optimize: more inlining and more use of AHashMap
...
No real gains, but it didn't hurt either
2021-03-31 17:06:12 +02:00
Emil Ernerfeldt
17983e1bbc
Optimize tessellator by around 9%
2021-03-30 22:36:45 +02:00
Emil Ernerfeldt
8c4bb0d1d9
refactor: no need to pass Fonts structure to tessellator
...
This makes the tesselator take only data as argument,
which is a lot nicer.
2021-03-30 21:41:39 +02:00
Emil Ernerfeldt
1c60dc8d66
Pass around Arc<Galley> to avoid copying a lot of data
2021-03-29 22:49:54 +02:00
Emil Ernerfeldt
f9c4be33a7
Add a realistic end-to-end benchmark
2021-03-29 22:49:40 +02:00
Emil Ernerfeldt
d4e5133da2
refactor fonts: put TextStyle in Galley instead of in Shape::Text
2021-03-29 21:24:09 +02:00
Emil Ernerfeldt
ccc501f302
Spelling: tesselate -> tessellate
2021-03-28 22:44:03 +02:00
Emil Ernerfeldt
7dad76b913
Use explicit epaint
over paint
alias (re-export)
...
egui reexports the `epaint` crate both under its original name
and under the alias `paint` (for historical reasons)
2021-02-14 10:53:39 +01:00
Emil Ernerfeldt
1c415bd8fe
Add benchmark for text layout and tesselation
2021-02-08 22:53:31 +01:00
Emil Ernerfeldt
fb2317c993
Rename PaintCmd
to Shape
2021-01-10 11:43:01 +01:00
Emil Ernerfeldt
14a96ca5d0
Add a dummy warm-up frame to the demo app to pre-cache emojis
2021-01-02 14:42:43 +01:00
Emil Ernerfeldt
b3d1016507
[demo] Move backend into an optional panel of WrapApp
2021-01-02 01:01:01 +01:00
Emil Ernerfeldt
3e0bedd96d
[demo] Move color test to WrapApp
2021-01-02 00:13:34 +01:00
Emil Ernerfeldt
4848c171eb
[demo] Move Fractal Clock to WrapApp
2021-01-02 00:12:45 +01:00
Emil Ernerfeldt
6953dc7d5d
Split out the Egui demo code to new crate egui_demo_lib
2020-12-29 13:40:11 +01:00