brett19 / rosebrowser

ROSEBrowser is a free and open-source implementation of the ROSE Online 3D MMORPG for web browsers written from scratch using the latest web standards (WebGL, HTML5, Javascript, Threads, ...).
Other
20 stars 15 forks source link

Optimize WorldManager.findHighPoint #21

Closed brett19 closed 10 years ago

brett19 commented 10 years ago

Currently this command takes around 25% of the frame time. This can probably be optimized by using the THREE.Octree class, however, this class does not currently work fully with BufferGeometry (building the tree works, but querying fails due to face replacement).

brett19 commented 10 years ago

Turns out the bug with NetManager commands was causing all objects to be moving when they shouldn't be. This meant that every entity was casting rays, even if not moving. See dded0e8.