As for the bug, use CLS after VSYNC