Jonathan G Rennison
46f5fb9f25
Sprite cache: Allow caching only required subset of sprite zoom levels
...
Enable for blitters based on 32bpp_optimized or SSE
1 year ago
Jonathan G Rennison
785216db73
Sprite: Don't allocate sprite encode space for map-mode zoom levels
1 year ago
Jonathan G Rennison
d6f01988e3
Sprite cache: List total candidates in cache eviction debug message
1 year ago
Jonathan G Rennison
d5e0d8f81e
Blitter: Reduce mallocs, memsets in Blitter_32bppOptimized::Encode
1 year ago
Jonathan G Rennison
83d3fab599
TBTR: Autorefit button in depot window now also does template replacements
1 year ago
Jonathan G Rennison
b0331c84b3
TBTR: Refactor handling of vehicle start/stop state
1 year ago
Jonathan G Rennison
d7d9c05cbd
TBTR: Fix various refit issues in refit as incoming vehicle mode
...
Allow refits to fail in refit as incoming vehicle mode
Remove virtual train mode from CmdRefitVehicle
Fix refit as incoming for non-head parts being free
1 year ago
Jonathan G Rennison
64df35067a
TBTR: Handle setting unit direction separately from refits
1 year ago
Jonathan G Rennison
2cf95eea36
TBTR: Refactor train/template match function to return difference flags
1 year ago
Jonathan G Rennison
2b44d3302e
CommandCost: Change AllocSummaryMessage to std::string SummaryMessage
1 year ago
Jonathan G Rennison
b0538a00e0
Add setting for whether to allow converting town road to non-house types
...
See: 51e22617
1 year ago
Jonathan G Rennison
ff61b6d243
Fix crash in NewGRF parameters window (manual parameter mode)
...
See: https://github.com/OpenTTD/OpenTTD/issues/11215
1 year ago
Jonathan G Rennison
19835b51ee
Move StationCargoList and FlowStatMap out of GoodsEntry struct
...
Move them into a new GoodsEntryData struct referenced
using a std::unique_ptr from GoodsEntry.
The unique_ptr may be nullptr if the cargo list and flow stat map
are both empty (this is the case for unused cargoes).
This reduces GoodsEntry from 128 to 24 bytes,
and Station from 8680 to 2024 bytes,
(on Linux x86_64).
1 year ago
Jonathan G Rennison
cd2ab6430b
Use btree map for GRFParameterInfo value names
1 year ago
Jonathan G Rennison
615c42d357
Reserve vector size when loading station flow stats
1 year ago
Jonathan G Rennison
0f9f1f4280
Use btree map for _town_test_ratings
1 year ago
Jonathan G Rennison
2bc943d31a
Avoid std::set in script version checks
1 year ago
Jonathan G Rennison
1979fa9db1
Use btree set for _changed_storage_arrays
1 year ago
Jonathan G Rennison
53ef4536d9
Departures: Use btree map for scheduled dispatch maps
1 year ago
Jonathan G Rennison
66b5c615b7
Use btree map for GRF ID overrides
1 year ago
Jonathan G Rennison
e912cfc19d
Ring buffer: Use as backing for std::queue uses
1 year ago
Jonathan G Rennison
2296b92ea2
Use btree map for StationCargoAmountMap
1 year ago
Jonathan G Rennison
23ad010d70
Replace remaining uses of std::deque with ring buffers
...
Cargo packet lists and associated save/load
1 year ago
Jonathan G Rennison
b59a8dc21c
Ring buffer: Don't apply const when dereferencing iterators
1 year ago
Jonathan G Rennison
0c634edef5
Ring buffer: Add erase
1 year ago
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