Code Monkey home page Code Monkey logo

minecraft-fps-boost-jvm-arguments's Introduction

Minecraft FPS Boosting JVM Arguments

JVM arguments that you can use in your launcher to increase your Minecraft performance. Originally made for people like me who want to run Minecraft with their low-end potatoes, but it can also work for those with access to higher-end PCs - though the results may be diminished.


JVM Args for my PC

-XX:+UnlockExperimentalVMOptions -d64 -Xmx 6G -Xms 6G -XX:+DisableExplicitGC -XX:+UseParNewGC -XX:ParallelGCThreads=12 -XX:+CMSParallelRemarkEnabled -XX:+UseConcMarkSweepGC -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+AggressiveOpts -XX:+UseNUMA -XX:+UseBiasedLocking -Dfml.ignorePatchDiscrepancies=true -Dfml.ignoreInvalidMinecraftCertificates=true -XX:+UseFastAccessorMethods -XX:MaxGCPauseMillis=25 -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -XX:SoftRefLRUPolicyMSPerMB=10000 -XX:ReservedCodeCacheSize=3072m -XX:+OptimizeStringConcat -XX:+UseCodeCacheFlushing -XX:+UseStringDeduplication

Adjust these arguments to better suit your PC

  • -d64 - Makes the Java application (Minecraft) run as a 64-bit program, which allows it to use what your 64-bit OS has to offer to its fullest potential; only use this if your operating system is 64-bit / x64 (not 32-bit / x86) - otherwise, remove this parameter as Java sets this for 32-bit by default.
  • -Xmx 6G - Sets the maximum allocated RAM of the Java application (Minecraft) at launch; you should always leave at least 1 GB left over (2 GB is highly recommended if it is available, which is what I did for my 8 GB RAM PC) for your system.
  • -Xms 6G - Sets the initial allocated RAM of the Java application (Minecraft) at launch; this value should be the same as the maximum allocated RAM to reduce amount of garbage collection the program has to do.
  • -XX:ReservedCodeCacheSize=3072m - Sets the cache size for reserved code that the Java application (Minecraft) might reuse. This should be half of the RAM allocated to Minecraft; in my case, I have allocated 6 GB (6144 MB) of RAM, so I will use 3072m (3 GB).
  • -XX:ParallelGCThreads=12 - Sets the maximum logical processors (threads) the Java application (Minecraft) can use; my CPU has 12 threads, so I set it to 12. You can find yours in the Performance tab of Task Manager.

Notes :

  • If it crashes, first try disabling Connected Textures in Minecraft's video settings before deleting any arguments.
  • Please keep in mind that some arguments may cause your client to crash depending on your PC specifications (and maybe your Minecraft version?) and you may have to experiment around with changing some values or even deleting some of them in order for it to work.
  • I have seen the -Xmn argument being used in other Minecraft FPS boosting JVM arguments but I do not use it because by default -Xmn is selected internally according to your system's capabilities.
  • I have also seen -XX:+UseCompressedOops being used, but it is only available for and already automatically enabled on 64-bit programs.

minecraft-fps-boost-jvm-arguments's People

Contributors

de-soot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

itscola

minecraft-fps-boost-jvm-arguments's Issues

Hey ik this is not the place for this BUT

hey could you maybe make best config for my pc bc with your jvm arg my mc crashes these are my specs:
cpu: i5 9600kf
gpu: rtx 2060
ram: 24 gb 3000MHz
motherboard: Asrock Z390M Pro4
OS: Win10 pro

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.