Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Performance] EvaluationPanel run map evaluations in async worker #2 #33

Merged
merged 5 commits into from
May 27, 2024

Conversation

anan474
Copy link
Contributor

@anan474 anan474 commented May 26, 2024

Hi @cpojer ! Same PR as #31 that will close #16

Summary:

Implement web worker to run evaluation in separate thread so to not lock the browser.

Changes:

  • Add a gameAction worker to run executeGameAction
  • Add encodeGameState and decodeGameState for transferring game state data between main thread and worker
  • Make useClientGameAction to use gameAction worker

@cpojer cpojer merged commit 637fdcd into nkzw-tech:main May 27, 2024
2 checks passed
@cpojer
Copy link
Contributor

cpojer commented May 27, 2024

Thank you for your contribution, the funds were sent to you. Please consider contributing more pull requests!

@anan474 anan474 deleted the async-evaluation branch May 27, 2024 18:38
ad1992 pushed a commit to ad1992/athena-crisis that referenced this pull request May 30, 2024
…ng Mode (nkzw-tech#33)

Co-authored-by: cpojer <[email protected]>
Co-authored-by: Dominik Kratz <[email protected]>
GitOrigin-RevId: 124c9db050d5697a3cddfe85615f7eff541e6bea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Performance] EvaluationPanel should run map evaluations async and/or in a worker
2 participants