News:

Congratulations!
 You've won the News Item Lottery! Your prize? Reading this news item! :)

Profiling (Linux server)

Started by jamespetts, June 18, 2013, 09:59:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamespetts

I did some profiling yesterday on the Linux server version: the results are here. These results suggest that, following recent changes (most significantly, the various changes to walking and Bernd's work a few months ago at making the physics code more efficient), the largest consumer of CPU time is now the routing system for goods/passengers. This seems to be substantially more computationally intensive than when Knightly wrote it in the first place - I think as a result of additional computations needed for each journey due to the need to calculate the walking to/from destinations for each journey (both passengers and freight).
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

neroden

This is completely unsurprising: the routing system *should* be the largest consumer of CPU code in a well-functioning transport sim.  And it has a gigantic job to do upon loading.

The profile isn't as useful as it could be because the time is dominated by :load().  But I guess you can't run a longer profile until we solve that crash bug...

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.