summaryrefslogtreecommitdiff
path: root/src/viewport_sprite_sorter_sse4.cpp
AgeCommit message (Collapse)Author
2021-05-30Codechange: rename _SQ64 into POINTER_IS_64BIT (#9313)Patric Stout
2021-02-05Codechange: Apply coding style (#8640)SamuXarick
* Fix: Missing or needed spaces * Codechange: Remove space * Codechange: Remove space * Codechange: More missing spaces * Codechange: Missing spaces * Codechange: Remove space * Codechange: Remove space
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2020-12-20Feature #7962: Significantly improve sprite sorter performancedP
2020-07-03Fix: Globally apply preprocessor directive coding styleTechGeekNZ
Global; except for the 32-bit SSE blitter, which has some #DEFINEs in not-very-nice places.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2018-11-18Revert: Sprite sorting optimisation sorted incorrectly.frosch
This reverts commit 25ab9c1997f770f4a8a66bb3ad4b82ba87e3a977.
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2018-10-26Codechange: Improve (un)zoom performanceJindrich Makovicka
When zooming out with a high res display, there can be about 150k sprites to be sorted before displaying. With the O(n^2) complexity of the sprite sorter, this can take several seconds. This patch works around this by sorting the sprites by the xmin coordinate first using QSort, which later allows an early bailout out of the inner loop. This is enough to cut down the full unzoom time on a 4k display to a fraction of second.
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-01-02(svn r26207) -Codechange: move the CPUID flag detection into cpu.cpprubidium
2014-01-02(svn r26205) -Feature: SSE 4.1 sprite sorter, improving the sorting ↵rubidium
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.