method for enabling/disabling vsync
added timer