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

Use Web Workers for running LAMMPS #1

Open
andeplane opened this issue Aug 8, 2017 · 1 comment
Open

Use Web Workers for running LAMMPS #1

andeplane opened this issue Aug 8, 2017 · 1 comment
Assignees
Milestone

Comments

@andeplane
Copy link
Collaborator

We want to use fix atomify all atomify that will do a callback function to JS whenever a timestep/minimization step is finished so we can synchronize rendering.

But LAMMPS freezes the GUI (naturally), so we want to move the LAMMPS work to another thread. This has (at least) two benefits:

  • Faster code (since we actually use two threads)
  • naturally solves the GUI hanging problem

See example of web workers. Shouldn't be very hard. Synchronization is performed with post events where we can send a JSON object.

@andeplane andeplane added this to the 1.0 milestone Aug 8, 2017
@andeplane andeplane self-assigned this Aug 8, 2017
@andeplane
Copy link
Collaborator Author

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

No branches or pull requests

1 participant