Repository navigation
psxstack 0.2.0
The hardware renderer's follow-ups and save states. dw2003recomp's main pins this tag. Every new feature is off by default except sub-pixel precision above internal scale 1.
What is new
- D3D12 on Windows (#12): the hardware renderer's shaders are also built as signed DXIL, and SDL_GPU tries D3D12 first on Windows (
SDL_GPU_DRIVERswitches it). Under Wine, whose vkd3d refuses the swapchain settings, the renderer keeps the default swapchain (SDR, vsync) instead of falling back to the software renderer. - Sub-pixel precision (#14, #16, #22): a shadow of the GTE's projections keeps vertices off the whole-pixel grid at internal scales above 1.
video.subpixel/--subpixel off|on|perspective(defaulton).perspectivealso adds perspective-correct texturing and is off by default. - Post-processing filters (#15, #19, #21):
video.filter/--filter none|sharp|scanlines|crt|smooth(defaultnone).video.crtsets the scanlines, the mask and the curvature.smoothworks on the 1x picture. The software renderer stays unfiltered and logs that it is. - Texture replacement (#11, #17, #18):
--dump-textures DIRwrites each texture the game samples as a PNG named by its key. Texture packs (mod.jsonplus PNGs) go in through--texture-packor--mods-dir. The launcher's mods page shows and orders the data mods. - A wide canvas (#13): the renderer can draw beyond the 4:3 frame, for a game's widescreen mod (dw2003recomp's is for battles).
- Save states (#20):
--save-state WHEN:FILE,--save-state-exit,--load-state FILE, andsave_state/load_stateover the debug channel. A state is the whole machine at the end of a vsync. It needs the same binary and the same refresh rate. About 8 MB, saved or loaded in under 0.1 s. Format and rules:docs/RUNTIME.md"Save states".
Consuming it: bump the submodule pin to this tag. A game that wants save states provides game_savestate (its mods' state), and a game whose mods need wide battles can use the wide canvas (docs/GAME_CONTRACT.md).
Known limits: D3D12 and save states have been tested under Wine and Proton but not yet on real Windows. A state is refused at a different refresh rate. Texture packs are matched by texture and palette (CLUT), so a texture with another palette needs its own entry. The software renderer has no filters and no sub-pixel precision.