Publish GPU inputs without derived scratch and narrow PGXP copy pages

This commit is contained in:
Shokunin
2026-10-21 22:16:14 -07:00
parent 2ef58c5471
commit c30fc917c1
7 changed files with 102 additions and 8 deletions
+2 -1
View File
@@ -96,7 +96,8 @@ struct PGXPValue {
#define PGXP_REG_LO 33
static PSX_THREAD_LOCAL PGXPValue *s_ram = nullptr; /* lazily allocated: RAM + mod regions */
enum { PGXP_EXEC_PAGE_WORDS = 256,
/* Fine publication pages avoid copying 10 KiB for one changed shadow word. */
enum { PGXP_EXEC_PAGE_WORDS = 64,
PGXP_EXEC_PAGES = (PGXP_SHADOW_WORDS + PGXP_EXEC_PAGE_WORDS - 1) / PGXP_EXEC_PAGE_WORDS };
/* Tracking starts only when a replay consumer requests a snapshot. Ordinary
* execution does not allocate version tables. A replay marks its modified