Hello. While playing Singleplayer I have constant lag spikes. Every few seconds the game will have very small freezes and I don't understand why. My computer can run the game at over 100fps but even at 100 fps I still notice the freezes/ lag spikes. I have tried allocating more ram to java and minecraft and that doesn't fix my problem. I am running pure vanilla singleplayer with no mods. Can anybody help me fix this?
My specs are -
Ryzen 5 1400
Radeon RX 580
8gb of ram
I currently have two gigs of ram installed. I have tried going up to four but that doesn't fix the random fps drops and freezing every few seconds.