Repository navigation
Live edits: what is not the scene's no longer rebuilds it (lens, exposure, fog, background, preset) - #124
Merged
Conversation
… and the preset in place Each rebuilt the whole scene. None is the scene's: a lens is the view's, an exposure the post passes' and the firefly clamp's, fog's shape and a background are kernel features (another variant), the preset a few parameters. An offline render's size and clock are no change to a live view. A GPU test holds each edit, taken in place, to a view built from the edited world: no rebuild, the same state, the same picture. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…compared by equality, the cull's cone follows the lens - The background's feature bit was patched into the scene's structural features from the commit; fog's and the aerial perspective's were computed at three call sites. One function now (gpu::environment_features), reached through Tables::features. - A description had changed when its Debug text had. Exposure, Dof and Sky derive PartialEq. - The scene's camera is looked up in one place (World::scene_camera); the exposure is applied once a commit. - The in-place test compares the kernel's parameters whole with a build's. It found the emitter cull's view cone stale after a lens change (made again only when the camera moved or turned): it follows the lens now. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One flag,
Changes::structural, sends an edit to a rebuild of the whole GPU scene (0.5 to 0.9 s on a large one). It was set for things no part of the scene is built from. These are applied in place now:No change at all any more: a camera's near and far (read by nothing), a camera that is not the scene's, an offline render's size and clock.
Still a rebuild: another sky, and everything about geometry. A view still cannot be resized.
Measured
Tests
live::inplace_tests: twelve such edits and a camera switch, taken in place on one view, each held to a view built from the edited world: no rebuild, the kernel's parameters the same whole, the same kernel variant and post settings, the same picture; and a view moved away from the scene's camera stays there through a depth of field or an exposure.THREERT_FEATURES(a profiling mask) now masks the aerial perspective as it masks fog.Found by the new test:
Cleaned up on the way
gpu::environment_features, throughTables::features); they were computed at three call sites, the background's among the structural ones.Debugtext had:Exposure,Dof,SkyderivePartialEq.First step of the scene / edit model. The sky and the output's size are separate PRs: they replace GPU resources (the environment map, the screen-sized buffers), where this one only writes parameters.
🤖 Generated with Claude Code