bfops / playform

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

More coherent scheduling #169

Open bfops opened 8 years ago

bfops commented 8 years ago

One approach used near the top-level of client and server is to iterate through a closure until it returns "yes I'm done do the next thing", e.g. fetching network input. Another one used slightly further down is to run things for a set amount of time. We could probably merge these two strategies and get better overall behavior with less code.

bfops commented 8 years ago

In general we want a threading/scheduling mechanism that lets us say at least: