diff options
author | bjarni <bjarni@openttd.org> | 2006-02-19 10:21:01 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-02-19 10:21:01 +0000 |
commit | b6cdb521a172cd4c25c94c3578e6c5da52d914f2 (patch) | |
tree | cf711ba619b2f307386a2b23ed64cf0ef2aa1dcc /os2.c | |
parent | 136cffaf5ad615a3362c07de201d660ccc892616 (diff) | |
download | openttd-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 'os2.c')
0 files changed, 0 insertions, 0 deletions