summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-10-15(svn r17776) -Codechange: [SDL] make "update the video card"-process ↵rubidium
asynchronious. Profiling with gprof etc. hasn't shown us that DrawSurfaceToScreen takes a significant amount of CPU; only using TIC/TOC it became apparant that it was a heavy CPU-cycle user or that it was waiting for something. The benefit of making this function asynchronious ranges from 2%-25% (real time) during fast forward on dual core/hyperthreading-enabled CPUs; 8bpp improvements are, in my test cases, significantly smaller than 32bpp improvements. On single core non-hyperthreading-enabled CPUs the extra locking/scheduling costs up to 1% extra realtime in fast forward. You can use -v sdl:no_threads to disable threading and undo this loss. During normal non-fast-forwarded games the benefit/costs are negligable except when the gameloop takes more than about 90% of the time of a tick. Note that allegro's performance does not improve with this system, likely due to their way of getting data to the video card. It is not implemented for the OS X/Windows video backends, unless (ofcourse) SDL is used there. Funny is that the performance of the 32bpp(-anim) blitter is, at least in some test cases, significantly faster (more than 10%) than the 8bpp(-optimized) blitter when looking at real time in fast forward on a dual core CPU; it was slower. The idea comes from a paper/report by Idar Borlaug and Knut Imar Hagen.
2009-10-14(svn r17775) -Update from WebTranslator v3.0:translators
basque - 119 changes by Thadah danish - 2 changes by krak brazilian_portuguese - 1 changes by Tucalipe
2009-10-14(svn r17774) -Codechange: show the version of the (dynamically) linked ↵rubidium
library instead of the one we compiled against in the crash log
2009-10-14(svn r17773) -Cleanup: sdl.h isn't needed for allegrorubidium
2009-10-13(svn r17772) -Fix [FS#3264]: CJK languages don't have spaces, so for adding ↵rubidium
newlines (multi line strings) we need to (properly) handle the case when there are no spaces instead of truncating the string.
2009-10-13(svn r17771) -Codechange: use the 'StringID' function instead of the 'const ↵rubidium
char *' function + custom code to resolve the 'const char *' from the 'StringID'
2009-10-13(svn r17770) -Update from WebTranslator v3.0:translators
basque - 20 changes by Thadah vietnamese - 21 changes by nglekhoi
2009-10-12(svn r17769) -Update from WebTranslator v3.0:translators
basque - 292 changes by Thadah greek - 73 changes by fumantsu
2009-10-12(svn r17768) -Fix (r17715): [OSX] Newer GCC versions don't like jumping over ↵michi_cc
variable definitions with goto's. (planetmaker)
2009-10-12(svn r17767) -Fix [FS#3190]: [OSX] Don't check 64bit-ness when compiling strgen.michi_cc
2009-10-11(svn r17766) -Add: stub for a Basque translationrubidium
2009-10-11(svn r17765) -Update from WebTranslator v3.0:translators
greek - 14 changes by fumantsu italian - 2 changes by lorenzodv turkish - 2 changes by niw3
2009-10-11(svn r17764) -Codechange: Replace 'list' class variable in ↵alberth
ReplacceVehicleWindow by 'engines'.
2009-10-11(svn r17763) -Codechange: Rename 'wagon_btnstate' to 'replace_engines', and ↵alberth
'init_lists' to 'reset_sel_engine' in ReplaceVehicleWindow, add doxygen comments.
2009-10-11(svn r17762) -Fix [FS#3259]: don't let aircraft drive a while over the grass ↵rubidium
when landing at high altitude airports
2009-10-11(svn r17761) -Codechange: Removed some unused/unneeded variables from ↵alberth
ReplaceVehicleWindow.
2009-10-11(svn r17760) -Revert (r17648): _local_company is less constant than you'd ↵alberth
expect.
2009-10-11(svn r17759) -Codechange [FS#3257]: Return focus to the parent window using ↵alberth
the function designed for it.
2009-10-10(svn r17758) -Revert (r17208): Use assert_compile() if you cannot count.frosch
-Fix (r7326): Powernaut Helicopter got wrong 'load amount'. -Fix (r2639): Call the Evil by its name.
2009-10-10(svn r17757) -Update from WebTranslator v3.0:translators
hungarian - 35 changes by leiric indonesian - 1 changes by prof ukrainian - 49 changes by Madvin
2009-10-10(svn r17756) -Codechange: Company finances window uses pure nested widgets.alberth
2009-10-10(svn r17755) -Codechange: Allow for a zero-size display plane in a ↵alberth
NWidgetStacked widget to hide its child widgets.
2009-10-10(svn r17754) -Codechange: Make ExpensesList::GetHeight() return a uint.alberth
2009-10-10(svn r17753) -Fix (r17750): Expenses amounts were printed two pixels too low.alberth
2009-10-10(svn r17752) -Fix [FS#3231]: OSK could reset town name to an already used ↵rubidium
town name for the 'Generate Town' window
2009-10-10(svn r17751) -Fix [FS#3253]: sometimes clicking on a for the user unfocused ↵rubidium
edit box would show the OSK (Zuu)
2009-10-09(svn r17750) -Codechange: Financial expenses panel handles different font ↵alberth
size, replaced magic numbers by constants.
2009-10-09(svn r17749) -Update from WebTranslator v3.0:translators
catalan - 1 changes by arnau romanian - 2 changes by kkmic spanish - 1 changes by Terkhen
2009-10-09(svn r17748) -Fix: crash when right clicking on the 'toggle' toolbar buttonrubidium
2009-10-09(svn r17746) -Codechange: 'operator new' doesn't return NULL, ↵smatz
NetworkSend_Init() is useless
2009-10-08(svn r17745) -Update from WebTranslator v3.0:translators
simplified_chinese - 1 changes by Gavin dutch - 1 changes by habell finnish - 1 changes by jpx_ french - 1 changes by glx german - 1 changes by planetmaker italian - 1 changes by lorenzodv russian - 1 changes by Lone_Wolf serbian - 48 changes by AtzaMan vietnamese - 14 changes by nglekhoi
2009-10-07(svn r17743) -Fix: (post 0.7) memory leak in server in case handling a ↵rubidium
packet caused the connection to be closed. Also force-close the connection on invalid packets.
2009-10-07(svn r17742) -Codechange: remove unused variable from Recv_Packetrubidium
2009-10-07(svn r17741) -Feature-ish [FS#3116]: show the nickname of the person you're ↵rubidium
PMing
2009-10-07(svn r17740) -Codechange: Extract financial expenses drawing routines.alberth
2009-10-07(svn r17739) -Cleanup: compiler didn't warn about an unused variable, ↵rubidium
fonsinchen did
2009-10-07(svn r17738) -Update from WebTranslator v3.0:translators
russian - 1 changes by Lone_Wolf
2009-10-07(svn r17737) -Codechange: remove the chat window when you were chatting with ↵rubidium
someone who lost his/her connection or when you were team chatting and moved out of the company.
2009-10-07(svn r17736) -Codechange [FS#3135]: rewrite CargoList::MoveTo; don't require ↵rubidium
the secondary list, use cache updates instead of rebuilds. This is usually faster because of primarily gradual loading that only moves a (small) part of the cargo each time. Based on patch by fonsinchen.
2009-10-07(svn r17735) -Codechange: update the cache one inserting/removing ↵rubidium
CargoPackets from the CargoList via Append/Truncate instead of rebuilding the whole cache. For Append this changes the O(n) cache rebuild into a O(1) cache update. For Truncate no temporary list is needed anymore (based on patch by fonsinchen)
2009-10-06(svn r17734) -Fix (r17732): broke the assumption that 'this->packets == ↵rubidium
this', which broke loading old savegames. Now remove the (need for the) hack that needed that assumption.
2009-10-06(svn r17733) -Codechange: store the 'days in transit' cache as the sum of ↵rubidium
the days in transit instead of the average; the variable isn't requested that often (primarily station NewGRFs) that the dividing/testing for dividing by 0 step needs to be cached.
2009-10-06(svn r17732) -Codechange: reorder some variables of cargo packets/cargo ↵rubidium
lists to get better alignment *and* smaller structs; both from 40 bytes to 32 bytes on 64 bits.
2009-10-06(svn r17731) -Codechange: do not cache a boolean which states whether some ↵rubidium
other variable is not 0.
2009-10-06(svn r17730) -Codechange: do not cache the source of a packet in the cargo ↵rubidium
list. It's only used for (some) GUI/NewGRF purposes so precalculating it costs more than calculating when it's actually used.
2009-10-06(svn r17729) -Cleanup: Deduplicate some code.frosch
2009-10-06(svn r17728) -Cleanup: Remove some more unneeded/unused parameters.frosch
2009-10-06(svn r17727) -Codechange: some coding style and documentation fixesrubidium
2009-10-06(svn r17726) -Cleanup: Remove some unneeded/unused parameters.frosch
2009-10-06(svn r17725) -Codechange: Reduce usage of EngInfo and XxxVehInfo, esp. when ↵frosch
a Engine * is already present.