Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How would I virtualize a scrollable view to dynamically load Ctrls?
Re: How would I virtualize a scrollable view to dynamically load Ctrls? [message #58490 is a reply to message #58489] |
Wed, 01 June 2022 15:57  |
jjacksonRIAB
Messages: 218 Registered: June 2011
|
Experienced Member |
|
|
mirek wrote on Wed, 01 June 2022 15:34jjacksonRIAB wrote on Tue, 31 May 2022 21:27mirek wrote on Tue, 31 May 2022 14:39I am afraid that with thousands of paragraphs, it will still be slow determining the height for given with (e.g. RichTextCtrl needs to do that in Layout anyway). Note that if you load some really big text in MS Word or OpenOffice writer, it can be slow as well before he reformats everything. In you current example, you need to typeset about 4 millions glyphs... 
It is strange it is slow on your machine though. What exactly is slow, scrolling?
Mirek
Scrolling is fine. Resizing just kills it. This is on linux though, I don't know if you were running it on Windows. KDE, cinnamon, lxde - doesn't matter on any DE I've tested even with compositing turned off.
That part is actually not influenced by DE nor system in any way... I believe 99% of time is spent in
RichPara::Lines RichPara::FormatLines(int acx) const
RichText/ParaType.cpp:237
Mirek
Having not tested it myself I'll defer to your experience but my rationale for how it could happen is that perhaps one DE/WM may fire resize events more frequently than another but it was just a guess. More likely your machine is just significantly faster than mine.
|
|
|
Goto Forum:
Current Time: Wed Dec 06 08:24:29 CET 2023
Total time taken to generate the page: 0.01547 seconds
|