I have the exact same problem, I have absurd lag spikes, I go from having 400 fps to 50 and then they go back up randomly. I can't figure out if it's my computer or minecraft itself. I have an rtx 2060 with the latest updated drivers, windows is updated to the latest version, my ssd has 105 gb free. and I have 32gb of ram, as another user said. The problem seems to be fixed only if you completely restart minecraft and the launcher. In addition, if I change the ram allocation space it fixes, but turning the pc off and on again brings it back to the same conditions,
I have the exact same problem, I have absurd lag spikes, I go from having 400 fps to 50 and then they go back up randomly. I can't figure out if it's my computer or minecraft itself. I have an rtx 2060 with the latest updated drivers, windows is updated to the latest version, my ssd has 105 gb free. and I have 32gb of ram, as another user said. The problem seems to be fixed only if you completely restart minecraft and the launcher. In addition, if I change the ram allocation space it fixes, but turning the pc off and on again brings it back to the same conditions,