Vertical synchronization control and more profiling code.