Replies: 1 comment
-
Bit late now, but you probably need to yield or sleep to give other tasks an opportunity to run. In general though you should just leave this to Makie. If the reason you created your own renderloop was to have something happen once per frame you can now use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to allow the user to interact with the 3D event loop and I could not figure out yet how. I tried to put the event loop in background with
@async
but the main thread is very unresponsive.Currently I have something like this as my event loop, which reacts to changes in
simparams
and other stuff:and this is what I would like to achieve, demonstrated in a dummy session. Just to clarify, the code until
init_and_start_eventloop()
works fine and I can callfaster(10)
and other mutators via keybindings on the event handler, so technically everything is there. What's missing is giving back the REPL to the user after creating the event loop.Can someone toss me in the right direction?
Edit: forgot to mention that I also tried things like
Threads.@spawn eventloop(scene)
and alike, but it only hangs with a grey screen.Beta Was this translation helpful? Give feedback.
All reactions