Restart dev watcher for runtime content
This commit is contained in:
parent
c534a4eaa7
commit
be588a0495
5 changed files with 15 additions and 5 deletions
|
|
@ -90,8 +90,10 @@ host sees the pointer change, loads and starts the new runtime first, then
|
|||
disposes the old one only after the replacement is valid. A bad live DLL leaves
|
||||
the previous runtime alive and reports the reload failure to stderr. Successful
|
||||
reloads rehydrate through CultCache without restarting the window or D3D device.
|
||||
Host, renderer, contract, project, and script changes still rebuild and restart
|
||||
the apphost.
|
||||
Host, renderer, contract, project, script, and `src\Aquarium.Engine\Assets`
|
||||
content changes still rebuild and restart the apphost. Runtime content belongs
|
||||
to the process image; shader hot reload cannot make a running renderer discover
|
||||
new files it never loaded.
|
||||
|
||||
Runtime live state is a typed CultCache document, not a loose sidecar file. The
|
||||
first document is `epiphany.aquarium.live_state`, currently banking camera
|
||||
|
|
|
|||
|
|
@ -49,7 +49,11 @@ function Get-SourceFiles {
|
|||
Where-Object {
|
||||
$_.FullName -notmatch "\\bin\\" -and
|
||||
$_.FullName -notmatch "\\obj\\" -and
|
||||
$_.Extension -in @(".cs", ".csproj", ".json", ".slnx")
|
||||
$_.FullName -notmatch "\\artifacts\\" -and
|
||||
(
|
||||
$_.Extension -in @(".cs", ".csproj", ".json", ".slnx") -or
|
||||
$_.FullName -like (Join-Path $repoRoot "src\Aquarium.Engine\Assets\*")
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -241,7 +245,7 @@ do {
|
|||
Invoke-LiveReload "live source change"
|
||||
}
|
||||
else {
|
||||
Invoke-Reload "host source change"
|
||||
Invoke-Reload "host/core/content source change"
|
||||
}
|
||||
|
||||
$lastGoodFingerprint = $currentFingerprint
|
||||
|
|
|
|||
|
|
@ -15,3 +15,4 @@
|
|||
{"area":"renderer/sdf-fields","lesson":"The SDF field/cloud renderer should use a waterfall implementation shape, not a chain of shy compromised prototypes. Define the target machine first: field ABI, broad phase, explicit local volume pass, composition contract, and acceleration gates. The current fullscreen analytic cloud code is temporary scaffolding for inspection only, not a place to accumulate features.","files":["docs/sdf-field-renderer-plan.md","docs/hlsl-renderer.md","state/memory.json","state/scratch.md"],"ts":"2026-05-08"}
|
||||
{"area":"renderer/composition","lesson":"Removed the analytic SDF cloud scaffold from visible scene composition and made the Grid a transparent schematic overlay. Bodies now trace as solid scene content; the Grid traces separately and blends lines/isolines/field lines/weather tint over the result. This preserves legibility while reserving real scene mass for the future explicit volumetric field renderer.","files":["src/Aquarium.Engine/Render/Shaders/Aquarium.hlsl","docs/hlsl-renderer.md","docs/sdf-field-renderer-plan.md","state/memory.json","state/scratch.md"],"verification":["dotnet build Aquarium.Engine.slnx",".\\scripts\\dev-reload.ps1 -Headless -RetainSlots 4"],"ts":"2026-05-08"}
|
||||
{"area":"renderer/composition","lesson":"Diegetic Grid transparency over raymarched content should use Aetheria-style stochastic coverage, not alpha blending. Aquarium now ports the dither-clip path from Aetheria's Dither Functions and Dithered Particles shaders using the copied LDR_LLL1_0 blue-noise texture, and it only draws the Grid when the Grid hit is closer than the nearest solid body so planets are not overlaid.","files":["src/Aquarium.Engine/Assets/Textures/Aetheria-LDR_LLL1_0.png","src/Aquarium.Engine/Assets/Textures/Aetheria-LDR_LLL1_0.r8","src/Aquarium.Engine/Render/D3D11Renderer.cs","src/Aquarium.Engine/Render/Shaders/Aquarium.hlsl","src/Aquarium.Engine/Aquarium.Engine.csproj","docs/hlsl-renderer.md","state/memory.json","state/scratch.md"],"verification":["dotnet build Aquarium.Engine.slnx",".\\scripts\\dev-reload.ps1 -Headless -RetainSlots 4"],"ts":"2026-05-08"}
|
||||
{"area":"dev-loop/reload","lesson":"dev-watch must treat runtime content as restart-owned input. Shader hot reload can swap HLSL, and live reload can swap Aquarium.Engine.Live, but new files under src/Aquarium.Engine/Assets require rebuilding the apphost slot and restarting the process so the renderer loads them.","files":["scripts/dev-watch.ps1","README.md","state/memory.json","state/scratch.md"],"verification":[".\\scripts\\dev-watch.ps1 -NoInitialLaunch -Once -IntervalMilliseconds 10 -DebounceMilliseconds 10","asset fingerprint check includes Aetheria-LDR_LLL1_0.png and .r8","dotnet build Aquarium.Engine.slnx"],"ts":"2026-05-08"}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
"state_and_reload": [
|
||||
"CultCache is the client memory organ. Runtime state, camera, renderer knobs, body state, UI state, and future Epiphany connection state should be typed Cult documents.",
|
||||
"The current live document is epiphany.aquarium.live_state, stored through CultLib MessagePack backing. Direct runs can use --cache or AQUARIUM_CULTCACHE_PATH.",
|
||||
"dev-reload builds disposable apphost slots so a running window does not lock normal build output. dev-watch hot reloads shaders and live runtime DLLs while preserving the last good process.",
|
||||
"dev-reload builds disposable apphost slots so a running window does not lock normal build output. dev-watch hot reloads shaders and live runtime DLLs while preserving the last good process. Host/core/content changes, including src/Aquarium.Engine/Assets, must rebuild and restart the apphost on demand.",
|
||||
"Shader reload failure must keep the previous good shader objects bound. Live-runtime reload failure must keep the previous runtime alive. Rehydrate from CultCache before claiming reload survival."
|
||||
],
|
||||
"salvage_without_baggage": [
|
||||
|
|
|
|||
|
|
@ -40,3 +40,6 @@ prototype integrated along the camera ray before surface composition.
|
|||
- Pulled Aetheria's `Assets/Resources/LDR_LLL1_0.png` into Aquarium as source
|
||||
PNG plus runtime `R8_UNorm` bytes. The renderer binds it as `t2` with wrapping
|
||||
point sampling for stochastic Grid coverage.
|
||||
- Dev watcher fix: restart fingerprint now includes `src/Aquarium.Engine/Assets`
|
||||
so runtime content changes trigger apphost rebuild/restart instead of relying
|
||||
on shader or live assembly reload.
|
||||
|
|
|
|||
Loading…
Reference in a new issue