Age | Commit message (Collapse) | Author |
|
This is accomplished by changing it to a single member struct with the
appropriate operator overloads to make it all work with not too much
source modifications.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|