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 » ScatterDraw & ScatterCtrl » Dynamic example - 100% CPU core load
Re: Dynamic example - 100% CPU core load [message #48676 is a reply to message #48670] Mon, 21 August 2017 11:24 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Dear Radek

ScatterCtrl_Demo/Dynamic tries to update the plot every 5 ms.
Depending on the computer, compiler options (debug - release) and painting mode (Painter - Draw), the update is done faster or slower, and CPU load varies.

If you change line
SetTimeCallback(-5, THISBACK(Animate));
changing -5 (5 ms update) with 500 (500 ms update), probably your CPU load will be about 0%.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Previous Topic: Use function pointer
Next Topic: PieCtrl and GetImage
Goto Forum:
  


Current Time: Thu Mar 28 13:42:16 CET 2024

Total time taken to generate the page: 0.00925 seconds