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 #58489 is a reply to message #58487] |
Wed, 01 June 2022 15:34 |
|
mirek
Messages: 14019 Registered: November 2005
|
Ultimate Member |
|
|
jjacksonRIAB 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
|
|
|
Goto Forum:
Current Time: Fri Sep 13 03:07:55 CEST 2024
Total time taken to generate the page: 0.01591 seconds
|