Use Processing 2.0 library and the performance is much better