The International Simutrans Forum

 

Author Topic: [Suggestion] "Force Recalculation" Button  (Read 1603 times)

0 Members and 1 Guest are viewing this topic.

Offline Carl

  • Devotee
  • *
  • Posts: 1599
    • Website
  • Languages: EN
[Suggestion] "Force Recalculation" Button
« on: September 08, 2013, 12:00:38 PM »
Do you think it would be possible to have a clickable GUI button which forces the game to perform the full routing/journey times/etc calculation which would normally happen at the end of each month, but on demand? If one runs long months, and makes large changes to the network, then it can be some time before the changes are reflected in passenger routing. I understand that some calculations happen every in-game hour now, but I am under the impression that the full calculation is still reserved for month-ends. This would also allow for the early eradication of anomalies that one would normally have to wait to "iron out".

Offline Morelook

  • Coder/patcher
  • *
  • Posts: 9
Re: [Suggestion] "Force Recalculation" Button
« Reply #1 on: September 08, 2013, 02:14:43 PM »
Refresh is already triggered on-demand whenever there are changes to the transport network.

Refresh is also triggered at month-end, so that changes to journey times and waiting times are reflected, even if there has been no further change to the transport network.

Maybe James can add an option to trigger refresh once the previous one has just completed. After all, path explorer should not take up too much processing time per frame, thus it should not matter even if refresh is repeatedly triggered.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18721
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: [Suggestion] "Force Recalculation" Button
« Reply #2 on: September 08, 2013, 03:16:36 PM »
As noted, the calculations are refreshed whenever there are actual changes to the network. The only reason to have more frequent periodic calculations would be to deal with changes that accumulate over time (waiting times, for instance, or point to point journey times). Are there issues that are being noted that are specifically linked to the frequency with which these calculations are refreshed?

Offline Carl

  • Devotee
  • *
  • Posts: 1599
    • Website
  • Languages: EN
Re: [Suggestion] "Force Recalculation" Button
« Reply #3 on: September 08, 2013, 03:27:51 PM »
Thanks both for your replies. It seems I was somewhat confused about when refreshes happen (I had no idea, for instance, that a full recalculation is undertaken whenever there are changes in the network). It seems that most anomalies, then, will be down to a lack of data for journey times and waiting times, and one cannot simply click a button to summon more data -- this must be gathered over time. I'll take another look to see whether the waiting/journey times data is updating sufficiently often.

Offline pwhk

  • *
  • Posts: 60
  • Languages: ZH, EN
Re: [Suggestion] "Force Recalculation" Button
« Reply #4 on: September 09, 2013, 06:34:13 AM »
In fact, as convoy travelling time is also accumulating. When you edit/shorten/lengthen a route (quite common in reality), or reassign a convoy with another route, the travelling time is no longer right.

As a result, apparently a short route could take hours to complete.

I am not sure if editing routes causes travelling time to recalculate though. However, a button to clear the figure would be useful if you have just made drastic changes to the route and become unsure of travelling time of the route - at least you are not going to change headway due to inaccurate travelling time

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18721
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: [Suggestion] "Force Recalculation" Button
« Reply #5 on: September 09, 2013, 09:06:41 PM »
pwhk - do you mean that the point to point journey time statistics from which the optimum paths are generated by the path explorer are not updated when the route changes?

Offline pwhk

  • *
  • Posts: 60
  • Languages: ZH, EN
Re: [Suggestion] "Force Recalculation" Button
« Reply #6 on: September 10, 2013, 06:37:18 AM »
No, I mean the travelling time shown when you click on a convoy

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18721
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: [Suggestion] "Force Recalculation" Button
« Reply #7 on: September 10, 2013, 10:10:20 AM »
Do you mean the round trip time? This is not itself used to calculate routes.

Offline pwhk

  • *
  • Posts: 60
  • Languages: ZH, EN
Re: [Suggestion] "Force Recalculation" Button
« Reply #8 on: September 10, 2013, 12:56:42 PM »
Yes, the round trip time.

For me, it is used to calculate headway for the route (manually).