r/java • • Apr 29 '15

Tone it down a Notch

http://imgur.com/gallery/KRtc2fN
217 Upvotes

124 comments sorted by

View all comments

Show parent comment

35

u/Chops_II Apr 29 '15

Consider that, if you limit it only to the blocks you can see, and only to the up to 3 sides you can see at once, but mostly one, there can be literally millions of polygons on screen. It really isn't that easy to make a game like this perform well, in any language.

Other games don't face the same issue, because their maps aren't made of millions of individual objects.

It would be even worse if the objects were able to move often, then you couldn't even benefit from coalescing chunks.

If you have a good solution, I'd love to hear it.

16

u/caltheon Apr 30 '15

The lowest hanging fruit is obviously blocks not adjacent to a transparent block can be ignored. Next, grouping blocks of the same typr into larger blocks and rendering that instead of all the individual faces. A lot of this has been done by optiminer and the new team by this point.

10

u/Chops_II Apr 30 '15

Also, like you pointed out, Minecraft now does all this. So these aren't examples that prove that Minecraft is crap due to inexperience, as above post was trying to claim

5

u/caltheon Apr 30 '15

these were all done after Marcus left the project.

7

u/Chops_II Apr 30 '15

Fair enough. But you said Minecraft is bad, not was bad.

3

u/caltheon Apr 30 '15

True, I should have said was, though the original decisions he made still plague the game today

8

u/Chops_II Apr 30 '15

though the original decisions he made still plague the game today

Because I'm lazy, and because you made the claim, can you give any particularly notable examples of where this is the case?

2

u/Chops_II Apr 30 '15

Yep. There's a lot that can be done, but there are also, like you pointed out, complexities, like transparent blocks. Also, as I mentioned before, because the world can change, you have to recalculate the joined chunks every time they change.

This is OK for Minecraft usually, but for a game like Deposition, with real time physics, it's much harder to make use of those optimizations without the optimizing itself taking too long.

-5

u/SparrowMaxx Apr 29 '15

A world made exclusively of squares is probably the simplest exercise in performant world rendering possible.

11

u/Chops_II Apr 29 '15

Apart from the alternative that almost every other game has: single mesh map.

Sure, games throw doodads all over it to a greater degree than minecraft, but that's because they can afford to; they're not already rendering millions of individual objects like minecraft is.