main: updated FPS measurements

Is a bit outdated, might fix later, but it works fine now. Even setting window title fine. No longer drawing 100% CPU cause of xorg.