Commit fa5df07
fix: remove dead code and fix save state serialization
- Remove always-false condition `sprX >= 256 && sprX < 256` in
renderSpritesPartially
- Serialize persistent hardware state (secondaryOAM, spritesFound,
sprite0InSecondary) instead of transient per-scanline evaluation
arrays (scanlineSpriteCount, scanlineSecondaryOAM, scanlineSprite0)
which are recomputed each frame
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent adda623 commit fa5df07
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1688 | 1688 | | |
1689 | 1689 | | |
1690 | 1690 | | |
1691 | | - | |
1692 | | - | |
1693 | 1691 | | |
1694 | 1692 | | |
1695 | 1693 | | |
| |||
2208 | 2206 | | |
2209 | 2207 | | |
2210 | 2208 | | |
2211 | | - | |
2212 | | - | |
2213 | | - | |
2214 | | - | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
2215 | 2213 | | |
2216 | 2214 | | |
2217 | 2215 | | |
| |||
0 commit comments