javascript - Ways of speeding up THREE.js -


i writing simple minecraft clone in three.js.

however, result laggy.

i using box geometry voxels, need remove blocks when broken , need use mouse picking.

i have heard joining geometries speeds far aware, means cannot remove of voxels or use mouse picking.

what other ways of speeding in three.js?

using box per voxel (making 1 draw call per voxel) slow on machine if wrote in assembly language.

you need build mesh every section of world. in divide world 48x48x48 unit chunks , build 1 mesh contains voxels in area. when user edits box edit mesh (the vertices) rather remove box object.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -