How to reproduce:
- Create an empty project
- Make sure the project is using Direct3D12
- In the Scene View toolbar, enable the Grid visibility toggle so the ground grid is visible
- Open the Profiler (Window -> Analysis -> Profiler)
- Set Profiler to Edit Mode
- In the Scene View, hold RMB to enter flythrough mode
- Move the Scene View camera above and below the grid using Q/E
- Observe the Profiler
Actual result: Profiler spikes occur when navigating the Scene View with the grid enabled (up to ~70ms per frame on DX12)
Expected result: Navigating the Scene View with the grid enabled does not cause Profiler spikes or visible Editor slowdown
Reproducible with: 2023.1.0a4, 6000.0.74f1, 6000.3.14f1, 6000.4.7f1, 6000.5.0b8, 6000.6.0а5
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Notes:
- In 6000.5.0b6 and 6000.6.0a4, the spike pattern is slightly different and additional isolates spikes can appear.
- The main profiler markers associated with the spikes are GfxDeviceD3D12.WaitForLastPresentation.WaitForGPU and Semaphore.WaitForSignal