Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
jjacksonRIAB wrote on Tue, 31 May 2022 21:27
mirek wrote on Tue, 31 May 2022 14:39
I 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... Smile

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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Proper SplitterFrame removal++
Next Topic: What happened to the caret methods?
Goto Forum:
  


Current Time: Sat Apr 20 09:00:31 CEST 2024

Total time taken to generate the page: 0.02629 seconds