OT: Minecraft death by GC

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 21 14:24:40 PDT 2014


On Tuesday, 21 October 2014 at 07:37:06 UTC, Kapps wrote:
> "Maybe the biggest and the ugliest problem is the memory 
> allocation. Currently the game allocates (and throws away 
> immediately) 50 MB/sec when standing still and up to 200 MB/sec 
> when moving. That is just crazy."
>
> Wonder how much better that would be if Java had proper value 
> types. The idea of allocating on the heap for every single 
> Vector3f makes me sad.

That is obviously the problem, and switching to a non GC model 
would still be horribly slow when you allocate like mad. What 
they need is way to not allocate that much.

Also 
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1272953-optifine-hd-a4-fps-boost-hd-textures-aa-af-and#c43757

People have found that with various tweaks, you can get a x2 
framerate.


More information about the Digitalmars-d mailing list