I have a very laggy Minecraft (with a 32p resourcepack, optifine and the rendering distance set to 2 chunks), and a 6 Gb RAM, so i tried these solutions:
In java's settings> java> view> runtime parameters: first it was empty than I entered "Xmx4096m" and saved, but nothing happened, and the debug screen after restarting Minecraft showed the values shown in the attachment(I subtitled the values that fluctuate).
So I have seen in the launcher setting about the Jvm Arguments, and I found "Xmx1G". Than I changed it to "Xmx4G", and the runtime parameters of java to "Xmx4G", but nothing changed either this time.
Am I doing something wrong?
In the jvm arguments in the launcher settings there are either these arguments:
Maybe I have to change some of these too?
Thanks in advance and sorry for my bad English if there are mistakes.