The International Simutrans Forum

 

Author Topic: Average Speed Calculation  (Read 2119 times)

0 Members and 1 Guest are viewing this topic.

Offline fbfree

  • *
  • Posts: 34
Average Speed Calculation
« on: February 19, 2011, 05:28:11 PM »
Problem:  Using Simutrans-Experimental 9.2 for linux-64bit, vehicles will sometimes calculate an average speed that is higher than the possible maximum speed of the vehicle.

Symptoms: This problem is produced in http://simutrans-germany.com/files/upload/11.sve  It is a widespread problem among most lines.  Looking at line (10) Salford, the average speed of the line has varied from 9 to about 40 km/h over the last year using vehicles that only manage 12km/h.  Convoys 69, 77, 89, 91, 239, and 299 have all contributed to this problem by posting high average speeds: some in excess of 300km/h.  These high average speeds are calculated when convoys arrive at a stop just after the beginning of a month.  The problem is reproducible when playing the game at fast forward; I have not checked at normal speed.

System Specifications:
Dell Studio XPS 13
Intel Core2 duo at 2.67GHz
Debian squeeze
frames_per_second=25
fast_forward=50
build: simutrans-exp-2011-01-04-f559938
pak: pak-britain simutrans128 (1.4.3) unstable

Correlated Problems:
As convoys on the (10) Salford and the (18) Nottingham are alternately affected by high average speeds, passengers reroute back and forth between the lines to find the quickest route, adding inefficiencies and congestion to carriage routes linking the two lines.

High average speed adds to the excessive revenue I'm receiving from the river boats.

Related Post:
http://forum.simutrans.com/index.php?topic=5589.0

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18745
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Average Speed Calculation
« Reply #1 on: February 21, 2011, 07:59:19 PM »
Thank you for the report. I have traced the problem, and it will be fixed in the next version. The problem was caused by individual convoys recording excessively high average speeds because the journey time was occasionally calculated incorrectly. I have fixed it such that the average speed will not be recorded if it is greater than the convoy's maximum speed.