Skip to content

Ultra‐Low Memory Footprint

embeddedt edited this page Jul 7, 2023 · 8 revisions

Setup instructions

  1. Create a fresh MC instance on a version supported by ModernFix and install Fabric. For my tests I used Java 17. I don't think the specific JVM is important but I used Temurin.
  2. Install FerriteCore, Sodium, and the latest version of ModernFix (5.2.0+, or a development build).
  3. Launch the game once on a heap size of at least 700MB. Due to inefficiencies in Fabric Loader (not Minecraft) the first game launch after installation requires significantly more memory.
  4. Close the game. Set the minimum and maximum memory usage to 128MB. I used no additional JVM flags for these tests.
  5. Enable the following options in config/modernfix-mixins.properties:
mixin.feature.disable_unihex_font=true
mixin.perf.clear_fabric_mapping_tables=true
mixin.perf.clear_mixin_classinfo=true
mixin.perf.dynamic_resources=true
mixin.perf.remove_spawn_chunks=true
  1. Launch game, reduce render distance to 4 chunks or less.
  2. Join a multiplayer server like Hypixel, you should be able to move around without stutter and major FPS drops.

You should also be able to play vanilla singleplayer by bumping the heap to 192MB (tested on 1.18.2, results should be similar on other versions). A few minor features will be impacted, such as spawn chunks and the Unicode font being disabled. Simply remove those lines if these are important to you.

These options may or may not work reliably in larger modpacks, hence why they are not enabled by default.

Clone this wiki locally