I'm using a MacBook Pro mid-2012 non-retina with 2.5 Ghz Intel i5 Processor, Intel HD Graphics 4000, and 16gb of RAM.
My Minecraft has recently been having lag spikes every couple seconds, going from 50-60 fps to 30. The issue also seems to appear on the main menu of the game, as I notice the yellow text lags a bit every couple seconds.
This only started to happen after I updated my MacBook to OS Mojave, before this, I ran Minecraft at a consistent 90-100 fps on El Capitan.
I at first assumed it was because the new OS was using too much of my 4 gb of RAM, not allowing Minecraft to run well. So I bought 16 gb of RAM for my computer (because I also do music production work for college, and figured I should have more memory to increase the machine's lifespan anyway, and the whole OS was somewhat laggy before the upgrade, but it runs way smoother now), but the problem has still persisted.
I have tried adjusting the allocated memory, I've gone up to 8 gb to no avail, and the same result with 2 gb. I've tried installing Optifine and tinkering with its settings, without results. I've also used a jvm argument in the launcher for the Optifine profile, and once again, it doesn't do anything. I've updated my Java version, and lastly, I also reinstalled Minecraft, and it didn't fix it.
I need help here, I haven't found any other ways to fix it, and I'm sort of lost on how the frame rate could've tanked so much going from El Capitan to Mojave, shouldn't it be running a bit smoother with the Metal software?