diff options
author | rubidium <rubidium@openttd.org> | 2014-01-02 16:48:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-01-02 16:48:16 +0000 |
commit | 3c94485ba0dcf8bb26f94f3a8e74369cd5619c01 (patch) | |
tree | 1c45ff84d185eac6392ea561cf7eb7ceb53b709d /src/openttd.cpp | |
parent | c98a94da447a34f33894f3d5a7ec7cbe869a726a (diff) | |
download | openttd-3c94485ba0dcf8bb26f94f3a8e74369cd5619c01.tar.xz |
(svn r26205) -Feature: SSE 4.1 sprite sorter, improving the sorting performance significantly (MJP)
For example with GCC 4.8, x86_64 Linux, Intel i5-3337U this patch improves the performance of Pile, Treham and Hamac test save games by about 10% in over-all run time at fast forward at 1920x1080 when zoomed out and when trees are not disabled.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 293462651..2c76d9ba6 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -62,13 +62,12 @@ #include "town.h" #include "subsidy_func.h" #include "gfx_layout.h" - +#include "viewport_sprite_sorter.h" #include "linkgraph/linkgraphschedule.h" #include <stdarg.h> - void CallLandscapeTick(); void IncreaseDate(); void DoPaletteAnimations(); @@ -775,6 +774,8 @@ int openttd_main(int argc, char *argv[]) } free(videodriver); + InitializeSpriteSorter(); + /* Initialize the zoom level of the screen to normal */ _screen.zoom = ZOOM_LVL_NORMAL; |