nint22 / dwarfcraft

Automatically exported from code.google.com/p/dwarfcraft
Other
0 stars 0 forks source link

Update the chunk VBO's when there is a modification of world datas #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Not sure where to do thus, but I think a simple "needsUpdate" flag should be 
raised within the world container, and have the WorldRender class rebuild the 
chunk when that flag is seen (but only if the volume is to be on-screen)

Original issue reported on code.google.com by nin...@gmail.com on 10 Mar 2012 at 2:10

GoogleCodeExporter commented 9 years ago
Done, though ONLY chunks are updated, and not the adjacent one. When lighting 
is implemented, there will be possible performance issues, where we might want 
to allocate a new VBO in a thread, then swap them as needed

Original comment by nin...@gmail.com on 10 Mar 2012 at 2:45