diff options
author | orwell96 <mono96.mml@gmail.com> | 2017-05-03 16:31:13 +0200 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-05-03 16:31:13 +0200 |
commit | 28717b4d65dc2e4080d5c7bde799fb4b87ef9a9d (patch) | |
tree | 81511699486ff8130ed23a43622bf73662f2be59 /advtrains/advtrains_luaautomation/pcnaming.lua | |
parent | 0c7144bcc49449eba9f6ab8f2c1d8efa72b0307a (diff) | |
download | advtrains-28717b4d65dc2e4080d5c7bde799fb4b87ef9a9d.tar.gz advtrains-28717b4d65dc2e4080d5c7bde799fb4b87ef9a9d.tar.bz2 advtrains-28717b4d65dc2e4080d5c7bde799fb4b87ef9a9d.zip |
Performance improvements: Don't clear paths unless absolutely necessary
instead delete path elements that are too far from the train one-by-one
Also when switching a switch or changing rails, only clear train paths of trains that are nearby.
Diffstat (limited to 'advtrains/advtrains_luaautomation/pcnaming.lua')
0 files changed, 0 insertions, 0 deletions