V-sync implemented