some variables cleaned up in VSyncThread