add set max fps to view loop. tested and control accurately.