This website requires JavaScript.
Explore
Help
Sign In
TheBozos
/
PS2Recomp
Watch
1
Star
0
Fork
0
mirror of
https://github.com/TheBozos/PS2Recomp.git
synced
2026-12-01 21:33:20 -10:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
native/renderer
PS2Recomp
/
ps2xRuntime
/
include
/
runtime
/
native
T
Add File
New File
Upload File
Apply Patch
Copy Permalink
Download directory as ZIP
Download directory as TAR.GZ
History
Thomas Martin
and
Claude Opus 5.5
49264dfd54
Native renderer: a frame's vertex and batch arrays recycled from the frames the present thread let go (they grew from nothing each frame); the batch key map built only when interpolating
...
Co-Authored-By: Claude Opus 5.5 <
[email protected]
>
2026-11-02 11:05:49 +01:00
..
native_display.h
No GS front end (ps2x::native::setGsFrontEndAbsent): a port whose native renderer draws and presents every frame can have the runtime construct no GS at all. Set before the runtime exists (a port's static initialiser), it makes PS2Runtime hold no GS object (m_gs is now a std::unique_ptr, made in the constructor unless absent; hasGs(), and gs() / gsForPresentation() without one is a reported fault), PS2Memory allocate no GS memory (getGSVRAM() null), syncCoreSubsystems bind nothing of the GS (no init, no GS thread, no local-to-host reader, no presented-frames provider; a GIF packet reaching the arbiter dropped and counted), initialize make no GS native raster backend and no GL context of its own, and the present loop upload no GS frame. What a game still asks of the display comes from runtime/native/native_display.h, native state on the PC's clock, not a register model: the EE scheduler's vblanks give the field (a guest read of CSR gets FIELD and FIFO empty, any other privileged register 0; guest writes counted and dropped), latchGuestFrame counts the frames the game ends (the FPS counter's), sceGsResetGraph / SetGsCrt / the display environments set the mode (interlace, field or frame, PAL; sceGsSetDefDispEnv reads it), GsPutIMR keeps a mask for GsGetIMR. The libgraph HLE reaches no GS then: no clear packet, drawing or display environment applied, no image transfer (store images read zeros), no GIF packet from sceGsResetGraph; VU1 / VU0 interpreter runs, the native GIF chains, pollGsInterrupt, ps2GsFifoEmpty, the state dump and the debug panel's GS tab check for the GS. PS2X_GS_TOUCH(name) counts by call site what reaches the GS front end, GS memory or the GS registers ("gs:"), the native display ("display:") and the libgraph calls ("call:"); forEachGsTouch lists them for a port's log. TMB (US), default mode: no GS object, no GS memory, no GS thread, no raster backend; nothing reached the GS in boot movies, menus, options and memory card screens, story mode, 1P Junkyard with its pause menu, quit and a second match, CITY, 4P and the attract demo; pictures as before. Without the switch (every other port, TMB's diagnostic modes) nothing changes but the counters
2026-11-01 11:29:07 +01:00
native_gif.h
GifToNative::setCapture: triangles kept with their materials instead of drawn, to check a port's translation of a microprogram against the program itself
2026-10-30 17:35:41 +01:00
native_gs_hook.h
VIF0 unread (ps2x::native::setVif0Skipped) and told to the port (setVif0Kick): a port whose VU0 programs all run natively has its DMA kicks to VIF0 (channel 0) end at once with nothing read, as VIF1's and the GIF's with setGsDmaSkipped: QWC 0, STR cleared, D_STAT bit 0, the channel's DMAC handlers; no DMA tag followed, no VIFcode, MPG or UNPACK read (VU0's code memory stays empty). Every VIF0 kick, read or not, is first handed to the port's Vif0Kick with the registers the game wrote (CHCR, MADR, TADR, QWC), EE memory and VU0's data memory, so it can note which microprogram image the game sends (from the game's own pointer to its chain) and write what the transfer would put in VU0's data memory. With VIF0 unread a microprogram the port does not run is not run at all (no code to interpret): counted in packetStats().vu0NotRun and reported once per pc; packetStats().vu0Interpreter counts the programs run on VU0's interpreter. PS2X_VU0_HLE_CHECK=1 also counts per program the calls not bit-exact (any bit of a register or of VU0 data memory) and shows the first such field. TMB (US): hier__Fi's chain each frame, main's at start and hierSetVu1Regs's ROW / MASK kick complete unread; 0 VIF0 interpreter runs, 0 VU0 interpreter runs in menus, movies, 1P Junkyard, CITY, 4P and story mode; its eight hierarchy programs bit-exact over 41.6 M checked calls (Junkyard 10.4 M, CITY 21.4 M, 4P 9.9 M)
2026-11-01 10:14:17 +01:00
native_mesh_draw.h
Native renderer: frame rates above the game's, the frames between its two latest drawn interpolated
2026-11-02 00:40:13 +01:00
native_mesh_pack.h
Native packs, generic: the mesh pack and texture pack TMB built for itself, as the fork's (docs/native_packs.md), so another port supplies only its format reader, its hooks and its key scheme
2026-11-01 18:01:09 +01:00
native_movie.h
GS native back end: the display's circuit 2 from a picture the port sets (ps2x::native::setDisplayPicture), for a game whose frame shows a movie picture through PMODE's merge (alpha 0 where it shows) without that picture in GS memory
2026-11-01 01:50:55 +01:00
native_renderer.h
Native renderer: a frame's vertex and batch arrays recycled from the frames the present thread let go (they grew from nothing each frame); the batch key map built only when interpolating
2026-11-02 11:05:49 +01:00
native_texture_cache.h
Native textures in GS stream order: uploads fed as the GS queue reaches them, decoded at the draw's marker
2026-10-30 21:00:32 +01:00
native_texture_pack.h
Native packs, generic: the mesh pack and texture pack TMB built for itself, as the fork's (docs/native_packs.md), so another port supplies only its format reader, its hooks and its key scheme
2026-11-01 18:01:09 +01:00
native_vif1.h
[sc3/native-vu1-worker] Merge origin/native/renderer
2d6ecba
(MSCNT groups)
2026-10-30 01:07:12 +01:00
native_vu0_hle.h
VIF0 unread (ps2x::native::setVif0Skipped) and told to the port (setVif0Kick): a port whose VU0 programs all run natively has its DMA kicks to VIF0 (channel 0) end at once with nothing read, as VIF1's and the GIF's with setGsDmaSkipped: QWC 0, STR cleared, D_STAT bit 0, the channel's DMAC handlers; no DMA tag followed, no VIFcode, MPG or UNPACK read (VU0's code memory stays empty). Every VIF0 kick, read or not, is first handed to the port's Vif0Kick with the registers the game wrote (CHCR, MADR, TADR, QWC), EE memory and VU0's data memory, so it can note which microprogram image the game sends (from the game's own pointer to its chain) and write what the transfer would put in VU0's data memory. With VIF0 unread a microprogram the port does not run is not run at all (no code to interpret): counted in packetStats().vu0NotRun and reported once per pc; packetStats().vu0Interpreter counts the programs run on VU0's interpreter. PS2X_VU0_HLE_CHECK=1 also counts per program the calls not bit-exact (any bit of a register or of VU0 data memory) and shows the first such field. TMB (US): hier__Fi's chain each frame, main's at start and hierSetVu1Regs's ROW / MASK kick complete unread; 0 VIF0 interpreter runs, 0 VU0 interpreter runs in menus, movies, 1P Junkyard, CITY, 4P and story mode; its eight hierarchy programs bit-exact over 41.6 M checked calls (Junkyard 10.4 M, CITY 21.4 M, 4P 9.9 M)
2026-11-01 10:14:17 +01:00
native_vu1_hle.h
Native renderer: materials taken from the GS state at a group's marker (Material::fromGsContext), VU1 HLE draw markers
2026-10-28 20:43:22 +01:00
native_vu1_sandbox.h
[sc3/native-vu1-clock] native: advanceVif1Clock moves the VIF1 thread's clock on, Vu1Sandbox::cycles
2026-10-29 22:52:54 +01:00
native_vu1_stream.h
Merge remote-tracking branch 'origin/sc3/native-vu1-worker' into native/renderer
2026-10-30 06:09:57 +01:00