1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00
Commit Graph

21837 Commits

Author SHA1 Message Date
ζeh Matt
0f2f106173 Increase invalidation grid for software renderers 2025-04-25 23:37:27 +03:00
ζeh Matt
105d0e6c4f Nuke the bad culling, causes just odd artifacts, fast enough now 2025-04-25 23:34:10 +03:00
ζeh Matt
09a3ad1f07 Optimize InvalidationGrid 2025-04-25 22:15:32 +03:00
ζeh Matt
e2d9a44a5d Fix stray pixels showing up when panning and moving a windows 2025-04-25 17:48:39 +03:00
ζeh Matt
12063aa884 Rename SetLocation to SetViewportLocation, this is less confusing 2025-04-25 17:48:39 +03:00
ζeh Matt
7a764a05a8 Ensure we invalidate the window when changing viewport location 2025-04-25 17:48:39 +03:00
ζeh Matt
8503faa289 Set viewport location immediately, fixes rotation using stale position 2025-04-25 17:48:39 +03:00
ζeh Matt
7aca569363 Silence warning about final 2025-04-25 17:48:38 +03:00
ζeh Matt
e991cfb97e Fix assertion when plugins draw custom images 2025-04-25 17:48:38 +03:00
ζeh Matt
e9ee54b716 Setup the drawing context correctly for saving previews 2025-04-25 17:48:38 +03:00
ζeh Matt
983b4e1a1f Remove the old invalidation thing 2025-04-25 17:48:38 +03:00
ζeh Matt
b33a48f2b0 Remove commented code 2025-04-25 17:48:38 +03:00
ζeh Matt
4a413ff8af Increase the grid size for OpenGL, it's faster this way 2025-04-25 17:48:37 +03:00
ζeh Matt
eb6b554d77 Fix screenshots not having a render context 2025-04-25 17:48:37 +03:00
ζeh Matt
576a757200 Add safe guards to make sure we have a valid drawing context 2025-04-25 17:48:37 +03:00
ζeh Matt
e3062985c0 Fix code calling ViewportUpdatePosition this is incorrect 2025-04-25 17:48:37 +03:00
ζeh Matt
f51ca4dae6 Add stricter checks to validate we have a valid drawing context 2025-04-25 17:48:37 +03:00
ζeh Matt
c2d239c8c9 Fix changing scale or resizing the window having empty areas 2025-04-25 17:48:36 +03:00
ζeh Matt
e34c52de59 Work-around for weather effects, always redraw in this case 2025-04-25 17:48:36 +03:00
ζeh Matt
c9bba5ee63 Workaround for OpenGL renderer viewport panning, turn it into a hybrid 2025-04-25 17:48:36 +03:00
ζeh Matt
911f821245 Simplify + clang-format correction 2025-04-25 17:48:36 +03:00
ζeh Matt
6d63b1f752 Skip dead windows in some iterations 2025-04-25 17:48:36 +03:00
ζeh Matt
cfe340a36b clang-format fix 2025-04-25 17:48:36 +03:00
ζeh Matt
921c1d8daa Make the invalidation grid size dynamic 2025-04-25 17:48:35 +03:00
ζeh Matt
c6a3fcdca0 Implement support for viewport shifting 2025-04-24 21:15:50 +03:00
ζeh Matt
7a2f314aa9 Use invalidation for OpenGL drawing engine 2025-04-24 21:15:49 +03:00
ζeh Matt
4e8ac7ea12 Fix invalidation debug paint 2025-04-24 21:15:49 +03:00
ζeh Matt
360bfbfb66 Introduce InvalidationGrid 2025-04-24 21:15:46 +03:00
ζeh Matt
1e2d94fc95 Add project for dependencies, restructure targets and cleanup unused 2025-04-23 01:46:12 +03:00
ζeh Matt
e487cec14f Make the g2 task shared, remove duplication 2025-04-22 02:21:54 +03:00
ζeh Matt
43150c181a Add a new target to copy relevant data and build g2.dat if needed 2025-04-22 01:01:58 +03:00
ζeh Matt
8f1e4d1537 Fix #24264: Optimize the search for nearest litter by Handyman 2025-04-21 20:33:30 +03:00
Matt
bb41d0022f Fix #24260: Optimize the lookup for nearby guests by entertainers (#24263) 2025-04-21 17:09:30 +00:00
Aaron van Geffen
bc20f5f922 Merge pull request #24259 from ZehMatt/heterogeneous-opts 2025-04-21 15:23:20 +02:00
ζeh Matt
f6d78375b5 Remove pointless overloads of iequals, implicitly converts to views 2025-04-21 03:41:56 +03:00
ζeh Matt
68f6ea8d15 Use sfl::small_vector for Chunks, only observed a maximum of 16 so far 2025-04-21 03:16:45 +03:00
ζeh Matt
2adbaffbca Use pair instead of tuple in FileIndex.hpp, reduces compilation time 2025-04-21 03:12:49 +03:00
ζeh Matt
8fe14c5b5c More code style adjustments 2025-04-21 03:08:01 +03:00
ζeh Matt
8fdbf7ac0e Avoid constructing std::string_view from const char* 2025-04-21 03:05:33 +03:00
ζeh Matt
5eabdf8ec9 Use std::span for peepAnimObjects, rename to new style 2025-04-21 03:05:33 +03:00
ζeh Matt
b30e1b406b Use unordered_map and constify things in Legacy.cpp 2025-04-21 03:05:33 +03:00
ζeh Matt
0b581281c5 Use string_view in ParseSourceGame lookup helper 2025-04-21 03:05:33 +03:00
ζeh Matt
a22c041379 Enable the use of std::string_view for find in ObjectRepository 2025-04-21 03:05:32 +03:00
Aaron van Geffen
63bbc893ed Tweak initial dimensions to account for optional scrollbars 2025-04-20 14:54:54 +02:00
Aaron van Geffen
b081884d47 Fix glitchy initial map window dimensions 2025-04-20 14:49:41 +02:00
Michael Steenbeek
63e247454b Merge pull request #22766 from Gymnasiast/fix/19782
Fix #19782: Game stops counting inversions after 31
2025-04-20 13:52:20 +02:00
Max
923a38c990 Close #24146: Expand plugin functionality for balloons and money effects 2025-04-19 23:23:02 +02:00
Gymnasiast
731f2d4c34 Count holes separately from inversions; limit bonus to 31 2025-04-19 19:53:37 +02:00
Gymnasiast
c43497c16d Maximise num holes, inversions, drops, circuits and lift hills when writing to TD6 2025-04-19 19:00:44 +02:00
Gymnasiast
cc2546b681 Close #19782: Game stops counting inversions after 31 2025-04-19 19:00:22 +02:00