-
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
Begin Paused without Agents prior to Step 0 #122
Comments
Started looking at this. I tried stripping out But that leads to the visualiser being stuck at step 0 (with the splash screen open) when the model begins with no agents, regardless of pause state or Debugging shows it's stuck waiting for vis to confirm it's done the initial buffer allocation. while (!visualiser->buffersReady()) {
// Do nothing, just spin until ready
std::this_thread::yield();
} Not too sure best way to handle this. Either strip out this check (or rather replace it with something that merely check's vis init flow is complete). Or give buffers a default allocation so they are ready assuming initial agent account is <= default. I attempted this fix by:
This now pauses with splash screen closed at step 0, but agents are not visible in the paused frame if they are created before the sim. |
I think it would be easier to change the beginPaused logic so it always pauses at the first step with agents. Would this be acceptable? (I think it would just require |
The fix from #120 only fixed
beginPaused
when there are agents present prior to the start of simulation step 0.I.e. if agents are created in a hostLayer function during step 0, or in a step function at the end of step 0 the simualtion will not begin paused, and will pause at some arbitrary frame later.
This might also require changes to splash screen closing logic.
The text was updated successfully, but these errors were encountered: