Commit Graph

55538 Commits

Author SHA1 Message Date
Jonathan G Rennison
e958bdde9f Use ring buffers for train lookahead items and curves 2023-08-18 21:25:36 +01:00
Jonathan G Rennison
ebd375c247 Container: Add a self-resizing ring buffer container 2023-08-18 21:25:36 +01:00
Jonathan G Rennison
87911bdf47 Use bitmath builtins for FindLastBit 2023-08-18 13:38:39 +01:00
Jonathan G Rennison
c49651ae7b VarAction2: Use reserve and shrink_to_fit for DSG adjusts vector 2023-08-18 13:22:22 +01:00
Jonathan G Rennison
129691dcc7 Music: Defer probing for music driver until a music set is loaded 2023-08-18 13:22:22 +01:00
Jonathan G Rennison
8681f29155 Linux: Try to enable transparent huge pages for map allocation
Using single allocation for tile and tile-extended
2023-08-18 13:22:22 +01:00
Jonathan G Rennison
41fed27d0a Animated tile: Prefetch next item in map 2023-08-18 13:22:22 +01:00
Jonathan G Rennison
2212191b6c Saveload: Fix missing cast warnings for ship/RV path cache load 2023-08-17 15:17:54 +01:00
Jonathan G Rennison
9cf39b7a25 Prefetch next tile in tile loop iteration 2023-08-17 14:40:39 +01:00
Jonathan G Rennison
cc57ac0eff Add pre-check to auxiliary tile loop flooding test 2023-08-17 14:40:07 +01:00
Jonathan G Rennison
5a062bd5b2 Workflow: Add zstd to github release workflow 2023-08-17 14:18:36 +01:00
Jonathan G Rennison
6fa3620222 CMake: Change -ffile-prefix-map to be enabled by an option
Use in github release workflows
2023-08-17 13:59:48 +01:00
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
2023-08-16 19:04:34 +01:00
Jonathan G Rennison
6ccf3774b6 Fix missing tooltip texts 2023-08-16 18:55:44 +01:00
Jonathan G Rennison
fac21f3429 Fix missing/incorrect command error texts 2023-08-16 18:55:29 +01:00
Jonathan G Rennison
1e1ad66e90 CMake: Use -ffile-prefix-map to trim build directory from debug output 2023-08-16 16:33:11 +01:00
Jonathan G Rennison
92e632454e Change ship path cache to be optional and use a ring buffer 2023-08-16 15:20:24 +01:00
Jonathan G Rennison
2ae4e5bdc1 Change road vehicle path cache to be optional and use ring buffers
Show path cache in debug window
2023-08-16 15:17:56 +01:00
Jonathan G Rennison
1183476182 Allow custom signal styles to disable aspect-limited mode
By setting style_lookahead_extra_aspects to 255
2023-08-14 23:56:21 +01:00
Jonathan G Rennison
6ccbd7cce2 Saveload: Remove test pass from ScriptInstance::Save
Use SlConditionallySave to discard the saved data instead if there
was an error
2023-08-14 18:51:58 +01:00
Jonathan G Rennison
e3021de408 Saveload: Add helper to conditionally save template functor 2023-08-14 18:51:00 +01:00
Jonathan G Rennison
f378167951 Saveload: Change SlSaveToVector to be templated, add SlSaveToTempBuffer 2023-08-14 18:39:23 +01:00
Jonathan G Rennison
d0c6b7136d Saveload: Improve performance of script data save/load
Avoid unnecessarily using SlObject wrappers
2023-08-14 17:28:49 +01:00
Jonathan G Rennison
2b8171093a Change Colour constructors to be constexpr 2023-08-14 17:07:42 +01:00
Jonathan G Rennison
95f3cf2a8e Make VideoDriver::GetAnimBuffer a non-virtual/inlinable function 2023-08-14 16:53:21 +01:00
Jonathan G Rennison
6fff633e81 Fix enum definitions for RoadTypeExtraFlags 2023-08-14 16:06:51 +01:00
Jonathan G Rennison
2f692a794f Blitter: Use 32 bit memset where available
Fix Blitter_40bppAnim::SetRect
2023-08-14 15:58:00 +01:00
Jonathan G Rennison
79509b76a6 Crashlog: Unix: Decode REG_ERR for SIGSEGV 2023-08-14 15:58:00 +01:00
Jonathan G Rennison
cb0c8d5e38 Crashlog: Unix: Decode common si_code values for SIGSEGV 2023-08-14 11:24:05 +01:00
Jonathan G Rennison
e676eb1202 Crashlog: Unix: Include REG_ERR in x86 register dump 2023-08-14 11:24:05 +01:00
Jonathan G Rennison
1ec2ed937f Unix: Fix CMake detection and setup of sigaltstack 2023-08-14 00:20:04 +01:00
Jonathan G Rennison
644d2632f8 Move command log functions to their own header, fix missing include
See: #586
2023-08-11 20:00:13 +01:00
Jonathan G Rennison
3ec633e63c
Merge pull request #584 from H-Sachse/H-Sachse-change-desktop-launcher-app-name
Update openttd.desktop -> add "+JGRPP" to app name
2023-08-09 21:03:21 +01:00
Jonathan G Rennison
8a14d8c246 Add setting to also limit acceleration when using realistic braking 2023-08-09 00:16:28 +01:00
H-Sachse
56d8605caf
Update openttd.desktop -> change app name
Add JGRPP to application name to distinguish openttd+JGRPP from vanilla openttd
2023-08-08 22:20:57 +02:00
Jonathan G Rennison
3840a37999 Add console command to dump custom signal styles 2023-08-08 18:57:57 +01:00
Tyler Trahan
b012d1100c Fix #10334: Store separate newgrf-safe version of date_of_last_service. (#11124)
This value is not changed when the date cheat is used, which caused issues with changing properties based on service date.

