Closed anan474 closed 1 month ago
Hi @cpojer ! Same PR as https://github.com/nkzw-tech/athena-crisis/pull/31 that will close https://github.com/nkzw-tech/athena-crisis/issues/16
Implement web worker to run evaluation in separate thread so to not lock the browser.
gameAction
executeGameAction
encodeGameState
decodeGameState
useClientGameAction
Thank you for your contribution, the funds were sent to you. Please consider contributing more pull requests!
Hi @cpojer ! Same PR as https://github.com/nkzw-tech/athena-crisis/pull/31 that will close https://github.com/nkzw-tech/athena-crisis/issues/16
Summary:
Implement web worker to run evaluation in separate thread so to not lock the browser.
Changes:
gameAction
worker to runexecuteGameAction
encodeGameState
anddecodeGameState
for transferring game state data between main thread and workeruseClientGameAction
to usegameAction
worker