Search "graphics settings" in the Start menu, then make sure "Desktop app" is selected. Click browse, then go to "C:\Program Files (x86)\Minecraft Launcher\runtime\jre-x64\bin", then have "javaw.exe" selected. Click "Java(TM) Platform SE binary", go to Options, and set it to High performance.
Try changing the amount of RAM you have allocated to Minecraft.
https://www.online-tech-tips.com/gaming/how-to-allocate-more-ram-to-minecraft/
It's been 8 years. 8 YEARS, and finally fixed.
Answer for people who are in this issue: Don't run the game from Steam, and disable any overlays (Discord, Overwolf, etc.)
If you use a laptop, make sure it's plugged in and not on power saving mode.