summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-02-19 10:21:01 +0000
committerbjarni <bjarni@openttd.org>2006-02-19 10:21:01 +0000
commit92c37bd5ea8e58abbc6a543c46840c30bbc7f6f7 (patch)
treecf711ba619b2f307386a2b23ed64cf0ef2aa1dcc /vehicle.c
parent55461bd2ec885a7f2808b5e10bb0403a17b6dff3 (diff)
downloadopenttd-92c37bd5ea8e58abbc6a543c46840c30bbc7f6f7.tar.xz
(svn r3618) -Codechange: [OSX] reduce the time spend in the cocoa video driver
by caching global vars in local vars, the CPU keeps them in registers when looping all pixels on screen this reduce reading from RAM, which is much slower (Tron wrote this after I detected that those loops used a lot of time) Note: since the reduced time is waiting for the RAM, the actual CPU usage is not reduced. This means that it's only detectable while fast forwarding and other situations when OTTD wants to use more than 100% of the CPU time
Diffstat (limited to 'vehicle.c')
0 files changed, 0 insertions, 0 deletions