Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch back to 16x16x16 voxel.js chunks #15

Open
deathcap opened this issue Mar 27, 2015 · 2 comments
Open

Switch back to 16x16x16 voxel.js chunks #15

deathcap opened this issue Mar 27, 2015 · 2 comments

Comments

@deathcap
Copy link
Member

This should simplify chunk conversion from MC instead of the default 32x32x32 (maybe even make 16x16x16 the default in voxel.js/voxel-engine? why 32 anyway?), as each MC mini-chunk maps to one voxel.js chunk, avoiding the need to handle updating sections of chunks individually.

@deathcap
Copy link
Member Author

relevant, some discussion about MC's chunk size https://gist.github.com/Gjum/d28fdb59e588cbbb84c4

21:36 <+Amaranth> btw, this would be a good time to change to 32x32x32 chunk size :D
21:36 <+Amaranth> Double your draw distance
21:37 < Grum> that is not how it works Amaranth :p
21:38 <+Amaranth> Well, unless you're already bottlenecking somewhere else that's close enough to how it works
21:38 < Grum> not really
21:38 <+Amaranth> Although you'll also slow down mesh generation on updates
21:38 < Grum> yeah and this means you have to generate 8 times the amount of mesh
21:39 <+Amaranth> But the overhead for setting up state and drawing each chunk as a separate draw call is non-trivial and having bigger chunks means you get to cut that down or draw more with the same effort
21:40 <+Amaranth> Of course you also have to worry about memory and blah blah blah
21:40 <+Amaranth> But once you optimize the rest the chunk size will end up being a limiter
21:43 < Grum> yeah gpu memory is also a pain
21:44 < Grum> we can get quite some gain from jsut rendering a sphere
21:45 < Grum> saves 33% area assuming i remember right =)
21:47 <+Amaranth> Yeah, something like that
21:50 < Grum> anyhow, until we fix generation that is just all pointless
21:50 < Grum> threading that is going to be needed to do anything >16

@deathcap
Copy link
Member Author

deathcap commented Feb 7, 2016

This might improve GH-18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant