mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
b6cdb521a1
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 |
||
---|---|---|
.. | ||
cocoa_keys.h | ||
cocoa_v.h | ||
cocoa_v.m | ||
dedicated_v.c | ||
dedicated_v.h | ||
null_v.c | ||
null_v.h | ||
sdl_v.c | ||
sdl_v.h | ||
win32_v.c | ||
win32_v.h |