Refactoring, VSync replacing