-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make send() synchronous and drop all the various queues
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92f939f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rdeits is there a way I can make meshcat-python not build a queue? (what I really mean, is only maintain a queue of size 1)
92f939f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, the
meshcat-python
implementation is a bit different (with an explicit server speaking ZMQ to the clients and websockets to the browser). Is the goal to make the draw commands block until they are actually received by the browser?92f939f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Robin!
The goal is to make it so that a queue of stuff to visualize doesn't build up, making the visualization lag behind the "latest" messages.
For example if I visualize thing A (with hundreds of things in sequence), then thing B (also hundreds of things in sequence),
then I find myself manually tuning a
time.sleep()
after sending off thing A so that it can finish visualizing thing A before visualizing thing B. Otherwise it can mess up the timing of thing B.Options:
I guess this queue = 1 thing would be on the .js server side, rather than python/julia clients?
No worries if you don't have time to think through this! I'm a very happy MeshCat user.