Split text measurements cache from rendering cache
This speeds up layouting in the most common scenario considerably!
🎉
This commit is contained in:
parent
d4d14b68f4
commit
860a6923bb
9 changed files with 53 additions and 24 deletions
|
|
@ -61,7 +61,7 @@ pub trait Application {
|
|||
let user_interface = UserInterface::build(
|
||||
document(&mut self, size, &mut debug),
|
||||
Cache::default(),
|
||||
&renderer,
|
||||
&mut renderer,
|
||||
);
|
||||
debug.layout_finished();
|
||||
|
||||
|
|
@ -87,7 +87,7 @@ pub trait Application {
|
|||
let mut user_interface = UserInterface::build(
|
||||
document(&mut self, size, &mut debug),
|
||||
cache.take().unwrap(),
|
||||
&renderer,
|
||||
&mut renderer,
|
||||
);
|
||||
debug.layout_finished();
|
||||
|
||||
|
|
@ -130,7 +130,7 @@ pub trait Application {
|
|||
let user_interface = UserInterface::build(
|
||||
document(&mut self, size, &mut debug),
|
||||
temp_cache,
|
||||
&renderer,
|
||||
&mut renderer,
|
||||
);
|
||||
debug.layout_finished();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue