You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenTTD-patches/src/core
Patric Stout 8e0d48a0f6
Fix: [SDL2] simplify what to redraw to prevent tearing (#8685)
When there are a lot of rects to redraw, of which one of the last
ones is almost the full screen, visual tearing happens over the
vertical axis. This is most visible when scrolling the map.

This can be prevented by using less rects. To simplify the situation,
and as solutions like OpenGL need this anyway, keep a single rect
that shows the biggest size that updates everything correctly.

Although this means it needs a bit more time redrawing where it
is strictly seen not needed, it also means less commands have
to be executed in the backend. In the end, this is a trade-off,
and from experiments it seems the approach of this commit gives
a better result.
3 years ago
..
CMakeLists.txt Add: introduce CMake for project management 4 years ago
alloc_func.cpp Cleanup: Removed SVN headers 5 years ago
alloc_func.hpp Cleanup: Removed SVN headers 5 years ago
alloc_type.hpp Cleanup: Removed SVN headers 5 years ago
backup_type.hpp Cleanup: Removed SVN headers 5 years ago
bitmath_func.cpp Cleanup: Removed SVN headers 5 years ago
bitmath_func.hpp Cleanup: Removed SVN headers 5 years ago
endian_func.hpp Fix: Globally apply preprocessor directive coding style 4 years ago
endian_type.hpp Fix: Globally apply preprocessor directive coding style 4 years ago
enum_type.hpp Cleanup: Removed SVN headers 5 years ago
geometry_func.cpp Fix: [SDL2] simplify what to redraw to prevent tearing (#8685) 3 years ago
geometry_func.hpp Fix: [SDL2] simplify what to redraw to prevent tearing (#8685) 3 years ago
geometry_type.hpp Fix: Globally apply preprocessor directive coding style 4 years ago
kdtree.hpp Codechange: Remove min/max functions in favour of STL variants (#8502) 4 years ago
math_func.cpp Cleanup: Removed SVN headers 5 years ago
math_func.hpp Codechange: Remove min/max functions in favour of STL variants (#8502) 4 years ago
mem_func.hpp Cleanup: Removed SVN headers 5 years ago
multimap.hpp Cleanup: Removed SVN headers 5 years ago
overflowsafe_type.hpp Cleanup: Removed SVN headers 5 years ago
pool_func.cpp Cleanup: Removed SVN headers 5 years ago
pool_func.hpp Codechange: Remove min/max functions in favour of STL variants (#8502) 4 years ago
pool_type.hpp Codechange: Replace assert_compile macro with static_assert 4 years ago
random_func.cpp Cleanup: Removed SVN headers 5 years ago
random_func.hpp Fix: Globally apply preprocessor directive coding style 4 years ago
smallmap_type.hpp Codechange: Make use of the improved C++17 emplace_back function. 4 years ago
smallmatrix_type.hpp Codechange: Remove min/max functions in favour of STL variants (#8502) 4 years ago
smallstack_type.hpp Codechange: Remove min/max functions in favour of STL variants (#8502) 4 years ago
smallvec_type.hpp Codechange: Remove min/max functions in favour of STL variants (#8502) 4 years ago
string_compare_type.hpp Cleanup: Removed SVN headers 5 years ago