Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
counts.
|
|
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
|
|
|
|
|
|
MTA_DELIVER to MTA_TRANSFER.
|
|
|
|
cargo.
|
|
loading and unloading.
|
|
some documentation and simplify StationCargoList::Load a bit
|
|
|
|
have lost their source
|
|
at the origin station
|
|
|
|
improved loading) instead of calculating if for every cycle
|
|
loading, transfering, delivering and such, to contain this logic in a single place instead of spread around (fonsinchen)
|
|
duplicated code (fonsinchen)
|
|
CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen)
|
|
others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
|
|
|
|
|
|
|
|
not delete items from other pools
|
|
before we actually try to do so
-Codechange: increase the limit of number of CargoPayments to match the limit of Vehicles (Rubidium)
|
|
|
|
the amount that should not be loaded
|
|
helper function (fonsinchen)
|
|
|
|
more likely to be updates [a-c].
|
|
|
|
zeroing). Improves average CargoPacket con/destruction time by ~20%, MoveTo/Append by 5-10% and application performance by up to 2%.
|
|
'real' new CargoPackets and saveload. For saveload we do not need to set anything except two variables (the rest is always overwritten by the load), for new 'real' cargo also pass the source_xy; dereferencing st before calling is easier than resolving st->index back to st and then dereferencing. Also don't set loaded_at_xy because that is of no importance when not loaded in a vehicle.
|
|
to merge packets. Chances are higher that the last packet (in the FIFO-ish queue) is mergeable with the to be added package. If a train gets loaded packets get split up and put into the different carriages, at unload they are unloaded in the same order so the last in the FIFO-ish queue is likely the packet it can merge with.
This results in a 5-10% performance improvement of CargoList's Append/MoveTo without performance degradation of AgeCargo.
|
|
|
|
VehicleCargoList; saves 512 bytes per station and 1-2% on CargoList::MoveTo.
|
|
|
|
constructor of CargoPackets to the constructor call itself
|
|
get removed to CargoPacket.
|
|
matter when merging CargoPackets
|
|
|
|
stations.
|
|
fonsinchen did
|
|
the secondary list, use cache updates instead of rebuilds. This is usually faster because of primarily gradual loading that only moves a (small) part of the cargo each time. Based on patch by fonsinchen.
|