|
|
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 #27037 is a reply to message #27019] |
Tue, 22 June 2010 13:05 |
|
Sender Ghost wrote on Mon, 21 June 2010 17:52 | As conclusion, I created following example to demonstrate this problem and solution.
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.
|
Nice solution!
|
|
|
Goto Forum:
Current Time: Tue May 07 08:45:27 CEST 2024
Total time taken to generate the page: 0.02375 seconds
|
|
|