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 » howto best Ctrl Refresh handling w/ MT & very frequent refreshes
Re: howto best Ctrl Refresh handling w/ MT & very frequent refreshes [message #27019 is a reply to message #26758] Mon, 21 June 2010 16:52 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
As conclusion, I created following example to demonstrate this problem and solution.

index.php?t=getfile&id=2592&private=0

On the left side you can see normal behaviour of Upp application with about 100% CPU load periodically.
On the right side you can see reduced CPU load with using CachedCtrl class template and specified update rate.

The left and right sides of application can be activated with right mouse click and deactivated with left mouse click.

With Array<CachedCtrl<Ctrl> *> this example can be changed to support more types of Ctrls.

The source code of example attached to this message.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GtkWidget inside U++
Next Topic: DONE: ColumnList with Ctrl's
Goto Forum:
  


Current Time: Tue May 07 06:59:53 CEST 2024

Total time taken to generate the page: 0.02563 seconds