add setFPS, use in template and gridpath