bfops / playform

Voxel sandbox project in Rust
http://playformdev.blogspot.ca/
MIT License
212 stars 24 forks source link

Improve performance #156

Open bfops opened 9 years ago

bfops commented 9 years ago

Playform has gotten noticeably laggy. Improve the terrain gen speed, framerate, and load speed.

bfops commented 8 years ago

5af5c268f63e198add6f68ccba6af3ccc161fa7e - lagginess while moving around has decreased; view updates have two different priority tiers, and the amount of time spent processing each of them is capped.

bfops commented 8 years ago

72c429e54e09f0458449830e5611ee306af5addc - cap the number of outstanding terrain requests from the client, which reduces a lot of the network congestion

bfops commented 8 years ago

7a9811821780a3d50fb11334b4b0c8fc505db0a5 - more granular locking in the server's terrain data structures, so everything doesn't entirely lag out on big computations like generating trees.

bfops commented 8 years ago

Lagspikes still happen when multiple trees are in the works?

bfops commented 8 years ago

Duplicate of #151.

Lagspikes still happen when something (e.g. tree generation) is holding onto the SVO lock, but other things try to touch it (e.g. for raycasting). #143 will make this a lot easier to fix.