The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Ters on October 22, 2009, 08:18:50 pm

Title: [r2818] Changing schedule takes a long time
Post by: Ters on October 22, 2009, 08:18:50 pm
Recently, changing the schedule of some vehicle that is driving about or waiting at a stop has started taking a long time, probably close to half a minute. Even just telling the vehicle to skip a stop or turn back. It does not seem that the task of calculating a new route should be so time consuming, because vehicles have no problem re-routing to a depot in almost no time. And changing the schedule of a vehicle in a depot is as fast as ever. I have not done any changes in the network that should cause this on a global scale.

Linux, sdl, pak64 r225
Title: Re: [r2818] Changing schedule takes a long time
Post by: prissi on October 22, 2009, 10:24:34 pm
No, to reuce the load on the computer, I set idle vehicles (and no_route ones) to check for any action every 25s. However, the schedule check should be recognized more faster. I will investigate.
Title: Re: [r2818] Changing schedule takes a long time
Post by: z9999+ on October 23, 2009, 04:28:32 am
I tested r2821. But I think problem is not fully solved yet.

If you open schedule window of a convoi which is belong to a line and close it, convoi keep waiting for long time.
Title: Re: [r2818] Changing schedule takes a long time
Post by: z9999+ on October 26, 2009, 06:23:25 am
Still there is a problem in r2824.

How to reproduce:
1. Set a schedule to convoi and start it.
2. Open schedule window and push "Promote to line" button.
3. Close schedule window.
Title: Re: [r2818] Changing schedule takes a long time
Post by: prissi on November 10, 2009, 09:29:52 pm
Please test again.
Title: Re: [r2818] Changing schedule takes a long time
Post by: Dwachs on November 14, 2009, 07:12:22 pm
tested, and works for me.