The easiest way to increase the amount of memory is to use the normal launcher to change the amount of ram. Editing it won't really make a difference if you want to double the amount of RAM. The point of that buffer appears to be something to free when the game runs out of memory to ensure that there is something that can be freed when the game runs out of memory (IE, it's reserving a bit of memory for emergencies). Changing it won't allow you to allocate more memory. No, that memoryReserve buffer is used for something else. I want to increase the amount of ram in my development environment while the launcher can be used to increase the amount of ram normally it does not help with within eclipse, where the launcher is skipped. I can't edit the amount of ram using the launcher because I'm running the game directly from MCP - THERE IS NO LAUNCHER at this point. Would editing that array let me allocate more memory for general use in the game? If not, what should I edit to increase the amount of ram (and what is the purpose of that array)? Public static byte memoryReserve = new byte In Minecraft.java, the following array is declared: /** A 10MiB preallocation to ensure the heap is reasonably sized. I'm sure there's some obvious variable I need to change, but I wanna be sure so I don't break my client. I've noticed that there is a file called Minecraft.java in MCP ( ), and I believe that I can edit that file to increase the amount of allocated ram. I'd like to increase the amount of ram allocated to the game, but I am not sure how. I'm using MCP with eclipse to decompile Minecraft.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |