Commit Graph

42373 Commits (877e301c5ac4b1ed5e84db8e56e02670659521cb)

Author SHA1 Message Date
Jonathan G Rennison 877e301c5a Ring buffer: Add multi-value insert 1 year ago
Jonathan G Rennison bdfdb9808a Ring buffer: Add iterator conversions 1 year ago
Jonathan G Rennison 8d2911fe29 Ring buffer: Add swap function, make move (swap) assignment noexcept 1 year ago
Jonathan G Rennison ab128143fb Ring buffer: Make iterator default constructor public 1 year ago
Jonathan G Rennison 8d3a90425c Test: Add tests for ring buffer functionality 1 year ago
Jonathan G Rennison 3f2b06fcbe Ring buffer: Fix various insert/emplace cases 1 year ago
Jonathan G Rennison 6b8994c947 Ring buffer: Fix iterator operator + and - 1 year ago
Jonathan G Rennison 21adf399c0 Ring buffer: Add a std::initializer_list constructor 1 year ago
Rubidium 73d7052732 Add: unit test functionality using catch2
(cherry picked from commit 43a7e54067)
1 year ago
Rubidium f92a96dad2 Add: catch2 v2.13.10
(cherry picked from commit 88ead3f102)
1 year ago
Jonathan G Rennison 5a28405ced Merge branch 'master' into jgrpp
# Conflicts:
#	src/company_gui.cpp
#	src/group_gui.cpp
#	src/newgrf.cpp
#	src/newgrf_debug_gui.cpp
#	src/saveload/saveload.cpp
1 year ago
Jonathan G Rennison ef168b7d46 Fix: Road stops should not draw a ground sprite of 0 1 year ago
Jonathan G Rennison aee13946ff Fix: Inaccurate waiting cargo total in station window when using cargodist
For stations with many flows and/or small cargo packets,
due to accumulated inaccuracies in DivideApprox.

The displayed total should match GoodsEntry::TotalCount().
1 year ago
Jonathan G Rennison c7712bbd20 Debug: Shpw station GoodsEntry info in station debug window 1 year ago
Patric Stout 66b324a4c0 Fix: [MacOS] screen looks blue-ish when using newer SDKs (#11207)
The define kCGBitmapByteOrder32Host changed (around SDK 12?)
into an enum, which means an old #ifndef was triggering,
overwriting the value to 0. Sadly, 0 means Order16Big, causing
RGBA to become GRAB, which results in strange colours.

As we no longer support PPC, drop that piece of code completely.

(cherry picked from commit 5ac333c2cc)
1 year ago
Loïc Guilloux c890f96d07 Fix: no fast forward in network was ensured only from GUI side (#11206)
(cherry picked from commit 2bf3c02fbf)
1 year ago
Jonathan G Rennison 175f6c979c Use ring buffer for network TCP packet send queue 1 year ago
Jonathan G Rennison cf655f624b Remove unused include 1 year ago
Jonathan G Rennison 7502fbd44b Use ring buffers for tile/landscape candidate queues 1 year ago
Jonathan G Rennison 69683eecb8 Use ring buffer for console buffer 1 year ago
Jonathan G Rennison a403a0c8e3 Use ring buffer for script log line data 1 year ago
Jonathan G Rennison 7fb815aad8 Use ring buffer in TCPConnecter::OnResolved 1 year ago
Jonathan G Rennison 8c1a3c26af Use ring buffers for network _chatmsg_list and _command_queue 1 year ago
Jonathan G Rennison e958bdde9f Use ring buffers for train lookahead items and curves 1 year ago
Jonathan G Rennison ebd375c247 Container: Add a self-resizing ring buffer container 1 year ago
Jonathan G Rennison 87911bdf47 Use bitmath builtins for FindLastBit 1 year ago
Jonathan G Rennison c49651ae7b VarAction2: Use reserve and shrink_to_fit for DSG adjusts vector 1 year ago
Jonathan G Rennison 129691dcc7 Music: Defer probing for music driver until a music set is loaded 1 year ago
Jonathan G Rennison 8681f29155 Linux: Try to enable transparent huge pages for map allocation
Using single allocation for tile and tile-extended
1 year ago
Jonathan G Rennison 41fed27d0a Animated tile: Prefetch next item in map 1 year ago
Jonathan G Rennison 2212191b6c Saveload: Fix missing cast warnings for ship/RV path cache load 1 year ago
Jonathan G Rennison 9cf39b7a25 Prefetch next tile in tile loop iteration 1 year ago
Jonathan G Rennison cc57ac0eff Add pre-check to auxiliary tile loop flooding test 1 year ago
Jonathan G Rennison 8dc953c590 Fix: ICU layout: Glyph to char mapping with multiple runs
See: https://github.com/OpenTTD/OpenTTD/issues/11203
See: https://github.com/OpenTTD/OpenTTD/issues/10790
1 year ago
Jonathan G Rennison 6ccf3774b6 Fix missing tooltip texts 1 year ago
Jonathan G Rennison fac21f3429 Fix missing/incorrect command error texts 1 year ago
Jonathan G Rennison 92e632454e Change ship path cache to be optional and use a ring buffer 1 year ago
Jonathan G Rennison 2ae4e5bdc1 Change road vehicle path cache to be optional and use ring buffers
Show path cache in debug window
1 year ago
Jonathan G Rennison 1183476182 Allow custom signal styles to disable aspect-limited mode
By setting style_lookahead_extra_aspects to 255
1 year ago
Jonathan G Rennison 6ccbd7cce2 Saveload: Remove test pass from ScriptInstance::Save
Use SlConditionallySave to discard the saved data instead if there
was an error
1 year ago
Jonathan G Rennison e3021de408 Saveload: Add helper to conditionally save template functor 1 year ago
Jonathan G Rennison f378167951 Saveload: Change SlSaveToVector to be templated, add SlSaveToTempBuffer 1 year ago
Jonathan G Rennison d0c6b7136d Saveload: Improve performance of script data save/load
Avoid unnecessarily using SlObject wrappers
1 year ago
Jonathan G Rennison 2b8171093a Change Colour constructors to be constexpr 1 year ago
Jonathan G Rennison 95f3cf2a8e Make VideoDriver::GetAnimBuffer a non-virtual/inlinable function 1 year ago
Jonathan G Rennison 6fff633e81 Fix enum definitions for RoadTypeExtraFlags 1 year ago
Jonathan G Rennison 2f692a794f Blitter: Use 32 bit memset where available
Fix Blitter_40bppAnim::SetRect
1 year ago
Jonathan G Rennison 79509b76a6 Crashlog: Unix: Decode REG_ERR for SIGSEGV 1 year ago
Jonathan G Rennison cb0c8d5e38 Crashlog: Unix: Decode common si_code values for SIGSEGV 1 year ago
Jonathan G Rennison e676eb1202 Crashlog: Unix: Include REG_ERR in x86 register dump 1 year ago