I recently started learning unreal and any time I undo something the game lags briefly. It depends on what I am undoing. If I undo a landscape sculpt it lags for about 2 seconds. If it something smaller like a prop it lags for about 0.5 seconds. It only happens when undoing things. Adding in props or sculpting the landscape is buttery smooth so I am not sure what is wrong.
Specs:
CPU - Ryzen 9 7940HS
RAM - 16GB ← Maybe it’s this?
GPU - Nvidia 4070 8GB ← Latest drivers