Indeed, your approach is technically the less optimal :-) Destroying and rebuilding the whole World at each bit change :-)
I am Johan … the destroyer of worlds :-)
Try the RTDynamicGrapher class we have just made. It should work.
I did, see previous mail … ;-)
But I think my hack still has some merits: it is kind of generic so I guess (hope) that it can be used with any kind of builder. In that case we can do live updating with all other kinds of graphs for free.
Thinking about it, adding live updating can be simple! If we assume that we know what the min & max values of data will be, the only support this way of working needs is a way to remove all data points from the graph, and draw new data points. If a builder has these 2 extra methods (+ methods that fix the values for the axes), it should be composable with the live update logic out of the box. Right?
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile