So i have a great pc with a great video card and 16gb ram can run minecraft 1.8 and 1.16 at 120 fps. Was tired of not being able to use hundreds of mobs at once so allocated 12 gb of ram through that command prompt thing in the version in the launcher. Only problem is that nothing really changed and the ram goes up to about 40 percent then resets. Checking in on task manager says im only using around 4 gb of ram out of my 12 gb allocated. Minecraft still runs at a very slow speed (still 120 fps but tps i believe)
Post a screenshot with F3 enabled and your JVM arguments.
More RAM does not mean more FPS, it's a myth.
Rollback Post to RevisionRollBack
Say something silly, Laugh 'til it hurts, Take a risk, Sing out loud, Rock the boat, Shake things up, Flirt with disaster, Buy something frivolous, Color outside the lines, Cause a scene, Order dessert, Make waves, Get carried away, Have a great day!
What's your definition of a "great pc" and "great video card"? We need to know your PC's specs (your CPU and GPU will be shown in the F3 screenshot, so the only other thing that we need to know is how much RAM does your PC have?).
heres my f3 screenshot when im not looking at the hundreds of villagers and a video
here are the arguments from the launcher -Xmx12G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
There are 1308 entities in that area, no wonder your game's lagging out.
Rollback Post to RevisionRollBack
Say something silly, Laugh 'til it hurts, Take a risk, Sing out loud, Rock the boat, Shake things up, Flirt with disaster, Buy something frivolous, Color outside the lines, Cause a scene, Order dessert, Make waves, Get carried away, Have a great day!
Minecraft is only going to use as much RAM as it needs. More RAM does not equal more FPS as Conor already said. Allocating too much RAM can actually hurt performance rather than help it. Kill some of those entities and the lag should be less.
You don't. If Minecraft only needs 3GBs of RAM, there's no way to "force" it to use 12. What's it supposed to store in the other 9GB of RAM if all of the data that the game needs to run can fit in 3GB?
Allocating too much RAM can actually hurt performance rather than help it. Nuke those villagers and the lag should be less!
Rollback Post to RevisionRollBack
Say something silly, Laugh 'til it hurts, Take a risk, Sing out loud, Rock the boat, Shake things up, Flirt with disaster, Buy something frivolous, Color outside the lines, Cause a scene, Order dessert, Make waves, Get carried away, Have a great day!
listen. i wouldnt have allocated the ram if i knew it didnt need it. its only using 4 gb out of the required 12 gb to keep things running smoothly. none of your comments help.
No version of MC needs 12G of allocated memory. Java DOES NOT handle large amounts of memory effectively. That is the message the others are trying to tell you.
Also, NEVER allocate more than half the PC's system RAM to MC. If you have, that also contributes to the problem.
Rollback Post to RevisionRollBack
"We live on a placid island of ignorance in the midst of black seas of infinity, and it was not meant that we should voyage far."
It's only using 4GB because that's all it needs. More RAM does not equal more FPS. Why don't you try out the advice that others are giving you by making a backup of your world, killing some mobs, and then seeing if you get less lag/more FPS, just as a test? There's no reason for us to try to provide support if you're going to argue and not listen to what others are telling you.
You need to understand how computers work - RAM only holds data while it is the CPU and GPU that do the actual work of processing it and they can only process so much within a given time interval - ticking 1308 entities 20 times per second means processing their code 26160 times (plus their rendering code must be run 78480 times per second at 60 FPS, and you also need to allow for everything else the game needs to do within those times). The actual amount of memory used by an entity also isn't that high - most of the memory you see being used isn't even live data but dead objects/garbage (the real memory usage is less than the lowest number used memory drops to after a garbage collection; the rate of increase is because of the way modern versions are coded, allocating upwards of 200+ MB of memory per second. For comparison, I only allocate 512 MB and memory usage is generally less than half of that; in fact, this screenshot I recently took shows that only 80 MB was being used, as my own custom modded version is highly optimized and doesn't allocate and discard objects like no tomorrow. If anything, modern versions would greatly benefit from faster memory, which is actually quite slow, taking up to 100 CPU cycles to access, and/or CPUs with a huge amount of cache, which also goes in line with more memory reducing performance, as the CPU has very limited amounts of much faster cache).
So i have a great pc with a great video card and 16gb ram can run minecraft 1.8 and 1.16 at 120 fps. Was tired of not being able to use hundreds of mobs at once so allocated 12 gb of ram through that command prompt thing in the version in the launcher. Only problem is that nothing really changed and the ram goes up to about 40 percent then resets. Checking in on task manager says im only using around 4 gb of ram out of my 12 gb allocated. Minecraft still runs at a very slow speed (still 120 fps but tps i believe)
How do i fix this
Post a screenshot with F3 enabled and your JVM arguments.
More RAM does not mean more FPS, it's a myth.
What's your definition of a "great pc" and "great video card"? We need to know your PC's specs (your CPU and GPU will be shown in the F3 screenshot, so the only other thing that we need to know is how much RAM does your PC have?).
Mapping and Modding rules | Global rules
heres my f3 screenshot when im not looking at the hundreds of villagers and a video
here are the arguments from the launcher -Xmx12G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
There are 1308 entities in that area, no wonder your game's lagging out.
but i have 12gb of ram to deal with them but it only uses 5gb at max
Minecraft is only going to use as much RAM as it needs. More RAM does not equal more FPS as Conor already said. Allocating too much RAM can actually hurt performance rather than help it. Kill some of those entities and the lag should be less.
Mapping and Modding rules | Global rules
that doesnt help! i want to use the entities and all the ram. how do i let it use more than it needs?
You don't. If Minecraft only needs 3GBs of RAM, there's no way to "force" it to use 12. What's it supposed to store in the other 9GB of RAM if all of the data that the game needs to run can fit in 3GB?
Mapping and Modding rules | Global rules
its supposed to use the additional 8 gb to run the hundreds of mobs
More RAM does not mean more FPS, it's a myth.
Allocating too much RAM can actually hurt performance rather than help it. Nuke those villagers and the lag should be less!
listen. i wouldnt have allocated the ram if i knew it didnt need it. its only using 4 gb out of the required 12 gb to keep things running smoothly. none of your comments help.
No version of MC needs 12G of allocated memory. Java DOES NOT handle large amounts of memory effectively. That is the message the others are trying to tell you.
Also, NEVER allocate more than half the PC's system RAM to MC. If you have, that also contributes to the problem.
"We live on a placid island of ignorance in the midst of black seas of infinity, and it was not meant that we should voyage far."
It's only using 4GB because that's all it needs. More RAM does not equal more FPS. Why don't you try out the advice that others are giving you by making a backup of your world, killing some mobs, and then seeing if you get less lag/more FPS, just as a test? There's no reason for us to try to provide support if you're going to argue and not listen to what others are telling you.
Mapping and Modding rules | Global rules
You need to understand how computers work - RAM only holds data while it is the CPU and GPU that do the actual work of processing it and they can only process so much within a given time interval - ticking 1308 entities 20 times per second means processing their code 26160 times (plus their rendering code must be run 78480 times per second at 60 FPS, and you also need to allow for everything else the game needs to do within those times). The actual amount of memory used by an entity also isn't that high - most of the memory you see being used isn't even live data but dead objects/garbage (the real memory usage is less than the lowest number used memory drops to after a garbage collection; the rate of increase is because of the way modern versions are coded, allocating upwards of 200+ MB of memory per second. For comparison, I only allocate 512 MB and memory usage is generally less than half of that; in fact, this screenshot I recently took shows that only 80 MB was being used, as my own custom modded version is highly optimized and doesn't allocate and discard objects like no tomorrow. If anything, modern versions would greatly benefit from faster memory, which is actually quite slow, taking up to 100 CPU cycles to access, and/or CPUs with a huge amount of cache, which also goes in line with more memory reducing performance, as the CPU has very limited amounts of much faster cache).
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?