summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-01-02 16:48:16 +0000
committerrubidium <rubidium@openttd.org>2014-01-02 16:48:16 +0000
commit3c94485ba0dcf8bb26f94f3a8e74369cd5619c01 (patch)
tree1c45ff84d185eac6392ea561cf7eb7ceb53b709d /projects
parentc98a94da447a34f33894f3d5a7ec7cbe869a726a (diff)
downloadopenttd-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 'projects')
-rw-r--r--projects/openttd_vs100.vcxproj2
-rw-r--r--projects/openttd_vs100.vcxproj.filters6
-rw-r--r--projects/openttd_vs80.vcproj8
-rw-r--r--projects/openttd_vs90.vcproj8
4 files changed, 24 insertions, 0 deletions
diff --git a/projects/openttd_vs100.vcxproj b/projects/openttd_vs100.vcxproj
index e5c81d539..e55e7dd34 100644
--- a/projects/openttd_vs100.vcxproj
+++ b/projects/openttd_vs100.vcxproj
@@ -385,6 +385,7 @@
<ClCompile Include="..\src\vehicle.cpp" />
<ClCompile Include="..\src\vehiclelist.cpp" />
<ClCompile Include="..\src\viewport.cpp" />
+ <ClCompile Include="..\src\viewport_sprite_sorter_sse4.cpp" />
<ClCompile Include="..\src\waypoint.cpp" />
<ClCompile Include="..\src\widget.cpp" />
<ClCompile Include="..\src\window.cpp" />
@@ -641,6 +642,7 @@
<ClInclude Include="..\src\vehicle_type.h" />
<ClInclude Include="..\src\vehiclelist.h" />
<ClInclude Include="..\src\viewport_func.h" />
+ <ClInclude Include="..\src\viewport_sprite_sorter.h" />
<ClInclude Include="..\src\viewport_type.h" />
<ClInclude Include="..\src\water.h" />
<ClInclude Include="..\src\waypoint_base.h" />
diff --git a/projects/openttd_vs100.vcxproj.filters b/projects/openttd_vs100.vcxproj.filters
index f0b5e1898..60633caf0 100644
--- a/projects/openttd_vs100.vcxproj.filters
+++ b/projects/openttd_vs100.vcxproj.filters
@@ -384,6 +384,9 @@
<ClCompile Include="..\src\viewport.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="..\src\viewport_sprite_sorter_sse4.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
<ClCompile Include="..\src\waypoint.cpp">
<Filter>Source Files</Filter>
</ClCompile>
@@ -1152,6 +1155,9 @@
<ClInclude Include="..\src\viewport_func.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="..\src\viewport_sprite_sorter.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
<ClInclude Include="..\src\viewport_type.h">
<Filter>Header Files</Filter>
</ClInclude>
diff --git a/projects/openttd_vs80.vcproj b/projects/openttd_vs80.vcproj
index a37b5d2e8..fe0847165 100644
--- a/projects/openttd_vs80.vcproj
+++ b/projects/openttd_vs80.vcproj
@@ -811,6 +811,10 @@
>
</File>
<File
+ RelativePath=".\..\src\viewport_sprite_sorter_sse4.cpp"
+ >
+ </File>
+ <File
RelativePath=".\..\src\waypoint.cpp"
>
</File>
@@ -1839,6 +1843,10 @@
>
</File>
<File
+ RelativePath=".\..\src\viewport_sprite_sorter.h"
+ >
+ </File>
+ <File
RelativePath=".\..\src\viewport_type.h"
>
</File>
diff --git a/projects/openttd_vs90.vcproj b/projects/openttd_vs90.vcproj
index 37c413db0..65ae2e1a8 100644
--- a/projects/openttd_vs90.vcproj
+++ b/projects/openttd_vs90.vcproj
@@ -808,6 +808,10 @@
>
</File>
<File
+ RelativePath=".\..\src\viewport_sprite_sorter_sse4.cpp"
+ >
+ </File>
+ <File
RelativePath=".\..\src\waypoint.cpp"
>
</File>
@@ -1836,6 +1840,10 @@
>
</File>
<File
+ RelativePath=".\..\src\viewport_sprite_sorter.h"
+ >
+ </File>
+ <File
RelativePath=".\..\src\viewport_type.h"
>
</File>