Commit Graph

272 Commits (8688840e24609a419eedcb8009fc6904d0cc7e4a)

Author SHA1 Message Date
Jonathan G Rennison e584ef7bba Move NewGRF analysis to separate files 2 years ago
Jonathan G Rennison 9ed5b6e65c Debug: Change sprite group indentation handling 2 years ago
Jonathan G Rennison 41f2e92f5c VarAction2: Add a NOOP operator 2 years ago
Jonathan G Rennison dbc55274e2 Debug: Show callback ID names in sprite dump 2 years ago
Jonathan G Rennison 9a4c31b0da VarAction2: Add last_value variants of JZ/JNZ ops 2 years ago
Jonathan G Rennison cbc6199542 VarAction2: Add a JNZ op analogous to JZ for OR ops 2 years ago
Jonathan G Rennison 759b00262e VarAction2: Allow more than one JZ to end on the same end block adjust 2 years ago
Jonathan G Rennison 229613b06a VarAction2: Resolve jumps in advance to avoid needing to track nesting 2 years ago
Jonathan G Rennison 387e646439 VarAction2: Add group flag for whether to run jump insert pass 2 years ago
Jonathan G Rennison 3714fad790 VarAction2: Fix jump insertion using mul with bool as last value 2 years ago
Jonathan G Rennison 13fcde9ea0 VarAction2: Add a JZ operation, use for ternary style mul masking 2 years ago
Jonathan G Rennison 77963c5e64 Debug: Add misc_debug bit for extra detail in sprite group dump 2 years ago
Jonathan G Rennison 65236bacc7 Debug: Fix crash when dumping null sprite group 2 years ago
Jonathan G Rennison 34cd547325 Debug: Show if action 2s have been modified by action 6 in debug window 2 years ago
Jonathan G Rennison 6214d0d20d VarAction2: Add an ABS opcode 2 years ago
Jonathan G Rennison 4553c22cee Debug: Move DeterministicSpriteGroupAdjust dumping to separate function 2 years ago
Jonathan G Rennison 45798fa533 Debug: Add scroll to sprite number to debug window 2 years ago
Jonathan G Rennison 65407210a6 VarAction2: Allow DSGA_OP_STO_NC to be used with DSGA_TYPE_EQ/NEQ 2 years ago
Jonathan G Rennison 86324e0fda Debug: Add mode to sprite dump window to show unoptimised 2 years ago
Jonathan G Rennison e41a5d2f63 VarAction2: Add flags to skip adjust if value is 0 or LSB set 2 years ago
Jonathan G Rennison 9b0a7ac85e Debug: Don't unnecessarily show numeric value of adjust operator 2 years ago
Jonathan G Rennison 7a61b5d820 VarAction2: Cache refit capacity callback results which depend only on cargo 2 years ago
Jonathan G Rennison a9ca89d0f8 VarAction2: Move cb_result_found to a flags var in AnalyseCallbackOperation 2 years ago
Jonathan G Rennison f5f48e89dc Debug: Show all sprite groups for vehicles in debug window 2 years ago
Jonathan G Rennison c3bc05f7b9 VarAction2: Add access to variable 1A to inline/fast path switch 2 years ago
Jonathan G Rennison cf640cc0cf Debug: Add sprite group collapsing to sprite group dump window 2 years ago
Jonathan G Rennison bbc1e28b24 VarAction2: Re-use allocated callback result sprite groups 2 years ago
Jonathan G Rennison db7f29b07c VarAction2: Deduplicate loads from expensive uncached variables
Currently only some vehicle variables
2 years ago
Jonathan G Rennison 263a87f5da VarAction2: Add adjust types for combined (in)equality with constant 2 years ago
Jonathan G Rennison c238bd5012 Debug: Add temp store highlighting to sprite group dump window
Add tooltip
2 years ago
Jonathan G Rennison 564d7e5029 Debug: Allow clicking to highlight group in sprite group dump window 2 years ago
Jonathan G Rennison 42e20d3d99 Industry: Determine which tiles in industry layouts are not animated
Do not set these as animated tiles for new industries
2 years ago
Jonathan G Rennison 304f88dc40 VarAction2: Fix callback result detection in AnalyseEngineCallbacks 2 years ago
Jonathan G Rennison 994dc683a2 VarAction2: Fix calculated result groups being incorrectly pruned 2 years ago
Jonathan G Rennison b74873a2fb Debug: Show industry production sprite group registers/values 2 years ago
Jonathan G Rennison d9358efc3d VarAction2: Handle zero adjusts simple case in callback analyser 2 years ago
Jonathan G Rennison c38d0d0458 Debug: Show tile layout sprite group register flags/values 2 years ago
Jonathan G Rennison 862d955320 Debug: Include var 7E procedures in sprite dump output 2 years ago
Jonathan G Rennison 145536e1fd VarAction2: Detect and replace reverse subtract via temp storage 2 years ago
Jonathan G Rennison 2360b3e93e VarAction2: Detect and replace scaled reads of train/RV/ship current speed 2 years ago
Jonathan G Rennison 90a2aa57fc VarAction2: Detect and replace signed relational comparisons 2 years ago
Jonathan G Rennison 74e1a40f7c VarAction2: Remove trivially resolvable deterministic sprite groups 2 years ago
Jonathan G Rennison 012d73ef34 VarAction2: Detect equality comparisons
Remove redundant equality with 0 comparison before ternary
2 years ago
Jonathan G Rennison 7283825638 VarAction2: Detect and replace ternary operator pattern 2 years ago
Jonathan G Rennison 502980ba61 Support railtype-dependant GRF train speed limits with realistic braking
See: #389
2 years ago
Jonathan G Rennison a3c003546b Implement extended NewGRF variable parameter support 2 years ago
Jonathan G Rennison 812933ffd4 Debug: Show names of remapped action 2 variables in sprite group dumper 2 years ago
Jonathan G Rennison 33dc6c9688 Add NewGRF VarAction2 variable remapping infrastructure 2 years ago
Jonathan G Rennison aaf5cd1091 Debug: Fix dumping of randomised sprite groups 3 years ago
Jonathan G Rennison da282c3ecc Merge branch 'master' into jgrpp-beta
# Conflicts:
#	.github/workflows/ci-build.yml
#	CMakeLists.txt
#	src/lang/finnish.txt
#	src/lang/french.txt
#	src/lang/korean.txt
#	src/lang/norwegian_bokmal.txt
#	src/lang/russian.txt
#	src/lang/spanish.txt
#	src/misc_gui.cpp
#	src/newgrf.cpp
3 years ago