-
Notifications
You must be signed in to change notification settings - Fork 2
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
Visualising one simulation step at a time #124
Comments
Using the new blocking atomic, may be possible to re-enable that to block
again. But will be a little arkward.
…On Mon, 13 Mar 2023, 14:20 Peter Heywood, ***@***.***> wrote:
For visually debugging models, it would be useful to be able to run
simulations a single step at a time, as in FLAME GPU 1.
Unfortuantely this is much more complex in FLAMEGPU 2 thanks to our
simulation-rate independent visuasliation / multirthreading.
I.e. on pressing n (or some other character) or an associated controller
binding, if the simulation is paused, run a single simulation step.
This would allow fast simulation upto an interesting state, then single
stepping at the desired time.
------------------------------
It might also be nice to be able to say "pause on step 200" as well
(mostly via the CLI?)
—
Reply to this email directly, view it on GitHub
<#124>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFVGCUHRMBHWFG5IIZFPXTW34ULRANCNFSM6AAAAAAVZER5RE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This does nothing if the simulation isn't ready, e.g. if it hasn't completed a new step since the sim last paused. Closes #124
This would be relatively simple to implement, it merely needs the simulation to lock the pause mutex, and store the lock in the visualiser at the appropriate time. Possibly not thread safe, but likely harmless. I had a quick attempt at doing the same inside the render loop, but it easily misses exact steps when the simulation is small/running fast. Hence, the need for the sim to block itself. |
For visually debugging models, it would be useful to be able to run simulations a single step at a time, as in FLAME GPU 1.
Unfortuantely this is much more complex in FLAMEGPU 2 thanks to our simulation-rate independent visuasliation / multirthreading.
I.e. on pressing
n
(or some other character) or an associated controller binding, if the simulation is paused, run a single simulation step.This would allow fast simulation upto an interesting state, then single stepping at the desired time.
It might also be nice to be able to say "pause on step 200" as well (mostly via the CLI?)
The text was updated successfully, but these errors were encountered: