5d-diplomacy-with-multiverse-time-travel icon indicating copy to clipboard operation
5d-diplomacy-with-multiverse-time-travel copied to clipboard

Quick and dirty background worker

Open admalledd opened this issue 3 weeks ago • 1 comments

Quick and dirty background worker and response compression to improve end-of-turn performance by hiding it under the rug for the moment.

Basically per quick analysis:

  1. last player submits orders
  2. This triggers the Adjudication calculations/etc, but this happened on the HTTP Request thread/stack
  3. This would/could block other requests from processing, (note: there are more than just one HTTP Request thread though) if such occurred a player would receive many events at once and the UI would probably be sad :( and have to first (on each client) "catch up" or re-re-re-re-draw the current new state, whichever won the request vs database races.
  4. These JSON responses get big fast, lets enable server-side compression by default and see how much this helps

admalledd avatar Feb 11 '25 02:02 admalledd