StandardTableView leaking memory when scrolling? #9306
-
I've first noticed that when running the application in debug mode makes the tableview scroll very poorly, it slows down to a crawl when scrolling up and / or down. Memory consumption increases drastically when scrolling through the rows, and it never gets freed? It could be that i'm using the table view in an unintended manner, at this point i've got no idea. I've written a small test case if people want / need to see the code used for adding rows to the table view. i've tried a ListView version, but it exhibits the same kind of issue, memory usage increases. Both tests are 8 columns of test data which are randomly generated u64's displayed as a hex string when sent over to the Slint side. Looking at the component a little longer i am under the impression now that this is not a memory leak, but a virtualization problem or rather the lack of one? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
i'm a little stumped here, memory usage is quite high, as the test data takes 1.25GB of RAM once almost all rows are loaded. the same data loaded into a datagridview in .net takes 150~175MB once fully loaded, that's quite a difference, am i doing something wrong here or is there something else going on? |
Beta Was this translation helpful? Give feedback.
-
This is a rather typical symptom on Windows, when the swap chain buffers are accounted for by the task manager (you’re looking at those numbers, right?) What you could try is to enable the `renderer-skia’ feature. Does that help? |
Beta Was this translation helpful? Give feedback.
This is a rather typical symptom on Windows, when the swap chain buffers are accounted for by the task manager (you’re looking at those numbers, right?)
What you could try is to enable the `renderer-skia’ feature. Does that help?