If you are playing on Windows 11 using AMD Ryzen CPUs, make sure you install the performance patches so you don't get random frame drops. I've found that this game is particularly sensitive to the bug.
One patch is in Windows update, the other is a chipset driver.
https://www.amd.com/en/support/kb/faq/pa-400