How to reproduce:
1. Create and open a new project
2. Make sure the project is running with DX12 graphics API
3. In the toolbar, navigate to Window > Analysis > Profiler
4. Attach the profiler so that both Game view and Profiler window can be observed
5. In the Game view, expand the Aspect Ratio menu and enable “VSync (Game view only)”
6. Enter Play mode
7. Observe the Profiler window
Expected result: CPU frame times stable, no spikes in frame times (~16.7ms for 60Hz monitor)
Actual result: CPU frame times stable, with spikes to ~33ms at regular intervals
Reproducible with: 2022.3.2f1, 2022.3.63f1, 6000.0.51f1, 6000.1.7f1, 6000.2.0b5
Couldn’t test with: 2022.1.0a1, 2022.3.1f1 (VSync with DX12 does not work)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
- Does not reproduce with DX11 API
- When looking at the stats window, frame rate is unaffected
- Does not reproduce if the Profiler is recording and the window is hidden