I keep having the same issue with this lag I've started calling "freeze frames". My game (version 1.21.11) plays at 60fps without issue while shaders are on but every 30 seconds or so I get random spikes of FPS drops this happens in other versions as well. I have capped my frames at 60 to see if it was trying to overachieve. I have my RAM set to 6Gb as the same issue happened at 4Gb. I'm playing on a vanilla realm and only have client side mods like journey map and apple skin. The same issue happens when my shaders are off, it only fixes itself when !m not using iris. The longer I play the longer the freeze frames get, this clip is from about an hour of playing, it starts off as a half second of freeze. The picture shows what my fps menu (F3+2) shows right after a lag spike) Any fixes?
Random Freeze Frames while playing with Iris shaders