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 #58482 is a reply to message #58479] Tue, 31 May 2022 12:41 Go to previous messageGo to previous message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 221
Registered: June 2011
Experienced Member
mirek wrote on Tue, 31 May 2022 11:13
Placing those text in Paint is not a good idea. The time is spent in RichTextCtrl::GetHeight, which is slow. I have tried to optimise

----------------8<-------------------

Which works fine for 10000 texts; with 100000 texts it is slow again, but the time once again is lost in GetHeight - that one basically needs to typeset that paragraph with all typographic rules. I can try to look into it, OTOH as we will need to support advanced composition in future, chances are it will only get slower then.

Mirek


Thanks for giving it a shot, Mirek. Unfortunately with even 10,000 ctrls on my older machine either application is so slow during a window resize that I can't even tell which one is faster by looking at it. I'll have to see if it's a problem with my compositor.

If the rich ctrl will allow me to do more in the future that sounds like a good thing. Maybe it means I could stop using thousands of them and instead just use one. Until then it looks like I'll have to come up with some form of dynamic loading.
 
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: Fri May 10 16:01:15 CEST 2024

Total time taken to generate the page: 0.03319 seconds