Re: Patch speed problems
Josef Drexler <[email protected]> Fri, 31 Mar 2006 19:32:33 -0500
| Newsgroups | gmane.games.ttdpatch.general |
|---|---|
| Message-ID | <[email protected]> |
Uwe Domaratius wrote: > Michael Blunck wrote: > > With regard to the DB Set, I doubt that. In v0.82 there“s no basic >> difference between freight waggons. OTOH, the 194 is implemented as an >> articulated locomotive using a callback, so it would be of interest if >> this phenomenon would be restricted to those types of engines (all steam >> engines w. tenders, 194, 195). > > Ok, I did more testing. I started a new random game, cheated into 1955 > and bought a BR 85 (engine doesn't matter anyway as I found out) + 17 > refrigerator wagons, which is my usual train length. As soon as the > train starts moving, CPU usage hits 100%, as long as the train window is > open. Stopping the train or closing the window reduces the CPU load. Thanks for the detailed report. Now I was actually able to figure out the problem :) Previously, I thought I couldn't reproduce it, but upon further inspection it was because for me it only added ~20% CPU usage which wasn't noticable. But with some benchmarking tools, I found out that callback 19 is called about 5 million times per second with the train window open... just to constantly determine whether the train window should have a refit button or not. Now I only check that when the train is stopped in a depot, thus eliminating this slowdown. Just wait for beta 2 :) -- Josef Drexler -- TTDPatch mailing list. To unsubscribe from the list, send an email to [email protected] with the body (not the subject) of the email containing only the word "unsubscribe" (without the quotes). For more info please see http://www.ttdpatch.net/maillist.html