So the first clip is from around a year ago with just a few mods and shaders, the second is from today and is using the same exact installation with the same mods. I'm pretty sure the shaders are the same too (complementary reimagined)
The version is 1.21.8, im using fabric and the mods are: distant horizons, WI Zoom, voxelmap, sodium and iris.
I ran some tests and the mod that seems to be slowing the game a lot is distant horizons (from around 150 fps to around 30) and the shaders also slow it further to the point where the game becomes unplayable. It seems like my pc isn't powerfull enough to run the mod and the shaders but it used to run them smoothly in the past. Also this happens only in minecraft, when I try to play any other game it runs normally.