Added a buffer to ensure that the graph keeps up with real time when the processor lags.