This commit is contained in:
Martin Kavík 2024-06-07 01:44:09 +02:00
parent ef74c4d115
commit c0872b0eba
7 changed files with 32 additions and 10 deletions

View file

@ -563,6 +563,7 @@ impl ControlsPanel {
});
// Lazy loading to not freeze the main thread
// @TODO replace with grouping and/or virtual scroll (https://dev.to/adamklein/build-your-own-virtual-scroll-part-i-11ib)
const CHUNK_SIZE: usize = 50;
let mut chunked_vars_for_ui: Vec<Vec<VarForUI>> = <_>::default();
let mut chunk = Vec::with_capacity(CHUNK_SIZE);