Co-authored-by: Peter Nelson <peter1138@openttd.org>
(cherry picked from commit 9a602ff304)
2023-08-08 18:31:29 +01:00
Jonathan G Rennison
5bcc71f2c2 Fix incorrect industry NewGRF text ID mapping
In the case where the lower 16 bits of the internal string ID
was also a valid NewGRF string ID
2023-08-06 01:21:19 +01:00
Jonathan G Rennison
752b0bce47 ScriptList: Defer creation of sorter and values map until first used 2023-08-05 20:03:33 +01:00
Jonathan G Rennison
24a77e5b36 ScriptList: Update iterators when swapping lists
Safe btree iterators store a pointer to the parent container
2023-08-05 19:54:05 +01:00
Jonathan G Rennison
731a79b224 Fix truncation of dump_command_log console command output 2023-08-04 22:20:36 +01:00
Jonathan G Rennison
bdbc631e6c Script: Simplify implementation of ScriptList
Use btrees instead of set/map
Replace bucket mechanism for reverse mapping
Avoid redundant operations
2023-08-03 22:05:26 +01:00
Jonathan G Rennison
b68491f2fe Btree: Add copy operator for safe iterators 2023-08-03 20:53:33 +01:00
Jonathan G Rennison
a248495ee3 Version: Committing version data for tag: jgrpp-0.54.5 2023-08-02 20:29:07 +01:00
Jonathan G Rennison
3a07f92474 CMake: Fix findversion with git when build dir is not inside source dir 2023-08-02 20:28:51 +01:00
Jonathan G Rennison
38c57044ea Add debug special console command 2023-08-01 21:09:51 +01:00
Jonathan G Rennison
bab06f1bb4 CMake: Add option to explicitly disable LTO 2023-08-01 20:51:15 +01:00
Jonathan G Rennison
cc9daf4128 Use btree set in console list dirs 2023-08-01 19:11:13 +01:00
Jonathan G Rennison
4202afc0bc Use btree set for town names list 2023-08-01 19:09:30 +01:00
Jonathan G Rennison
2313679ee7 Simplify town name duplicate check in VerifyTownName 2023-08-01 19:08:30 +01:00