October 21, 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.

Well, some JIT compilers do stack allocation via escape analysis, which you can check with something like JITWatch.

For first class support, it is planned for Java 9, but it might only really come in Java 10.

--
Paulo
October 23, 2014
On Tuesday, 21 October 2014 at 21:33:43 UTC, Paulo Pinto wrote:
> Well, some JIT compilers do stack allocation via escape analysis, which you can check with something like JITWatch.
>
> For first class support, it is planned for Java 9, but it might only really come in Java 10.
>
> --
> Paulo

I'm looking forward to that. The currently proposed stuff for 9, like Jigsaw, go way over my head in terms of usefulness.


In regard to the Minecraft code, it sounds like new features were prototyped and never optimized. Writing slow stuff fast is nice in Java (and D!), but without going full circle it's not so nice in the long run.
I guess Microsoft has its work cut out for it.
October 23, 2014
Eh.  All I know is, this version that allegedly has framerates in the territory of 10ish, runs at 200+ for me on seven year old hardware, and I know others with the same experience.  Something else is a contributor.
October 24, 2014
On Tuesday, 21 October 2014 at 09:07:04 UTC, ROOAR wrote:
>  This issue sure does seem to crop up in GC world, wonder why.

Because it's more commercially successful that way.

>  That company with $2.5 billion can't find competent Java engineers lolz!

Or they don't fix problems, which didn't appear.
October 24, 2014
On Friday, 24 October 2014 at 07:42:16 UTC, Kagamin wrote:
> On Tuesday, 21 October 2014 at 09:07:04 UTC, ROOAR wrote:
>> That company with $2.5 billion can't find competent Java engineers lolz!
>
> Or they don't fix problems, which didn't appear.

That. Minecraft was never expected to be that big.
1 2 3 4
Next ›   Last »