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

WorkerSolver uses 3x memory #6

Open
gkjohnson opened this issue Oct 14, 2020 · 0 comments
Open

WorkerSolver uses 3x memory #6

gkjohnson opened this issue Oct 14, 2020 · 0 comments
Milestone

Comments

@gkjohnson
Copy link
Owner

Memory for joint state is stored in the frames themselves, the shared arraybuffer, and the copy in the worker.

  • Use lower resolution arrays (32 bit vs 64)
  • Because the solver only ever modifies the DoFValues fields and the main thread is only expected to modify the others they could all just back their fields with the same large array buffer. It would be important that the goal data is only modified between solves, though, to avoid inconsistent solves.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant