summaryrefslogtreecommitdiff
path: root/saveload.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
commitb6cdb521a172cd4c25c94c3578e6c5da52d914f2 (patch)
treecf711ba619b2f307386a2b23ed64cf0ef2aa1dcc /saveload.c
parent136cffaf5ad615a3362c07de201d660ccc892616 (diff)
downloadopenttd-b6cdb521a172cd4c25c94c3578e6c5da52d914f2.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 'saveload.c')
0 files changed, 0 insertions, 0 deletions