First commit :
* add setCurrentInterval function
* use current interval on renderings to improve rendering speed