Open namdre opened 2 years ago
Regarding "reload+run": isn't it really doable to restart a simulation simply by setting the time counter and other stuff to the state immediately after reload? This should do in a fraction of a second, while reload could consume a few seconds, dependent on the size and complexity of a net.
@rjmaris. Yes. the loadState functionality keeps the net and only reloads the traffic (in release it was only available via TraCI but in dev it's also available from sumo-gui now). The same functionality can be used to reset the network to its begin-time state. (trivially by saving state at time 0). Using this to speed up reload is the topic of #2440. An open issue however is resetting the state of all the route file handlers (#7471)
It seems that flow feeds are not continued after a saved state is reloaded, which appears to be more apparent when an early state is saved.
General notice: should it be useful to maintain separate feature branches for features that may be prone to initial bugs due to complexity resp. potential effects on program usage? In this case, however, no effects on program usage are apparent because the loading capability is new at all.
We try to reduce the number of branches because it simplifies things. My goal is to have the flow-in-state thing fixed before the next release. I would use a branch if I do need to push a temporary regression but as you said, the new feature doesn't break anything old.
both methods (forward and backward) could be triggered by using numeric hotkeys i.e. '1' jumps forward by 1 breakpoint, breakpoint, '2' jump forward by 2 breakpoints, etc and ctr+1 jumps backward by one breakpoint.
We would need a new option for saving breakpoint states (i.e. --save-breakpoint-states)
see also #2440, #2441, #2443