Thanks it worked it wasn't working because i wasn't using vsync