Commit Graph

53083 Commits

Author SHA1 Message Date
Jonathan G Rennison
0409bd88e8 VarAction2: Simplify tracking of sprite group feature 2022-06-08 20:22:53 +01:00
Jonathan G Rennison
caebff85f5 VarAction2: Add helper functions for constant comparison adjust types 2022-06-08 19:40:36 +01:00
Jonathan G Rennison
249a20e47a VarAction2: Add helper functions for relational comparison ops 2022-06-08 19:22:00 +01:00
Jonathan G Rennison
31e96ff5e7 VarAction2: Add helper functions for anti-commutative ops 2022-06-08 19:15:56 +01:00
Jonathan G Rennison
5db30e559e VarAction2: Store substitutions can now handle inversions 2022-06-08 19:07:30 +01:00
Jonathan G Rennison
b95116e4fc VarAction2: Apply XOR bool inversion conversions after DSE 2022-06-08 18:06:38 +01:00
Jonathan G Rennison
2bbfa37730 VarAction2: Replace reversed commutative/sub op via temp storage in DSE pass 2022-06-08 17:53:16 +01:00
Jonathan G Rennison
9a40b9fbb9 Merge PR #390 into jgrpp 2022-06-08 17:38:08 +01:00
Jonathan G Rennison
6f7f80c6cf Merge branch 'master' into jgrpp 2022-06-08 17:37:08 +01:00
Jonathan G Rennison
45ac1a89aa VarAction2: Apply XOR with 1 bool logic inversion in more cases
Fixes case of DSE-delayed var substitutions
2022-06-08 02:34:54 +01:00
Jonathan G Rennison
45798fa533 Debug: Add scroll to sprite number to debug window 2022-06-08 01:57:10 +01:00
Jonathan G Rennison
1c1e6a1042 VarAction2: Prune deterministic sprite group children again after DSE 2022-06-08 00:05:22 +01:00
Jonathan G Rennison
6e398f9cec VarAction2: DSE now takes into account DSE results from child groups 2022-06-07 23:53:32 +01:00
Jonathan G Rennison
65407210a6 VarAction2: Allow DSGA_OP_STO_NC to be used with DSGA_TYPE_EQ/NEQ 2022-06-07 22:21:51 +01:00
Jonathan G Rennison
d3dce79d73 VarAction2: Substitute single-use vars through temp storage in DSE pass 2022-06-07 22:03:02 +01:00
Jonathan G Rennison
0310692acf VarAction2: Only substitute cheap vars through temp storage in 1st pass 2022-06-07 20:22:57 +01:00
Jonathan G Rennison
f54530b1b2 VarAction2: Add checks for vars 7B, 7C when getting previous single load 2022-06-07 19:53:42 +01:00
translators
0d3756818f Update: Translations from eints
korean: 1 change by telk5093
2022-06-07 18:48:01 +00:00
Jonathan G Rennison
a8c0e47dd8 VarAction2: If DSE results in a redundant load, remove it 2022-06-07 19:25:08 +01:00
Jonathan G Rennison
86324e0fda Debug: Add mode to sprite dump window to show unoptimised 2022-06-07 18:54:42 +01:00
Jonathan G Rennison
22e10462dc Debug: Redraw debug window content if line change moves scroll position 2022-06-07 18:32:46 +01:00
Jonathan G Rennison
a818157c57 Debug: Add button to duplicate debug window 2022-06-07 17:23:10 +01:00
Jonathan G Rennison
74681f70d9 VarAction2: Replace inverted OR of bools with AND where this makes sense 2022-06-06 23:13:09 +01:00
Jonathan G Rennison
e41a5d2f63 VarAction2: Add flags to skip adjust if value is 0 or LSB set 2022-06-06 23:04:45 +01:00
Jonathan G Rennison
236cbc4e83 VarAction2: Optimise SAR same as SHR on unsigned inputs 2022-06-06 22:47:53 +01:00
Jonathan G Rennison
9d04ebcc90 VarAction2: Remove operations which always do nothing when applied to 0 2022-06-06 22:20:16 +01:00
Jonathan G Rennison
26dd84f931 VarAction2: Optimise OR followed by XOR of same constant 2022-06-06 22:17:14 +01:00
Jonathan G Rennison
3aa0ccb97b VarAction2: Optimise OR which always produces 1 2022-06-06 22:17:14 +01:00
Jonathan G Rennison
9b0a7ac85e Debug: Don't unnecessarily show numeric value of adjust operator 2022-06-06 22:06:52 +01:00
Jonathan G Rennison
dc8465dc68 VarAction2: Shrink enum fields of DeterministicSpriteGroupAdjust 2022-06-06 21:38:12 +01:00
Jonathan G Rennison
2663cc3fdc VarAction2: Adjust masking in GetNearbyTileInformation 2022-06-06 21:10:54 +01:00
Jonathan G Rennison
4b7288902d VarAction2: Consider industry tile vars 0x60 to 0x62 to be expensive 2022-06-06 21:10:40 +01:00
Jonathan G Rennison
3a5902ff77 VarAction2: Reduce cost of RecursiveDisallowDSEForProcedure
Fix disallowing DSE also disallowing store simplification
2022-06-06 20:09:48 +01:00
Jonathan G Rennison
894c8d8b5e NewGRF: Shrink various flags/enum fields 2022-06-06 20:01:25 +01:00
translators
8cdf303e72 Update: Translations from eints
indonesian: 30 changes by indrabagus
2022-06-06 18:49:24 +00:00
Jonathan G Rennison
c342b4219b NewGRF: Use per-GRF text ID map in GetGRFStringID 2022-06-06 19:34:22 +01:00
Jonathan G Rennison
7a61b5d820 VarAction2: Cache refit capacity callback results which depend only on cargo 2022-06-06 18:34:30 +01:00
Jonathan G Rennison
fcd9137a9f Change OTTD_PRINTFHEX... defines to uppercase 2022-06-06 17:54:58 +01:00
Jonathan G Rennison
a9ca89d0f8 VarAction2: Move cb_result_found to a flags var in AnalyseCallbackOperation 2022-06-06 17:44:47 +01:00
Jonathan G Rennison
f5f48e89dc Debug: Show all sprite groups for vehicles in debug window 2022-06-06 02:07:21 +01:00
Jonathan G Rennison
6825ea5e79 Debug: Show name of root sprite group shown in vehicle debug window 2022-06-06 01:33:27 +01:00
Jonathan G Rennison
c3bc05f7b9 VarAction2: Add access to variable 1A to inline/fast path switch 2022-06-06 01:27:53 +01:00
Jonathan G Rennison
3ea1e27fdd Merge branch 'master' into jgrpp
# Conflicts:
#	src/lang/german.txt
#	src/lang/korean.txt
#	src/lang/spanish_MX.txt
#	src/lang/traditional_chinese.txt
#	src/script/api/script_airport.cpp
#	src/script/api/script_rail.cpp
2022-06-06 01:05:00 +01:00
Jonathan G Rennison
b2d8f3ce43 Add setting to disable water animation depending on zoom level 2022-06-06 00:18:08 +01:00
Jonathan G Rennison
5055167c44 Add support for enum client settings 2022-06-06 00:18:08 +01:00
Jonathan G Rennison
cdbc758dba Documentation: Fix spelling error and redundant text 2022-06-06 00:18:08 +01:00
Jonathan G Rennison
1518e4621b Fix unused function warning in crash logger on Emscripten 2022-06-05 16:10:15 +01:00
Jonathan G Rennison
f05b5163f7 Fix narrowing converison warning 2022-06-05 16:09:50 +01:00
Jonathan G Rennison
13bb4fc47b Documentation: Update low level changes document 2022-06-05 15:54:22 +01:00
Jonathan G Rennison
cf640cc0cf Debug: Add sprite group collapsing to sprite group dump window 2022-06-04 21:08:35 +01:00