r2005 - Buttons on station detail window need long time to work September 07, 2008, 10:55:59 am (splited topic from http://forum.simutrans.com/index.php?topic=334.msg2470#msg2470 )What I did.1. Load a saved game2. Open station detail window3. Click one of jump buttonIn this case, button image didn't change to pressed image and nothing happened.But it started working after 20 seconds.Same thing happened when I rotated the map.What I did.1. Open station detail window2. Rotate map3. Click one of jump buttonDuring first 15 seconds - button image change to pressed image, but jump to old coordinateDuring next 30 seconds - button image don't change to pressed image, and don't jumpAfter 45 seconds, jump button start working again to new coordinateRedrawing this window is called when flag "halt-is_rerouting()" is true.But this flag is useless for redrawing.This flag means:"rebuild_destinations" or "reroute_goods" is demanded, but still waiting its order.If "rebuild_destinations" and "reroute_goods" were done, flag "halt-is_rerouting()" will return false. Then it don't redraw new state.So, redrawing happens during waiting its order, again and again. During that time, we can't click button.And in some cases, rotating or reroute_goods, we don't need to wait halt status update, imho. Quote Selected Last Edit: September 07, 2008, 11:11:49 am by z9999
Re: r2005 - Buttons on station detail window need long time to work Reply #1 – September 07, 2008, 07:29:49 pm The station does not immeadiately know its new destination. It is done in a two step process. First, the destination is updated. Then, several steps later, the goods are rerouted. This can easily take again up to 60s. (It must be spread like this, otherwise there can be long delays on big maps. This was one of the reasons older version often froze at the beginning of a new month.)But only a single redraw is needed. I will think of a better way to enforce it.EDIT: done Quote Selected Last Edit: September 07, 2008, 07:45:17 pm by prissi
[solved]Re: r2005 - Buttons on station detail window need long time to work Reply #2 – September 08, 2008, 12:33:42 pm Thank you. Quote Selected