Visualiser: Begin Paused v2#1052
Conversation
|
From that commit, looks like that change was to maintain the same value as before, while moving the This shouldn't have changed the value output to during the vis at all. It just means the timestep shown in the UI is the time after the current step, not the start of the current step. Removing the +1 would probably work, but then it would show 0 before step 0 has executed (if this would ever actually be visible) and at the end of step 0. |
ptheywood
left a comment
There was a problem hiding this comment.
This does cause the simulation to pause reliably at insertion time (with the count in the bottom right reading +1 of the iteration used internally).
It still isn't technically beginPaused though, so adding a docstring change to setBeginPaused noting this might be justified?
I.e. this is an improvement on the current behaviour so worth merging, but it is arguably not a full fix for beginPaused.
Happy for this to be merged with a docstring change, but not close any issues for this (if it's still even open), and will still need the workaround of having atleast one agent being rendered from step 0 for true begin paused.
|
I honestly don't see the value in pausing before agents. But sure, will get around to it when I have time, need to remind myself of all these changes. |
|
Yes, grand scheme it's unintersting and I'm being pedantic, but for e.g. recording a video of a rate-limtied simulation it might be of interest. I don't think it's an urgent need, as there's a known workaround, so just a docblock change so the method is clearly described as pausing on the first iterations agnets are present would be fine for the immediate future. Unsure if removing the two |
Tweaks visualiser begin paused behaviour, so that it begins paused on the first step with agents.
The changes so far, cause it to pause the step after agents are created (if created in a step function).
The problem is twofold:
stepExitConditions()triggers buffer update, for some reason it passesstep_count+1.Looking at git blame, the
+1occurred with this commit from @ptheywood, where step count update was moved to the end of step.So not sure whether it wants to be removed or not, needs discussion.
Closes FLAMEGPU/FLAMEGPU2-visualiser#122