implemented max fps

CPU usage reduced