dt-rush / sameriver

game engine written in go
Other
1 stars 1 forks source link

better runtime sharing #16

Closed dt-rush closed 1 year ago

dt-rush commented 1 year ago
engine/runtime_limit_sharer.go: // TODO: scale perRunner_ms somehow; if one runner is using all its time,
engine/runtime_limit_sharer.go- // but others aren't using all theirs, then the extra time within allowance_ms
engine/runtime_limit_sharer.go- // should go to the runner hitting its limit based on this simple division
engine/runtime_limit_sharer.go- perRunner_ms := allowance_ms / float64(len(r.runners))
dt-rush commented 1 year ago

This was managed by recent commits:

https://github.com/dt-rush/sameriver/commit/72ed8a22c4b2b083386b91ad88e4572d5f81f411 https://github.com/dt-rush/sameriver/commit/a0722091dda15fd9a07ac0553ad6f4716689b78e https://github.com/dt-rush/sameriver/commit/7d3346f2235196e91010ad8bc60a7122cc801401