• 0

    posted a message on Is anyone getting horrible lag from 1.18?

    Ah yes, that CPU has 4 cores, 4 threads so I can see how that could cause performance issues.

    Posted in: Java Edition Support
  • 0

    posted a message on Is anyone getting horrible lag from 1.18?

    I only have 4 cores. It feels like 1.18 really did abandon the lower-tier computer users. It's not a bad thing; the world height had to be increased at some point. It's just kinda sad.



    I think four cores should still be good enough in most instances. Most modern CPUs from Intel and AMD have hyper threading, which means that that each physical core can carry out two sequences of instructions (called threads) in parallel. So if your CPU has 4 physical cores, you effectively have 8 logical cores (threads) that your computer can use. I don't know what model CPU your computer has, but this is something you can look up. Now if by 4 cores you mean it has 4 threads (logical cores) then yeah that will probably bottleneck the gameplay, but only really when you're moving fast and generating lots of chunks.



    If I'm flying around in creative to intentionally try and generate new chunks as quickly as possibly with a render distance of 20, I can see that my machine uses roughly 5-6 threads. If I'm not moving fast it usually uses maybe 1-2. The bigger bottleneck is probably the RAM if you are using the default RAM allocation that Minecraft uses. This is something that you can change without getting a new computer or upgrading it. It's just a JVM argument you can use. When I updated my private server to 1.18, I had to upgrade the RAM the server host was providing because 2GB just wasn't enough to handle generating all the new caves and terrain without crashing. Then I upgraded to 4GB and it seemed to do just fine.

    Posted in: Java Edition Support
  • 0

    posted a message on Is anyone getting horrible lag from 1.18?

    One thing that should be noted is that it seems that by default, multiple CPU cores will be utilized when generating chunks in order to handle the extra intensiveness of the new terrain generation. It seems that Minecraft is using more CPU cores (and RAM too) than before. What this means is that if your computer doesn't have many cores or not a lot of RAM, then performance may be noticeably slower than before. You can increase the amount of RAM allocated to Minecraft using JVM arguments (by default it uses 2GB), but there is not much you can do about the CPU cores short of getting a beefier computer. (You can try closing every app and webpage that's open in the background).

    Posted in: Java Edition Support
  • 0

    posted a message on Is it possible to use a custom LWJGL installation with Minecraft Launcher?

    Changing which version it uses isn't enough, you would need to replace all of the packages it uses, some of which may not have an m1 version.


    Replace all the packages what uses? LWJGL or Minecraft as a whole? LWJGL supports arm64, so I would assume that LWJGL would not ship builds unless all of their dependencies were taken care of. As for Minecraft as a whole, the reason why I think in some way adjusting LWJL could possibly do the trick is because this is the main thing that needs to be changed in order to get it to work with the MultiMC launcher: https://infotoast.org/site/index.php/2021/06/19/how-to-optimize-minecraft-1-17-for-m1/. (The other thing that needs to be done is to get an arm64 JDK- this is easy.) The reason why the MultiMC solution is not completely ideal is because as of a few optifine versions ago, optifine stopped working with MultiMC and the optifine devs have seemed content with living with this bug unfixed ever since. i.e. you can have Minecraft run natively on M1 for 1.18 or you can have it run 1.18 non-natively with optifine, but you can't have it run natively and run optifine at the same time, which is very frustrating.

    Posted in: Java Edition Support
  • 0

    posted a message on Is it possible to use a custom LWJGL installation with Minecraft Launcher?

    Hi,


    The question in the title mostly says it all. Is it possible to download a custom build of LWJGL here, then edit a Minecraft installation in the launcher to accept some extra JVM arguments which tell it to use that LWJGL version instead? Has anyone done anything like this or know where to find instructions/documentation on how to do so? I am trying to get Minecraft to run natively through the official launcher (there are some bugs with optifine on MultiMC) for MacOS ARM64 (M1), but it seems evident from the Minecraft log files that Minecraft is using LWJGL 3.2.1. Builds for ARM on Mac only exist for 3.3.0, so using this newer build in combination with an ARM JDK will be necessary. I am not sure how Minecraft decides which LWJGL build/version to use. Is it possible to change it? It's clear how one can change which Java installation Minecraft uses, so I am wondering if something analogous exists for LWJGL as well.

    Posted in: Java Edition Support
  • 0

    posted a message on Java & Apple Silicon - Minecraft on the Apple M1Max

    Minecraft on the official launcher does not run natively yet. This is likely nothing to do with Minecraft itself, but the fact that Minecraft needs LWJL to run. LWJL did not officially support M-series chips until just recently. Now that this technical barrier is removed, Minecraft might run natively in the near future, but Mojang would need to update the LWJL version which Minecraft uses. Who knows if this will happen tomorrow or a year from now. If enough people bring this to their attention, it might happen quicker.


    There are ways to get Minecraft to run natively and they are not too difficult or technical. You can find the instructions here.


    But running Minecraft through rosetta does not really explain the poor performance you are getting. And I can say this confidently because I run Minecraft on an M1 8GB 13" MacBook Pro with 8 GPU cores and I have no complaints about its performance. Of course, there are obviously a LOT of things that can affect performance that have nothing to do with M1, M1 max, or rosetta. Anyone can lag their computer depending on what they build and what their render distance is because often times Minecraft performance is bottlenecked by CPU single-threaded performance. (Obviously this is not a problem for M1.) I'm going to ignore all of those factors for now because that's really for you to troubleshoot and has nothing to do with M1. I will give some tips as well as outline the setup I have that I found to be optimal:


    1. Try loading a vanilla Minecraft environment without Fabric, Sodium, or Lithium. It could be that those mods are just not very well optimized for arm64 hardware such as M1.

    2. Try loading a vanilla Minecraft environment with optifine being the only mod. Play around with the optimization settings to see what works best.

    3. Do the instructions in tip 2., but follow the instructions in the link above to get Minecraft to run natively.


    When I first started playing Minecraft on M1, I did so using rosetta through the official launcher and using optifine. It worked great, no complaints, but I knew it could be better, so I found the instructions in the link above and got it to work much better. It runs much more smoothly running natively, but the performance running non-natively is not bad by any means. My suspicion is that either fabric, lithium, or sodium is to blame.

    Posted in: Java Edition Support
  • 0

    posted a message on When Will Apple M1 native version of Minecraft Java be released?

    It looks like lwjl has released official support for MacOS ARM64, so Mojang should be able to port the Minecraft code.

    Posted in: Discussion
  • To post a comment, please .