Home » U++ Library support » LineEdit, EditFields, DocEdit » How to do fast Append & scroll in LineEdit with MT?
Re: How to do fast Append & scroll in LineEdit with MT? [message #45692 is a reply to message #45679] |
Tue, 22 December 2015 14:03 |
cbpporter
Messages: 1405 Registered: September 2007
|
Ultimate Contributor |
|
|
Didier wrote on Mon, 21 December 2015 20:15Hi cbporter,
I may be wrong, but It looks like you are trying to display every single update while you also want quick display.
Maybe you should disconnect display frequency from update frequency by appending all text adds in between two displays in one big text update (if this is possible with you're needs of corse)
I did something close to this when managing undo stack in my GraphCtrl : when doing quick zooming or panning (less than 300ms in between two actions), I append all actions in order to make one final undo action.
Hope this helps
Hi Didier,
Sure, the final solution will probably cache the updates and only call it every N ms, but it still does not hurt to investigate the overall performance. Here is some valuable findings: they way TheIDE does it is 4+ times slower than my old solution.
And quite honestly, the performance of LineEdit is downright random. As an example, this is the shortest solution I found:
edtPane.Insert(edtPane.Total(), str); // I added a test getter for total
This executes in 1.4 seconds.
But this:
edtPane.Insert(edtPane.Total(), str);
edtPane.ScrollEnd();
Executes in 300 ms. Without any caching. And has the advantage of scrolling the LineEdit to the end. This solution is 36 times faster than the one inspired from TheIDE/Console.
|
|
|
|
|
How to do fast Append & scroll in LineEdit with MT?
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: mirek on Fri, 18 December 2015 19:24
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: Didier on Mon, 21 December 2015 19:15
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: Didier on Wed, 23 December 2015 19:47
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: mirek on Thu, 24 December 2015 00:03
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: Novo on Thu, 24 December 2015 03:11
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: mirek on Thu, 24 December 2015 05:49
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: Novo on Thu, 24 December 2015 06:16
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: Novo on Sat, 09 January 2016 04:50
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: mirek on Tue, 12 January 2016 12:59
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: Novo on Thu, 14 January 2016 04:56
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: mirek on Thu, 14 January 2016 07:52
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: mirek on Mon, 18 January 2016 10:00
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: deep on Sat, 26 December 2015 12:55
|
Goto Forum:
Current Time: Sat Jun 15 23:15:00 CEST 2024
Total time taken to generate the page: 0.01725 seconds
|