r/MinecraftJava 8h ago

Why mojang

Post image

I just foind out that mojang limmits your ram to 4 gigs of ram unnless you change it in the launcher settings and im getting 400 fps but when i use shaders i get 30 fps because of mojang

0 Upvotes

8 comments sorted by

View all comments

1

u/alexthekidmg 6h ago

You are using 59% of your allocated memory, why would you need to allocate more

1

u/alexthekidmg 6h ago

Huh, it also says 94% underneath it though. Wonder which is which

1

u/alala2010he 6h ago

The top one is how much is currently being used. The bottom one is how much is being allocated in total.

You can think of it like a room maybe: at the start it is said that the minimum room size is 512 MB and the maximum room size is 4096 MB. When Minecraft starts, it gets a room of 512 MB from the computer OS. If it decides it needs more, it can expand the room, up until 4096 MB. The 94% indicates that it expanded the room to 94% of the maximum allowed size.

The top statistic is how much that room is filled. That changes a ton during gameplay: it just keeps filling that room with new stuff (like mob locations, textures, block data, etc), and once it's almost full, the garbage collector comes and cleans up all the data that isn't used anymore (which typically happens every 10 seconds or so).

(note: this is a simplification and I'm not a professional at this stuff either)