compositor refactored to just set a flag and composite on vsyncs only