Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
486 commits
Select commit Hold shift + click to select a range
c0e881c
reimplement: SHC_3BB0A8C1_0x004FB9E0 77.81% LTCG, regalloc differs
gynt Oct 6, 2026
27067fe
reimplement: SHC_3BB0A8C1_0x004F6CF0 100.00% Reimplemented
gynt Oct 6, 2026
943b9ff
reimplement: SHC_3BB0A8C1_0x004F8300 99.27% global instance access
gynt Oct 6, 2026
11b2908
reimplement: SHC_3BB0A8C1_0x004FB0C0 62.37% LTCG, rotation hoisted
gynt Oct 6, 2026
1a10bd9
reimplement: SHC_3BB0A8C1_0x00512100 88.99% global instance access
gynt Oct 6, 2026
1159e27
reimplement: SHC_3BB0A8C1_0x004F9590 62.45% natural x/y, regalloc dif…
gynt Oct 6, 2026
69d0b10
reimplement: SHC_3BB0A8C1_0x004F9F00 82.35% global instance access
gynt Oct 6, 2026
72a65de
reimplement: SHC_3BB0A8C1_0x004F9980 100.00% Reimplemented
gynt Oct 6, 2026
e263464
reimplement: SHC_3BB0A8C1_0x004FC9E0 66.70% signed layer reads
gynt Oct 6, 2026
22d5976
reimplement: SHC_3BB0A8C1_0x00509180 26.49% signed layer reads
gynt Oct 6, 2026
cef3357
reimplement: SHC_3BB0A8C1_0x004FDB00 63.10% signed layer reads
gynt Oct 6, 2026
5c5275e
reimplement: SHC_3BB0A8C1_0x005114C0 100.00% Reimplemented
gynt Oct 6, 2026
fdebf03
reimplement: SHC_3BB0A8C1_0x005017C0 48.98% global instance access
gynt Oct 6, 2026
1fb5af9
reimplement: SHC_3BB0A8C1_0x00502110 43.30% asm macro, regalloc differs
gynt Oct 6, 2026
9e3adce
reimplement: SHC_3BB0A8C1_0x00502680 50.00% asm macro, cold arms inline
gynt Oct 6, 2026
04a3f7d
status: TileMapState functions that match through /GL alone
gynt Oct 6, 2026
93ba4cd
Merge remote-tracking branch 'origin/main' into reimpl/TileMapState
gynt Oct 22, 2026
41e98d0
fix(TileMapState): make the branch build and measure against current …
gynt Oct 23, 2026
3b77a86
reimplement: SHC_3BB0A8C1_0x005037B0 43.32% Style pass, asm differs
gynt Oct 23, 2026
26c2c4e
reimplement: SHC_3BB0A8C1_0x004FAAB0 59.34% Style pass, asm differs
gynt Oct 23, 2026
34d8062
reimplement: SHC_3BB0A8C1_0x00507BD0 59.24% Style pass, asm differs
gynt Oct 23, 2026
6effe8b
reimplement: SHC_3BB0A8C1_0x00507E00 59.24% Style pass, asm differs
gynt Oct 23, 2026
e4b74bc
reimplement: SHC_3BB0A8C1_0x00504F10 30.16% Style pass, asm differs
gynt Oct 23, 2026
0f8ff75
reimplement: SHC_3BB0A8C1_0x00509180 26.26% Style pass, asm differs
gynt Oct 23, 2026
3727746
reimplement: SHC_3BB0A8C1_0x00515740 69.17% was uncompilable; rebuilt…
gynt Oct 23, 2026
7b0454b
reimplement: SHC_3BB0A8C1_0x005076A0 54.70% was uncompilable; dropped…
gynt Oct 23, 2026
d4dc6ba
reimplement: SHC_3BB0A8C1_0x005162D0 41.94% was uncompilable; signatu…
gynt Oct 23, 2026
198fb08
reimplement: SHC_3BB0A8C1_0x005154D0 83.95% was uncompilable; 16-bit …
gynt Oct 23, 2026
bd91b71
reimplement: SHC_3BB0A8C1_0x00514DE0 95.24% was uncompilable; rebuilt…
gynt Oct 23, 2026
c9121fa
reimplement: SHC_3BB0A8C1_0x005151C0 73.51% was uncompilable; 16-bit …
gynt Oct 23, 2026
e6e2922
reimplement: SHC_3BB0A8C1_0x00514F30 87.71% was uncompilable; 16-bit …
gynt Oct 23, 2026
d8e118b
reimplement: SHC_3BB0A8C1_0x004FC810 81.75% signed height compares, w…
gynt Oct 23, 2026
23c5744
reimplement: SHC_3BB0A8C1_0x004FB4D0 43.38% signed height compares, w…
gynt Oct 23, 2026
4bf9464
reimplement: SHC_3BB0A8C1_0x004F70F0 48.00% signed height compare
gynt Oct 23, 2026
4a2c968
reimplement: SHC_3BB0A8C1_0x004FB770 85.54% int locals for short fiel…
gynt Oct 23, 2026
db542ba
reimplement: SHC_3BB0A8C1_0x004FAB70 80.95% int local for short field…
gynt Oct 23, 2026
1ab54ef
reimplement: SHC_3BB0A8C1_0x00508760 78.18% int locals for short fiel…
gynt Oct 23, 2026
c7a87d8
reimplement: SHC_3BB0A8C1_0x00508EC0 36.60% int local for short field…
gynt Oct 23, 2026
d248e2a
reimplement: SHC_3BB0A8C1_0x00517790 48.01% int locals for short fiel…
gynt Oct 23, 2026
6a9ee68
reimplement: SHC_3BB0A8C1_0x00500980 81.78% signed layer read + int l…
gynt Oct 23, 2026
5f3e2e8
style(TileMapState): apply the style guide across the branch's sources
gynt Nov 1, 2026
fc7b67f
Adopt the Wilps Map/TileMapState bodies that measure better here (#284)
gynt Nov 2, 2026
99186f0
Merge origin/main into reimpl/TileMapState
gynt Nov 6, 2026
3ecad91
types: re-apply TileMapState branch header corrections on main's headers
gynt Nov 7, 2026
af6f27f
fix(TileMapState): build against main's renamed fields and globals
gynt Nov 7, 2026
a62ebe3
build: LTCG for the TileMapState footprint callers of getBuildingSize…
gynt Nov 7, 2026
2b327bc
status(TileMapState): record the match measured after the main merge
gynt Nov 7, 2026
b7523a0
reimplement: SHC_3BB0A8C1_0x00515F40 100.00% Reimplemented
gynt Nov 7, 2026
7205a9d
reimplement: SHC_3BB0A8C1_0x00500500 100.00% Reimplemented
gynt Nov 7, 2026
199ccc8
reimplement: SHC_3BB0A8C1_0x004FB770 100.00% Reimplemented
gynt Nov 7, 2026
393570f
reimplement: SHC_3BB0A8C1_0x005037B0 45.43% fix pond enemy checks; re…
gynt Nov 7, 2026
56d7352
reimplement: SHC_3BB0A8C1_0x004FAC70 100.00% Reimplemented
gynt Nov 7, 2026
b9d98b0
reimplement: SHC_3BB0A8C1_0x004FAB70 100.00% Reimplemented
gynt Nov 7, 2026
d01d16c
reimplement: SHC_3BB0A8C1_0x004FAD70 100.00% Reimplemented
gynt Nov 7, 2026
1b7410a
reimplement: SHC_3BB0A8C1_0x00515A20 95.63% GL ecx
gynt Nov 7, 2026
b440dc3
reimplement: SHC_3BB0A8C1_0x004FC340 100.00% Reimplemented
gynt Nov 7, 2026
8edea12
reimplement: SHC_3BB0A8C1_0x00500B50 100.00% Reimplemented
gynt Nov 7, 2026
4b3379f
reimplement: SHC_3BB0A8C1_0x004FC0B0 95.89% Style pass, asm differs
gynt Nov 7, 2026
d3aa370
reimplement: SHC_3BB0A8C1_0x004F7A80 36.28% Style pass, asm differs
gynt Nov 7, 2026
fd30ad4
reimplement: SHC_3BB0A8C1_0x004FC650 63.72% Style pass, asm differs
gynt Nov 7, 2026
8c0427c
reimplement: SHC_3BB0A8C1_0x005000E0 100.00% Reimplemented
gynt Nov 7, 2026
0cdeb5d
reimplement: SHC_3BB0A8C1_0x005110B0 100.00% Reimplemented
gynt Nov 7, 2026
29202b1
reimplement: SHC_3BB0A8C1_0x00515C80 62.82% Style pass, asm differs
gynt Nov 7, 2026
93611a5
reimplement: SHC_3BB0A8C1_0x00508EC0 58.67% Style pass, asm differs
gynt Nov 7, 2026
551033b
reimplement: SHC_3BB0A8C1_0x00504A30 70.31% Style pass, asm differs
gynt Nov 7, 2026
7e7080d
reimplement: SHC_3BB0A8C1_0x005111D0 50.36% Style pass, asm differs
gynt Nov 7, 2026
11eebba
reimplement: SHC_3BB0A8C1_0x00500980 100.00% Reimplemented
gynt Nov 7, 2026
6ba9649
reimplement: SHC_3BB0A8C1_0x004FC490 75.54% Style pass, asm differs
gynt Nov 7, 2026
febcac3
reimplement: SHC_3BB0A8C1_0x004FFF10 63.20% Style pass, asm differs
gynt Nov 7, 2026
52d5d72
reimplement: SHC_3BB0A8C1_0x004FFBA0 62.72% Style pass, asm differs
gynt Nov 7, 2026
7496167
reimplement: SHC_3BB0A8C1_0x004F8AC0 100.00% Reimplemented
gynt Nov 7, 2026
255198d
reimplement: SHC_3BB0A8C1_0x00501CD0 100.00% Reimplemented
gynt Nov 7, 2026
55187a5
reimplement: SHC_3BB0A8C1_0x004F9A60 78.59% fix signed height limit
gynt Nov 7, 2026
4c2c200
reimplement: SHC_3BB0A8C1_0x004FBE70 90.97% Style pass, asm differs
gynt Nov 7, 2026
cf5064c
reimplement: SHC_3BB0A8C1_0x005024F0 55.75% Style pass, asm differs
gynt Nov 7, 2026
f55daea
reimplement: SHC_3BB0A8C1_0x004F8840 100.00% Reimplemented
gynt Nov 7, 2026
1f11ba7
reimplement: SHC_3BB0A8C1_0x004F86D0 100.00% Reimplemented
gynt Nov 7, 2026
a64642f
reimplement: SHC_3BB0A8C1_0x005162D0 81.30% Style pass, asm differs
gynt Nov 7, 2026
29f03ce
reimplement: SHC_3BB0A8C1_0x005034A0 100.00% Reimplemented
gynt Nov 7, 2026
222ccdc
reimplement: SHC_3BB0A8C1_0x00507BD0 76.19% x param typed int*; regalloc
gynt Nov 7, 2026
a1420b3
reimplement: SHC_3BB0A8C1_0x005151C0 99.76% GL ecx
gynt Nov 7, 2026
ef65935
reimplement: SHC_3BB0A8C1_0x005146D0 87.94% GL ecx reloads
gynt Nov 7, 2026
ef405b5
reimplement: SHC_3BB0A8C1_0x00514520 97.96% word load; GL ecx
gynt Nov 7, 2026
9ed6dd1
reimplement: SHC_3BB0A8C1_0x00508030 85.52% fix campfire id; GL ecx
gynt Nov 7, 2026
b30179b
reimplement: SHC_3BB0A8C1_0x005116E0 98.91% Style pass, asm differs
gynt Nov 7, 2026
a84538f
reimplement: SHC_3BB0A8C1_0x004FB4D0 87.32% Style pass, asm differs
gynt Nov 7, 2026
fab56b2
reimplement: SHC_3BB0A8C1_0x00506E10 98.20% word load of type; GL
gynt Nov 7, 2026
7212888
reimplement: SHC_3BB0A8C1_0x00506D40 97.60% word load of type; GL
gynt Nov 7, 2026
5b83ab6
reimplement: SHC_3BB0A8C1_0x00508540 88.81% Style pass, asm differs
gynt Nov 7, 2026
ddc04ed
reimplement: SHC_3BB0A8C1_0x00515DA0 64.73% Style pass, asm differs
gynt Nov 7, 2026
3de189e
reimplement: SHC_3BB0A8C1_0x00507E00 76.19% x param typed int*; regalloc
gynt Nov 7, 2026
cd3dc58
reimplement: SHC_3BB0A8C1_0x00502F30 87.07% Style pass, asm differs
gynt Nov 7, 2026
9a5ddc7
reimplement: SHC_3BB0A8C1_0x005160C0 67.99% Style pass, asm differs
gynt Nov 7, 2026
4ed5539
reimplement: SHC_3BB0A8C1_0x00512450 96.67% GL ecx
gynt Nov 7, 2026
78f77f0
reimplement: SHC_3BB0A8C1_0x00516B80 79.03% Style pass, asm differs
gynt Nov 7, 2026
d756cfd
reimplement: SHC_3BB0A8C1_0x00517790 63.47% fix wall flag mask; regalloc
gynt Nov 7, 2026
ee21c71
reimplement: SHC_3BB0A8C1_0x004FC280 90.74% Style pass, asm differs
gynt Nov 7, 2026
949a059
reimplement: SHC_3BB0A8C1_0x004F9000 85.53% Style pass, asm differs
gynt Nov 7, 2026
06a7881
reimplement: SHC_3BB0A8C1_0x005113F0 100.00% Reimplemented
gynt Nov 7, 2026
1493e40
reimplement: SHC_3BB0A8C1_0x00508A00 91.78% Style pass, asm differs
gynt Nov 7, 2026
f4e2138
reimplement: SHC_3BB0A8C1_0x004F8BD0 51.72% Style pass, asm differs
gynt Nov 7, 2026
3910b44
reimplement: SHC_3BB0A8C1_0x00507350 100.00% Reimplemented
gynt Nov 7, 2026
bc8bf4b
reimplement: SHC_3BB0A8C1_0x004FF990 77.20% Style pass, asm differs
gynt Nov 7, 2026
86cc849
reimplement: SHC_3BB0A8C1_0x004FF870 85.16% Style pass, asm differs
gynt Nov 7, 2026
f9d647a
reimplement: SHC_3BB0A8C1_0x00504F10 31.04% Style pass, asm differs
gynt Nov 7, 2026
0461330
reimplement: SHC_3BB0A8C1_0x004FB0C0 70.24% Style pass, asm differs
gynt Nov 7, 2026
0c661ea
reimplement: SHC_3BB0A8C1_0x00512940 92.53% asm macro via this, resol…
gynt Nov 7, 2026
de949c5
reimplement: SHC_3BB0A8C1_0x005003D0 91.36% Style pass, asm differs
gynt Nov 7, 2026
18449dc
reimplement: SHC_3BB0A8C1_0x00512100 88.99% Style pass, asm differs
gynt Nov 7, 2026
e4ff4e9
reimplement: SHC_3BB0A8C1_0x004F6B20 48.35% Style pass, asm differs
gynt Nov 7, 2026
3b1c702
reimplement: SHC_3BB0A8C1_0x004F9F00 100.00% Reimplemented
gynt Nov 7, 2026
038e935
reimplement: SHC_3BB0A8C1_0x004FB3F0 87.88% Style pass, asm differs
gynt Nov 7, 2026
05da519
reimplement: SHC_3BB0A8C1_0x004F6FD0 100.00% Reimplemented
gynt Nov 7, 2026
33d9c76
reimplement: SHC_3BB0A8C1_0x00506370 57.18% Style pass, asm differs
gynt Nov 7, 2026
fe161d1
reimplement: SHC_3BB0A8C1_0x004FC9E0 87.51% asm macro via this, resol…
gynt Nov 7, 2026
c59c0c5
reimplement: SHC_3BB0A8C1_0x00509180 90.55% asm macros via this, not …
gynt Nov 7, 2026
abb57b8
reimplement: SHC_3BB0A8C1_0x004F70F0 90.60% Style pass, asm differs
gynt Nov 7, 2026
5ea2e49
reimplement: SHC_3BB0A8C1_0x004FDB00 85.30% asm macro via this, resol…
gynt Nov 7, 2026
cc6c0d6
reimplement: SHC_3BB0A8C1_0x004FF080 85.87% Style pass, asm differs
gynt Nov 7, 2026
85fe93f
reimplement: SHC_3BB0A8C1_0x00501A20 100.00% Reimplemented
gynt Nov 7, 2026
6d28117
reimplement: SHC_3BB0A8C1_0x005017C0 52.07% Style pass, asm differs
gynt Nov 7, 2026
738da52
reimplement: SHC_3BB0A8C1_0x00502110 48.26% Style pass, asm differs
gynt Nov 7, 2026
124ca07
reimplement: SHC_3BB0A8C1_0x00502680 62.57% Style pass, asm differs
gynt Nov 7, 2026
30193e8
reimplement: SHC_3BB0A8C1_0x004F9DF0 100.00% Reimplemented
gynt Nov 7, 2026
a9a2a3e
reimplement: SHC_3BB0A8C1_0x005029D0 38.24% Style pass, asm differs
gynt Nov 7, 2026
06c712a
reimplement: SHC_3BB0A8C1_0x004F94A0 80.99% Style pass, asm differs
gynt Nov 7, 2026
f18e683
build: LTCG for TileMapState wall, keep and map-setup callers
gynt Nov 7, 2026
42244a5
reimplement(TileMapState): neighbour-flag asm macros through the glob…
gynt Nov 7, 2026
391fb56
types: TileMapState::MacroLayer is short
gynt Nov 7, 2026
a920dc3
types: TileMapState building height limits are int
gynt Nov 7, 2026
9a0013c
types: Moat::fillProgress is char
gynt Nov 7, 2026
d6b3471
types: Rock::x and Rock::y are short
gynt Nov 7, 2026
d1ddce9
types: PlayerData::unkHopFarmVariation is int
gynt Nov 7, 2026
3854882
types: placeEngineersguild/placeTunnelersguild take x as uint, not int*
gynt Nov 7, 2026
b6f867a
types: placeApplefarm takes the average height as int, not int*
gynt Nov 7, 2026
a22d902
types: placeDairyfarm takes the variation as int, not int*
gynt Nov 7, 2026
ee60bcd
types: placeDrawbridge takes the orientation as int, not int*
gynt Nov 7, 2026
02b3568
types: placeBarracks takes y as uint, not int*
gynt Nov 7, 2026
522dc5d
types: renderWallDragPreview takes the mapper command as short
gynt Nov 7, 2026
1b0454c
types: placeSiegeTent/placeSiegetowerPlaced take the building type as…
gynt Nov 7, 2026
97e384c
types: validateWallPlacementAtTile takes the mapper command as short
gynt Nov 7, 2026
cc1d6cc
types: useTerrainHeightBrush takes the mapper as short
gynt Nov 7, 2026
a50e8f7
reimplement(TileMapState): setupAllMapSections calls DoNothing with t…
gynt Nov 7, 2026
2a24487
style(TileMapState): drop casts the corrected header types made redun…
gynt Nov 7, 2026
1637855
status(TileMapState): record the match after the asm macro and type f…
gynt Nov 7, 2026
781a45c
reimplement(TileMapState): updateGfxLayer back on the this-based neig…
gynt Nov 7, 2026
c6a9372
types: setConstructionGFXLayerBasedOnPlacementChecks returns void
gynt Nov 7, 2026
d035401
types: type the gate tables in TerrainDefinedData
gynt Nov 7, 2026
6a1067b
Merge origin/main into reimpl/TileMapState
gynt Nov 7, 2026
9fcc0aa
Merge origin/main into reimpl/TileMapState
gynt Nov 11, 2026
94e4e1f
Merge reimpl/TileMapState-100 into reimpl/TileMapState
gynt Nov 11, 2026
877c793
style(TileMapState): compound assignments and redundant usings in the…
gynt Nov 11, 2026
a3d8f61
tools: quick_gl.py, and quick_diff on a build list that starts with a…
gynt Nov 11, 2026
c895bde
types: placeKillingPit takes the building type as short
gynt Nov 11, 2026
8615343
build: LTCG for setMiscDisplayLayer and the place* callers that keep ecx
gynt Nov 11, 2026
10ff460
reimplement(TileMapState): restyle the remaining 78 sources and raise…
gynt Nov 11, 2026
ba2c7b0
types: setBitFlagBasedOnWallTowerGatehouseOrKeep returns uint
gynt Nov 11, 2026
e5b97e6
reimplement(TileMapState): neighbour-flag asm macros jump near, as th…
gynt Nov 11, 2026
43718fd
build: LTCG for upgradeTowerLogicLayer, prepareMap and the placement …
gynt Nov 11, 2026
3aaa221
reimplement(TileMapState): second agent round on the remaining sources
gynt Nov 11, 2026
a4489fb
types: validateWallBuildPath and setConstructionGFXLayerBasedOnPlacem…
gynt Nov 11, 2026
5064e90
Merge remote-tracking branch 'origin/main' into reimpl/TileMapState-1…
gynt Nov 12, 2026
b5bd6ce
reimplement(TileMapState): name the sprite variation array in setCons…
gynt Nov 12, 2026
be9f718
Merge remote-tracking branch 'origin/reimpl/TileMapState-100' into re…
gynt Nov 12, 2026
58050f4
Merge remote-tracking branch 'origin/reimpl/TileMapState-100' into re…
gynt Nov 12, 2026
9aa1023
style(TileMapState): use main's BuildingFailReasonEnum names and char…
gynt Nov 12, 2026
14db1d3
Merge remote-tracking branch 'origin/reimpl/TileMapState-100' into re…
gynt Nov 14, 2026
e8e4593
reimplement: SHC_3BB0A8C1_0x004FA2D0 100.00% Reimplemented
gynt Nov 14, 2026
cdabe8e
reimplement: SHC_3BB0A8C1_0x004FC0B0 100.00% Reimplemented
gynt Nov 14, 2026
1ad8391
reimplement: SHC_3BB0A8C1_0x004F7A80 100.00% Reimplemented
gynt Nov 14, 2026
28d1d8b
reimplement: SHC_3BB0A8C1_0x00508EC0 82.89% entry scheduling, arg regs
gynt Nov 14, 2026
ba76445
reimplement: SHC_3BB0A8C1_0x00504A30 94.17% register allocation
gynt Nov 14, 2026
0e9d729
reimplement: SHC_3BB0A8C1_0x004FFF10 89.31% this reg tie, tail merge
gynt Nov 14, 2026
d9ed259
reimplement: SHC_3BB0A8C1_0x004FFBA0 100.00% Reimplemented
gynt Nov 14, 2026
9520be3
reimplement: SHC_3BB0A8C1_0x005146D0 100.00% Reimplemented
gynt Nov 14, 2026
9b1f020
reimplement: SHC_3BB0A8C1_0x00508030 96.95% stack slot allocation
gynt Nov 14, 2026
a74283b
reimplement: SHC_3BB0A8C1_0x00508540 96.27% address operand order
gynt Nov 14, 2026
f38addc
reimplement: SHC_3BB0A8C1_0x00515DA0 83.25% register allocation
gynt Nov 14, 2026
fd5ddad
reimplement: SHC_3BB0A8C1_0x005160C0 97.30% one lea operand
gynt Nov 14, 2026
bd52fb4
reimplement: SHC_3BB0A8C1_0x00516B80 79.28% register allocation
gynt Nov 14, 2026
1ec9b66
reimplement: SHC_3BB0A8C1_0x00517790 96.12% scheduling, byte movsx
gynt Nov 14, 2026
c1f66d7
reimplement: SHC_3BB0A8C1_0x004FC280 100.00% Reimplemented
gynt Nov 14, 2026
ee51fe6
reimplement: SHC_3BB0A8C1_0x00501D90 91.48% scheduler, byte compare
gynt Nov 14, 2026
c0c8fc0
reimplement: SHC_3BB0A8C1_0x00508A00 94.48% brush loop register order
gynt Nov 14, 2026
c23e6d2
reimplement: SHC_3BB0A8C1_0x004F8BD0 93.93% stack slot tie
gynt Nov 14, 2026
f90dd92
reimplement: SHC_3BB0A8C1_0x004FF990 100.00% Reimplemented
gynt Nov 14, 2026
a73e3b1
reimplement: SHC_3BB0A8C1_0x00504F10 77.53% frame slot, register swaps
gynt Nov 14, 2026
5221221
reimplement: SHC_3BB0A8C1_0x005003D0 100.00% Reimplemented
gynt Nov 14, 2026
4c731c6
reimplement: SHC_3BB0A8C1_0x004F9590 87.65% register allocation
gynt Nov 14, 2026
92a8cd3
reimplement: SHC_3BB0A8C1_0x004FB3F0 100.00% Reimplemented
gynt Nov 14, 2026
efd3ca5
reimplement: SHC_3BB0A8C1_0x00509180 95.65% doubled asm jmp
gynt Nov 14, 2026
c453e24
reimplement: SHC_3BB0A8C1_0x004FF080 100.00% Reimplemented
gynt Nov 14, 2026
1e28a99
reimplement: SHC_3BB0A8C1_0x005017C0 87.65% entry scheduling, arg regs
gynt Nov 14, 2026
3352ce3
reimplement: SHC_3BB0A8C1_0x00502110 100.00% Reimplemented
gynt Nov 14, 2026
e235abc
reimplement: SHC_3BB0A8C1_0x00502680 75.20% code motion of mapper arms
gynt Nov 14, 2026
da499af
reimplement: SHC_3BB0A8C1_0x005029D0 78.49% register allocation
gynt Nov 14, 2026
fec795f
build: compile getRubbleGraphicStageForDamageLevel with /GL
gynt Nov 14, 2026
25579de
tools: compiler-internals probes honour QD_OUT
gynt Nov 14, 2026
1010ac1
build: compile returnOwnedMoatAtTile with /GL
gynt Nov 14, 2026
0f6e1d0
reimplement: SHC_3BB0A8C1_0x005037B0 75.78% register allocation
gynt Nov 14, 2026
289e33b
reimplement: SHC_3BB0A8C1_0x00515C80 100.00% Reimplemented
gynt Nov 14, 2026
4fd3d8d
reimplement: SHC_3BB0A8C1_0x00508EC0 82.89% register allocation
gynt Nov 14, 2026
99ca3aa
reimplement: SHC_3BB0A8C1_0x005154D0 100.00% Reimplemented
gynt Nov 14, 2026
df9100e
reimplement: SHC_3BB0A8C1_0x005034A0 92.41% parity copies not merged
gynt Nov 14, 2026
f9dbc7e
reimplement: SHC_3BB0A8C1_0x005116E0 100.00% Reimplemented
gynt Nov 14, 2026
ac4840d
reimplement: SHC_3BB0A8C1_0x00508540 97.76% address operand order
gynt Nov 14, 2026
ca4d70b
reimplement: SHC_3BB0A8C1_0x00514F30 100.00% Reimplemented
gynt Nov 14, 2026
9c48f7c
reimplement: SHC_3BB0A8C1_0x00501D90 100.00% Reimplemented
gynt Nov 14, 2026
0008201
reimplement: SHC_3BB0A8C1_0x004FB9E0 98.72% address operand order
gynt Nov 14, 2026
e53dffb
reimplement: SHC_3BB0A8C1_0x004FB0C0 100.00% Reimplemented
gynt Nov 14, 2026
2027e89
reimplement: SHC_3BB0A8C1_0x004F9590 97.81% register allocation
gynt Nov 14, 2026
3023f1f
reimplement: SHC_3BB0A8C1_0x004F6B20 97.78% register allocation
gynt Nov 14, 2026
e1f9a25
reimplement: SHC_3BB0A8C1_0x00509180 95.66% near-jz macro jump form
gynt Nov 14, 2026
e1798f3
reimplement: SHC_3BB0A8C1_0x005037B0 93.37% fix gatehouse tile x; reg…
gynt Nov 14, 2026
c2125b5
reimplement: SHC_3BB0A8C1_0x00508EC0 100.00% Reimplemented
gynt Nov 14, 2026
78eabf2
reimplement: SHC_3BB0A8C1_0x00508030 97.96% imul register naming
gynt Nov 14, 2026
786a2f2
reimplement: SHC_3BB0A8C1_0x00508540 99.25% jl loop end needs unroll
gynt Nov 14, 2026
ee588f6
reimplement: SHC_3BB0A8C1_0x00515DA0 98.08% register allocation
gynt Nov 14, 2026
6db3a80
reimplement: SHC_3BB0A8C1_0x005160C0 100.00% Reimplemented
gynt Nov 14, 2026
9f39c4b
reimplement: SHC_3BB0A8C1_0x00516B80 80.72% register allocation
gynt Nov 14, 2026
44983bc
reimplement: SHC_3BB0A8C1_0x00517790 99.86% one store order
gynt Nov 14, 2026
127d9ea
reimplement: SHC_3BB0A8C1_0x00508A00 100.00% Reimplemented
gynt Nov 14, 2026
4b95a9c
reimplement: SHC_3BB0A8C1_0x004F8BD0 94.29% stack slot tie order
gynt Nov 14, 2026
da4da03
reimplement: SHC_3BB0A8C1_0x004FB9E0 100.00% Reimplemented
gynt Nov 14, 2026
6d8310e
reimplement: SHC_3BB0A8C1_0x004F9590 100.00% Reimplemented
gynt Nov 14, 2026
c77f604
reimplement: SHC_3BB0A8C1_0x004F70F0 100.00% Reimplemented
gynt Nov 14, 2026
9386cc5
reimplement: SHC_3BB0A8C1_0x005017C0 91.50% late x load
gynt Nov 14, 2026
a32b7c0
types: declare getTotalHeightAtTile2, the linker-folded twin of getTo…
gynt Nov 14, 2026
37a928f
reimplement: SHC_3BB0A8C1_0x004FFF10 100.00% Reimplemented
gynt Nov 14, 2026
6229ec6
types: placeApplefarm buildingType as BuildingTypeShort
gynt Nov 14, 2026
4c9702e
reimplement: SHC_3BB0A8C1_0x00515740 100.00% Reimplemented
gynt Nov 14, 2026
6f51a46
reimplement: SHC_3BB0A8C1_0x005034A0 100.00% Reimplemented
gynt Nov 14, 2026
bf497c5
reimplement: SHC_3BB0A8C1_0x00516B80 88.79% owner/playerID register; …
gynt Nov 14, 2026
3f749df
reimplement: SHC_3BB0A8C1_0x004F8BD0 100.00% Reimplemented
gynt Nov 14, 2026
c4c07b0
reimplement: SHC_3BB0A8C1_0x00504F10 77.98% register allocation
gynt Nov 14, 2026
6563c30
reimplement: SHC_3BB0A8C1_0x004F6B20 100.00% Reimplemented
gynt Nov 14, 2026
7cb9424
reimplement: SHC_3BB0A8C1_0x005017C0 95.01% loop-2 brushY register
gynt Nov 14, 2026
67429bb
reimplement: SHC_3BB0A8C1_0x00502680 75.82% arm block order
gynt Nov 14, 2026
740a0d5
reimplement: SHC_3BB0A8C1_0x005029D0 100.00% Reimplemented
gynt Nov 14, 2026
1111bdd
reimplement: SHC_3BB0A8C1_0x005037B0 95.46% slot weights; keep/gate s…
gynt Nov 15, 2026
5017645
reimplement: SHC_3BB0A8C1_0x004FA000 68.68% final else 8; y reload
gynt Nov 15, 2026
5d4e602
reimplement: SHC_3BB0A8C1_0x005024F0 75.34% register colouring tie
gynt Nov 15, 2026
4ad6237
reimplement: SHC_3BB0A8C1_0x00516B80 89.47% volatile tail merge
gynt Nov 15, 2026
588eb96
reimplement: SHC_3BB0A8C1_0x00506370 100.00% Reimplemented
gynt Nov 15, 2026
0806c55
reimplement: SHC_3BB0A8C1_0x005017C0 100.00% Reimplemented
gynt Nov 15, 2026
8e4367a
reimplement: SHC_3BB0A8C1_0x00502680 76.37% FgCodeMotion arm placement
gynt Nov 15, 2026
6461d81
reimplement: SHC_3BB0A8C1_0x005024F0 83.78% register colouring tie
gynt Nov 15, 2026
b32cde1
build: __forceinline the resolver get() so unoptimised functions call…
gynt Nov 15, 2026
733543d
docs: c2 decisions decoded on the TileMapState last mile
gynt Nov 15, 2026
e37c517
docs: whole-project check of the __forceinline resolver get()
gynt Nov 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions cmake/compiler-flags-gl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,21 @@ src/OpenSHC/UI/MenuItems/BuildingAndStatusMenu/MenuItemRenderFunction_BuildingAn
src/OpenSHC/UI/MenuItems/BuildingAndStatusMenu/MenuItemRenderFunction_BuildingAndStatusMenu_WorkshopWeaponSelection.cpp
src/OpenSHC/UI/MenuItems/General/MenuItemRenderFunction_General_RenderCurrentButtonWithPossibleAlphaTexOnScreenMenuSurface.cpp
src/OpenSHC/Map/TileMapState/getBuildingSizeIndexMappingData.cpp
src/OpenSHC/Map/TileMapState/getRubbleGraphicStageForDamageLevel.cpp
src/OpenSHC/Map/TileMapState/returnOwnedMoatAtTile.cpp
src/OpenSHC/Map/TileMapState/setSignpostDistanceForCampaignMission.cpp
src/OpenSHC/Map/TileMapState/clearDrawBridgeWater.cpp
src/OpenSHC/Map/TileMapState/clearFixedSizeTwoBuildingFootprint.cpp
src/OpenSHC/Map/TileMapState/clearRockFootprintFlags.cpp
src/OpenSHC/Map/TileMapState/clearSizeFiveBuildingFootprintAndMoats.cpp
src/OpenSHC/Map/TileMapState/clearTreeFootprintFlags.cpp
src/OpenSHC/Map/TileMapState/floodMoatUnderRemovedBuilding.cpp
src/OpenSHC/Map/TileMapState/isUnitBlockingSizeFiveFootprint.cpp
src/OpenSHC/Map/TileMapState/markBuildingFootprintFlag.cpp
src/OpenSHC/Map/TileMapState/placeBarracks.cpp
src/OpenSHC/Map/TileMapState/placeOilsmelter.cpp
src/OpenSHC/Map/TileMapState/renderWallPlacementPreview.cpp
src/OpenSHC/Map/TileMapState/setMiscDisplayLayer.cpp
src/OpenSHC/Map/TileMapState/storeMinAndMaxHeightOfArea.cpp
src/OpenSHC/Map/TileMapState/unmarkBuildingFootprintFlag.cpp
src/OpenSHC/Map/TileMapState/updateGameRelatedValue.cpp
Expand All @@ -131,9 +142,16 @@ src/OpenSHC/Map/TileMapState/clearBuildingFootprintAndResetUnits.cpp
src/OpenSHC/Map/TileMapState/computeWallCornerRenderRotation.cpp
src/OpenSHC/Map/TileMapState/isWallConnectionHeightValid.cpp
src/OpenSHC/Map/TileMapState/getWallFlagForOrientedDirection.cpp
src/OpenSHC/Map/TileMapState/placeKeep.cpp
src/OpenSHC/Map/TileMapState/updatePathLinkagesForBuilding.cpp
src/OpenSHC/Map/TileMapState/resetTileAndClearMoat.cpp
src/OpenSHC/Map/TileMapState/setupAllMapSections.cpp
src/OpenSHC/Map/TileMapState/setupLogicalMapBorders.cpp
src/OpenSHC/Map/TileMapState/updateShowHiLayerOrResetChangedLayer.cpp
src/OpenSHC/Map/TileMapState/validateWallBuildPath.cpp
src/OpenSHC/Map/TileMapState/isTileEnclosedByWalls.cpp
src/OpenSHC/Map/TileMapState/isTileEnclosedByWallsOrGates.cpp
src/OpenSHC/Map/TileMapState/getMaxWallHeightInBrushArea.cpp
src/OpenSHC/UI/DisplayElements/RenderTimeUntilDefeatDisplayElement.cpp
src/OpenSHC/UI/DisplayElements/GetIfDisplayElementStateNotZero.cpp
src/OpenSHC/UI/DisplayElements/FindDisplayElementWithID.cpp
Expand All @@ -152,3 +170,26 @@ src/OpenSHC/Map/Units/UpdateMiner.cpp
src/OpenSHC/Map/Units/UpdateQuarryMason.cpp
src/OpenSHC/Map/Units/UpdateDrunkard.cpp
src/OpenSHC/Map/Units/UpdateInnkeeper.cpp
src/OpenSHC/Map/TileMapState/placeApplefarm.cpp
src/OpenSHC/Map/TileMapState/placeDairyfarm.cpp
src/OpenSHC/Map/TileMapState/placeDrawbridge.cpp
src/OpenSHC/Map/TileMapState/placeEngineersguild.cpp
src/OpenSHC/Map/TileMapState/placeGatehouseLarge.cpp
src/OpenSHC/Map/TileMapState/placeGatehouseSmall.cpp
src/OpenSHC/Map/TileMapState/placeHopfarm.cpp
src/OpenSHC/Map/TileMapState/placeKillingPit.cpp
src/OpenSHC/Map/TileMapState/placePositiveFearfactor.cpp
src/OpenSHC/Map/TileMapState/placeQuarry.cpp
src/OpenSHC/Map/TileMapState/placeSiegeTent.cpp
src/OpenSHC/Map/TileMapState/placeSiegetowerPlaced.cpp
src/OpenSHC/Map/TileMapState/placeTower.cpp
src/OpenSHC/Map/TileMapState/placeTunnelersguild.cpp
src/OpenSHC/Map/TileMapState/placeWheatfarm.cpp
src/OpenSHC/Map/TileMapState/placeWorkshopOrHovel.cpp
src/OpenSHC/Map/TileMapState/stampBuildingOntoTileMap.cpp
src/OpenSHC/Map/TileMapState/upgradeTowerLogicLayer.cpp
src/OpenSHC/Map/TileMapState/setConstructionGFXLayerBasedOnPlacementChecks.cpp
src/OpenSHC/Map/TileMapState/prepareMap.cpp
src/OpenSHC/Map/TileMapState/toggleFlatView.cpp
src/OpenSHC/Rendering/ViewportRenderState/xyAreValid.cpp
src/OpenSHC/Map/TileMapState/checkBuildingCanBePlacedHere.cpp
6 changes: 4 additions & 2 deletions src/OpenSHC/Map/TileMapState.func.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "OpenSHC/Commands/MappersEnum.hpp"
#include "OpenSHC/IO/PackagedFileMagicNum.hpp"
#include "OpenSHC/Map/Buildings/BuildingType.hpp"
#include "OpenSHC/Map/Buildings/BuildingTypeShort.hpp"
#include "OpenSHC/Map/Enums/CardinalDirection.hpp"
#include "OpenSHC/Map/Enums/MapOrientation.hpp"
#include "OpenSHC/Map/LogicHelpers/Logic1.hpp"
Expand All @@ -18,6 +19,7 @@ namespace Map {
using OpenSHC::Commands::MappersEnum;
using OpenSHC::IO::PackagedFileMagicNum;
using OpenSHC::Map::Buildings::BuildingType;
using OpenSHC::Map::Buildings::BuildingTypeShort;
using OpenSHC::Map::Enums::CardinalDirection;
using OpenSHC::Map::Enums::MapOrientation;
using OpenSHC::Map::LogicHelpers::Logic1;
Expand Down Expand Up @@ -716,7 +718,7 @@ namespace Map {
&TileMapState::planMoat)
planMoat;

MACRO_FUNCTION_RESOLVER(void (TileMapState::*)(int, uint, uint, BuildingType, uint, int, int), false,
MACRO_FUNCTION_RESOLVER(void (TileMapState::*)(int, uint, uint, BuildingTypeShort, uint, int, int), false,
Address::SHC_3BB0A8C1_0x00514520, &TileMapState::placeKillingPit)
placeKillingPit;

Expand All @@ -740,7 +742,7 @@ namespace Map {
Address::SHC_3BB0A8C1_0x005154D0, &TileMapState::placeDairyfarm)
placeDairyfarm;

MACRO_FUNCTION_RESOLVER(void (TileMapState::*)(int, uint, uint, BuildingType, undefined4, int, int), false,
MACRO_FUNCTION_RESOLVER(void (TileMapState::*)(int, uint, uint, BuildingTypeShort, undefined4, int, int), false,
Address::SHC_3BB0A8C1_0x00515740, &TileMapState::placeApplefarm)
placeApplefarm;

Expand Down
10 changes: 8 additions & 2 deletions src/OpenSHC/Map/TileMapState.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "OpenSHC/IO/PackagedFileMagicNum.hpp"
#include "OpenSHC/Map/Buildings/BuildingFailReasonEnumInt.hpp"
#include "OpenSHC/Map/Buildings/BuildingType.hpp"
#include "OpenSHC/Map/Buildings/BuildingTypeShort.hpp"
#include "OpenSHC/Map/Enums/CardinalDirection.hpp"
#include "OpenSHC/Map/Enums/MapOrientation.hpp"
#include "OpenSHC/Map/Enums/MapOrientationInt.hpp"
Expand All @@ -30,6 +31,7 @@ namespace Map {
using OpenSHC::Map::PitchDitch;
using OpenSHC::Map::Buildings::BuildingFailReasonEnumInt;
using OpenSHC::Map::Buildings::BuildingType;
using OpenSHC::Map::Buildings::BuildingTypeShort;
using OpenSHC::Map::Enums::CardinalDirection;
using OpenSHC::Map::Enums::MapOrientation;
using OpenSHC::Map::Enums::MapOrientationInt;
Expand Down Expand Up @@ -413,6 +415,10 @@ namespace Map {

uint getTotalHeightAtTile(int tile);

// a second function with getTotalHeightAtTile's body, which the original's linker folded into the same
// address; it has no game address of its own and therefore no resolver
uint getTotalHeightAtTile2(int tile);

int getTotalHeightAt(int tile, int playerID);

uint getHeightAtTileIncludingOwnersBuildings(int tile, int playerID);
Expand Down Expand Up @@ -610,7 +616,7 @@ namespace Map {
void planMoat(undefined4 playerID, int tile, uint tileY);

void placeKillingPit(
int playerID, uint x, uint y, BuildingType buildingType, uint width, int variation, int height);
int playerID, uint x, uint y, BuildingTypeShort buildingType, uint width, int variation, int height);

void placeKeep(int playerID, uint x, uint y, BuildingType type, uint size, int orientation, int xyValue);

Expand All @@ -627,7 +633,7 @@ namespace Map {
int param_6, undefined4 param_7);

void placeApplefarm(
int playerID, uint x, uint y, BuildingType buildingType, undefined4 param_5, int param_6, int param_7);
int playerID, uint x, uint y, BuildingTypeShort buildingType, undefined4 param_5, int param_6, int param_7);

void clearBuildingFromTerrain(int buildingID);

Expand Down
Loading