Repository navigation
Description
@mstan asked for a list of what the adaptive renderer (PR #1) still misses. Here it is as a checklist to tick off. Each point says how to reach the screen, what goes wrong, and where the classic widescreen in this repository (src/main.c on widescreen-wood-margins) handles the same case, in case the approach helps.
Tested with PR #1 merged onto rc2 (559256a), German translation, launched with --widescreen --aspect Fit and --aspect 21:9. The save states used cannot be attached, since they carry ROM-derived data, so each point describes the way to the screen instead.
Version 1.0 ships with the classic widescreen. The adaptive renderer can take over once this list is done.
Renderer
- 1. Title screen: the string of lights is missing along the bottom of the added area. Wait for the title after boot. Classic:
widen_title_lights()andtitle_ws_update(). - 2. Title → main menu: the added area goes black for a moment during the fade. Press Start on the title. Classic:
ws_fill_flat_margins()keeps filling during a fade from the guest's own edge pixel, which the PPU has already dimmed, instead of waiting forws_display_settled(). - 3. Scenario selector: no scenario cards left and right, only the wood. Main menu → start a scenario. Classic:
selector_extend_tilemap()extends the card tilemap into the margins;SC_NINTH=1adds a ninth column. - 4. Fax (scenario briefing): black on both sides. Pick any scenario. Classic:
widen_wood_bg()finds the desk on whichever layer carries it (BG3 on the fax) and widens it at the tilemap. - 5. City: the seam to the native view is clearly visible while scrolling. Any city, scroll with the D-pad. Classic:
ws_fix_scroll_seam(); the measurements are indocs/TODO_scroll_seam.md. - 6. City: no roofs. The overlay tiles (building tops) are missing in the added area. A probe that rendered the native columns through the renderer's own path matched the native picture at 90.8%, the same with the overlay shifted by 0, 1 or 8 px, so the overlay pass seems never to contribute. The classic host map (
src/sc_mapview.c) draws the overlay one cell up-left, not one pixel; see the note there anddocs/REFERENCE_map_format.md. - 7. City: no trains or planes in the added area. Still open in the classic renderer as well: there the train shows one tile, then vanishes (
docs/TODO_reports_2026_09_03.md, "The train shows one tile then vanishes"). - 8. Statistics and tax menu: the added area is plain black instead of the screen's colour. Open the budget or the graphs from the city menu. Classic:
ws_fill_flat_margins()carries a flat edge colour out to the border. - 9. Loading a city shows the new city in the added area before the fade. In a city, load another one from the in-game dialog. The renderer reads map and scroll from WRAM while the load is still writing them. Classic: the swap hold in
host_map_compose()-- a frame with more than 300 changed cells raises suspicion, and the margins keep a snapshot of map, palette and scroll until the screen has been black and lit again.
Launcher
- 10. The Mods launcher crashes without OpenGL 3 (exit 139 right after
Failed to initialize OpenGL loader!, Hyper-V VM without a GPU). recomp-ui should fail cleanly and let the game start. This repository works around it insrc/sc_launcher.c,gl3_available(): create a context and askglGetString(GL_VERSION), becauseSDL_GL_GetAttributeonly echoes the request.
Engine pin
- 11. Moving to shared
main. The PR moves snesrecomp to shared main. This repository's pin isbc2838d(branchmerge-upstream-2026-09on blackerking/snesrecomp), 18 commits over main. The classic widescreen uses the PPU ones among them (OAM motion classifier, edge clip, VRAM write log hook); the opt-in AOT tier (SC_FIBER=1) needsexit_mx_setand the COP tiering. The default interpreter build needs neither of the AOT ones.
Found in the re-test of 0092c05
- 12. Scenario selector: the card pictures in the margin columns are brown. The black pixels of the San Francisco, Detroit and Sylt pictures show the desk's wood colours instead (
#310000,#391008,#522910); in the native columns and in the classic renderer they are black. Colour 0 of the card art seems to be treated as transparent. - 13. Scenario selector: the margin cards appear only after the fade-in. From the main menu, choose the scenarios. During the fade-in (14 frames) the centre cards brighten step by step, while both margin columns show only the brightening wood, and their cards pop in at full brightness on the first settled frame. Classic: the left card fades correctly, the right one (Sylt) pops the same way -- so this is open in both.
- 14. Title: the SIMCITY sign on the building disappears when it moves into the margin. The sign is OBJ, not background: six 16x16 sprites forming a 48x32 billboard whose lettering cycles through seven tile variants (
docs/ROM_MAP.md, "The title sign is OBJ (finally located)"). It should keep being drawn while it moves through the margin. Careful at the end of its run: the game parks it at x = -32 for about 1026 frames, which hardware clips; drawing the parked copy would leave it stuck at the left border. - 15. Title: the SIMCITY billboard changes timing where it crosses into the native view. The billboard is OBJ laid over the MAXIS lettering of the building. In the native view it trails the building by exactly one frame -- both move 1 px every 2 frames, so it sits 1 px off on every other frame. bsnes shows the same, so that is the game's own behaviour and stays. In the adaptive margin the billboard moves in step with the building instead, so it jumps once when it crosses into the native view. Fix: draw the margin copy with the same one-frame lag as the native OBJ (the classic renderer does, since it takes the margin sprites from the same OAM).
Done since the first report
- Versioned save-state format that keeps the PPU CPU-port latches -- taken over in
db02da9.
For the engine, found since (FYI)
A host that drives the beam itself (handle_pos_stuff() here) has to know about two things snes.c does on its own. Without a master-clock charge hook, a $420B DMA moves hPos/vPos past the host: the lines it crosses are not drawn, their HDMA steps are skipped, a crossing of the frame end is not counted, and the APU never gets the time. And every $4212 read adds a synthetic 64-clock step unless g_interp_apu_driving is set. Here that caused a one-frame jitter on the View screen (every 4th scanline a line late) and crackling audio. Fix and measurements: sc_own_the_beam() in src/main.c and docs/upstream/ISSUE_hdma_line_phase.md.
Activity
[-]Adaptive renderer (PR #1): regressions found in an integration test[/-][+]Adaptive renderer (PR #1): checklist to reach the classic widescreen[/+]blackerking commentedon Sep 18, 2026
@mstan here is the list you asked for, as a checklist in the description above: eleven points, each with the way to the screen and where the classic widescreen handles the same case. Version 1.0 ships with the classic widescreen; once this list is done the adaptive renderer can take over. Thanks for offering to work through it!
blackerking commentedon Sep 21, 2026
@mstan thanks for the big update. Re-tested
0092c05today: built with MSVC/SDL2 against the same pins (bc2838d,cb7e54b), German translation and Sylt on, launched with--widescreen --aspect 21:9 --window-size 1344x672. A 52-minute play session ran at a steady 60 fps (about 5 ms of emulation per frame). Findings from play, each checked against captures (SC_DUMP_DIRwith--qualify) and compared with the classic widescreen on the same input:1. Title screen: the light rows in the margins do not follow the centre. Plotting single scanlines over 100 frames (frames 900-1000 from boot): in the centre the moving lights form clean diagonal streaks, and in the classic renderer those streaks continue through both margins at the same slope. In the adaptive margins, rows 199-218 (the light row and its reflection) come out chopped. Parts run in the opposite direction, and around frame 930 the whole margin band jumps once. Row 193, the skyline above, is fine in both. So the light row is drawn, but not with the centre's scroll or phase. Classic:
widen_title_lights()/title_ws_update().2. Scenario selector: the card pictures in the margin columns are brown. San Francisco, Detroit and Sylt show their pictures with the black pixels replaced by the desk's wood colours (
#310000,#391008,#522910). In the native columns and in the classic renderer those pixels are black (#000000). It looks as if colour 0 of the card art is treated as transparent and the wood shows through.3. Scenario selector: no pins and no win marks on the margin columns. This one is shared: the classic renderer misses them too, and it is on the 1.0 known-issues list. The ROM places each mark at
03:ded0from$df30,Yminus the smooth scroll$16. At the ninth column ($16 = $50), the marks of scenarios 0 and 3 (San Francisco and Detroit, both in column 0) land at x = 14 - 80 = -66. The classic notes are indocs/TODO_reports_2026_09_03.md, "The selector's marks are not a job for the motion classifier". Since the renderer can read the completion mask ($42, one bit per scenario, as03:ded0walks it), drawing pins and marks for the margin columns from the ROM's own tables may be simpler than recovering them from OAM.4. City: trains and planes still disappear in the added area. Also shared with the classic renderer. What we measured there: the train is one sprite (OAM slot 109; slots 100-108 stay parked at x=384), and the game parks it once it leaves its own 256-pixel view. So there is nothing left in OAM to draw once it crosses into the margin. The docs of the new renderer say it does not extrapolate actors the guest hides, which matches what we see. Showing them would take a host-side model of the vehicle (path and speed from the map), not better decoding.
Not re-checked in detail yet: roofs, fax, statistics/tax, seam and load hold. I will tick checklist items once they are verified.
blackerking commentedon Sep 21, 2026
Confirmed in play on
0092c05: roofs (6) and the statistics/tax backgrounds (8) are right, and the seam (5) was not visible while scrolling. Also ticked: the launcher falls back cleanly without OpenGL 3 on the GPU-less VM (10), and the branch keeps the project's snesrecomp pin (11). Still open: 1 (light row, see above), 2, 3 (cards present now, but brown in the margins), 4, 7 and 9.blackerking commentedon Sep 21, 2026
Checked by capture on
0092c05against the classic renderer, same input: the title → main menu fade (2) keeps the margins at the centre's brightness the whole way (no frame with the centre lit and a margin black), and the San Francisco fax (4) shows the desk wood on both sides with the same average colour as the classic one. Ticked both. Left: 1 (light row timing), 3 (margin card pictures brown; pins/win marks missing on margin columns in both renderers), 7 (vehicles, both renderers) and 9 (city load, still to be tried in play).blackerking commentedon Sep 22, 2026
Confirmed in play on
0092c05: loading another city from the in-game dialog (9) keeps the old picture in the margins until the fade has finished; the new city appears only once the screen is lit again. The bank, tax, history and the other report screens looked right as well. Ticked 9. Left: 1 (light row timing), 3 (margin card pictures brown; pins/win marks on margin columns, both renderers) and 7 (vehicles, both renderers).blackerking commentedon Sep 22, 2026
More from play on
0092c05(32:9 this time), each checked against captures and the classic renderer; added to the checklist as 12-15. Summary: the title light row (1) still looks dragged in the margins; the SIMCITY sign on the title building vanishes once it enters the margin (14); the title margins trail the centre's parallax by a pixel and move in jerks, in both renderers (15); and on the scenario selector the margin cards pop in only after the fade-in (13; classic has it for the right-hand card). The brown margin card pictures are now item 12.Not a renderer issue, for completeness: on the bank screen's "too far in debt" page the "x" in "= 500 x 21" is missing in both renderers. That is this project's German bank page and is on our side.
blackerking commentedon Sep 22, 2026
Correction to item 15: the stepping reported from play is the SIMCITY billboard on the title building, not the skyline's parallax layers; the parallax explanation was mine and was wrong. Item 15 now describes what the measurement shows: the billboard (OBJ over the MAXIS lettering) trails the building by exactly one frame in the native view, in both renderers, while in the adaptive margin it moves in step with the building, so it changes timing at the crossing. We will check on bsnes whether the one-frame lag is the game's own.
blackerking commentedon Sep 22, 2026
Checked on bsnes: the SIMCITY billboard trails the building by one frame there as well, so that part is the game's own and stays. Item 15 now asks only for the margin copy to use the same timing as the native sprite, so the billboard no longer jumps where it crosses into the native view.
blackerking commentedon Sep 23, 2026
PR #1 is merged and the adaptive renderer is the default from v1.1.0 on (21:9 by default,
--aspect 32:9, classic widescreen as the fallback). This list has done its job, so it is closed -- here is where every point ended up.Ticked since the list was written:
1. Title lights -- drawn across the adaptive canvas (
d07e9ed), and the row no longer drags and squeezes while it moves:find_lightswas measuring the pitch from a sentinel of 256 (3a76afd).3. Scenario cards -- in the margins (
c9ef8e4), with the pins and win marks of every card on top, Sylt's included, fromsrc/sc_selector.c(82f921b,06fcbf0).7. Trains and planes --
src/sc_vehicles.ckeeps the ship, plane, helicopter and train after00:c019drops them 32 cells past the view, follows both scroll paths, and both renderers draw them (06fcbf0,0bc98ee,2386192). This was open in the classic renderer too; it is closed there as well.14. The title sign in the margin --
src/sc_titlesign.creads the animation channel (channel 0 of the player at COP service 9, driven by the title's fifth phase) instead of OAM, so the board crosses the whole margin with its lettering blinking, leaves at the true edge, and the parked copy is never drawn (442c702).15. The billboard's timing at the seam -- done, but the other way round, because the premise in this issue was wrong. It said the one-frame lag is the game's own behaviour and stays, so the margin should copy it. Measured frame by frame in the native columns, that lag is what makes the board shiver:
05:942eruns the channel first (05:9448, which writes the sprites into the shadow OAM) and steps the scene after it --INC $16for the skyline's scroll,DEC $0277for the sign, in one breath at05:9460. The sprites reach the PPU from before that pair, the scroll from after it, so with a pixel every second frame the two never move together.title_sign_align()puts the six entries on the frame their scroll belongs to, before anything reads OAM; both renderers get it, and the margin halves meet the native ones exactly.SC_SIGN_ALIGN=0restores the hardware behaviour. Details indocs/ROM_MAP.md, "The title sign is OBJ".Not done, and measured again today on
main(selector save state, 448 px wide):#000000, the right-margin card's#522910and#391008-- the desk's wood. Colour 0 of the card art is still transparent out there.Neither is a regression and neither blocks the release; if they are worth their own issue, say so and I will open one with the save state route and the measurements.
Keep the synthesised desk out from under the selector's cards
blackerking commentedon Sep 23, 2026
Follow-up: the two points that were still open when this was closed are done --
95f1203onmain, shipped in v1.1.1.12. The card pictures in the margin columns. The selector path in
scenery()laid a synthesised plank of desk under every pixel and drew the guest's layers over it. A card picture's dark pixels are colour 0, which is transparent -- in the guest's own columns nothing is under them and the PPU shows the backdrop, which is black, while in the margin the plank came through.guest_cell_inked()now asks whether the guest's own cell has any ink in CHR. An empty cell -- the shipped map's unused right-hand columns, which the synthesised desk exists to fill -- keeps its plank; a cell with art does not. Measured on both selector save states at 448 px, adaptive against a classic-widescreen render of the same frame:The card pictures read
#000000instead of#522910/#391008, and the desk still runs to both edges at 32:9.13. The margin cards fade in with the rest now, instead of arriving at full brightness on the first settled frame -- gone with the same change, confirmed from play.
That completes the list. Written up in
docs/ADAPTIVE_RENDERER.md, row 12 of the report table.