Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Java
 QCChart2D for Java
 updateDraw using too much processing power

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
johnbutler Posted - 28 Sep 2006 : 14:53:06
I have a SimpleScatterPlot with between 1000 - 2500 data points. I am receiving new data points every 100 ms. I am calling updateDraw from a java.swing.timer to refresh the graph. However, when the graph was 1000 points and I am calling updateDraw every 100 ms, the process is using 100% of the CPU processing power. Is there a more efficient way I should be doing this?
3   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 29 Sep 2006 : 09:18:54
Sorry, there is nothing that we can suggest that will increase the performance 5 to 10 times.

It is possible that our special services group could make a special SimpleScatterPlot function that is optimized for exactly what you are doing, and in that way increase performance. Contact sales@quinn-curtis.com and describe what you are looking for and they will reply back with their best estimate of what you might expect and a quote for writing the optimized SimpleScatterPlot class.
johnbutler Posted - 29 Sep 2006 : 08:54:02
Yes I know. I have a seperate timer for updating the display that I can set to any timespan I want. However, the customer would prefer a real-time look to the graph. So, is there a way I can improve performance to allow for refreshing the graph every 100 - 200 ms?
quinncurtis Posted - 28 Sep 2006 : 17:08:56
Even though your data is collected every 100ms, this does not mean you have to display it at that rate. You can update the datasets at the 100msec rate, but only trigger the update of the graph using updateDraw once a second.





Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07