diff options
author | 2019-11-11 06:07:31 +0100 | |
---|---|---|
committer | 2019-11-11 06:07:31 +0100 | |
commit | 860a6923bbed57a21ce4b2cae331f6a3a51ca3fe (patch) | |
tree | b179c26278ef95b6aa2520c1cef69b5fa264ebcf /winit | |
parent | d4d14b68f47e9527554a728ebbba9b840832626a (diff) | |
download | iced-860a6923bbed57a21ce4b2cae331f6a3a51ca3fe.tar.gz iced-860a6923bbed57a21ce4b2cae331f6a3a51ca3fe.tar.bz2 iced-860a6923bbed57a21ce4b2cae331f6a3a51ca3fe.zip |
Split text measurements cache from rendering cache
This speeds up layouting in the most common scenario considerably!
:tada:
Diffstat (limited to 'winit')
-rw-r--r-- | winit/src/application.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs index fdd659d9..331bafa0 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -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(); |