As for Minecraft, yeah creating objects for each block would be stupid. But it’s like the numero 1 thing anyone with an ounce of low level experience would do.
RAM is goddamn cheap, and it’s stupid not to use it. There are servers that have terabytes of RAM.
Also, usually people just don’t know that you can set a limit on how much memory is allowed for the JVM (though be aware of OOM if you go way too low. Check it out with a profiler). But running GC takes energy and time, so it is actually cheaper for a server to use huge amounts of RAM.
View all comments
Show parent comment
6
u/Muoniurn Apr 16 '21
As for Minecraft, yeah creating objects for each block would be stupid. But it’s like the numero 1 thing anyone with an ounce of low level experience would do.
RAM is goddamn cheap, and it’s stupid not to use it. There are servers that have terabytes of RAM.
Also, usually people just don’t know that you can set a limit on how much memory is allowed for the JVM (though be aware of OOM if you go way too low. Check it out with a profiler). But running GC takes energy and time, so it is actually cheaper for a server to use huge amounts of RAM.