simplify h/vsync processing