March 2017


Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sean Luke <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Sat, 4 Mar 2017 10:33:09 +0100
text/plain (25 lines)
Every iteration, or every time new data is added, the chart is redrawn.  A chart with 10,000 data points will draw 10,000 times more slowly than a chart with 1 data point.  That's why you're seeing charts start off with a bang and then slow down rapidly.  It's not a MASON issue, it's how JFreeChart works.

However MASON has a way to fix this: it will *cull* data when the samples get too large, thus keeping the total samples to some maximum number, say, 1000.  It sounds like you have turned off this option [because it's on by default].

If you pop up a time series chart, the option is under Chart Properties.  It's "Cull Data" and "... Over"


On Mar 4, 2017, at 9:16 AM, Axel Kowald <[log in to unmask]> wrote:

> Hello Everybody,
> I have a MASON simulation that works fine if I run it without GUI, but
> with GUI it starts off normally and then slows down over time until it
> hardly progresses at all. For displaying the simulation results I create
> several TimeSeriesChartingPropertyInspector() and at each simulation
> step I add a data point. 
> Beyond 50000 data points the simulation becomes incredibly slow and I
> wonder if the problem has to do with the underlying JFreeChart !? So has
> anybody else noticed a dramatic slow down once many data points have to
> be displayed ?
> Many thanks,
>   Axel