Simplify RenderCfg to use render_iterations_per_frame#298
Merged
Conversation
Remove enable_denoiser and map spp directly to DexSim's raytrace_config.render_iterations_per_frame, aligning with the current DexSim ray-tracing API. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aligns EmbodiChain’s render quality configuration with the current DexSim ray-tracing API by removing denoiser toggling and driving ray-tracing quality via a single per-frame iteration control.
Changes:
- Removed
RenderCfg.enable_denoiserand adjustedRenderCfg.sppdefault from64to1. - Updated
SimulationManager._convert_sim_config()to mapRenderCfg.spptoworld_config.raytrace_config.render_iterations_per_frame. - Expanded the
sppdocstring to include the'rt'renderer (but it still needs to reflect the new semantics).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
embodichain/lab/sim/sim_manager.py |
Maps RenderCfg.spp to DexSim raytrace per-frame iterations. |
embodichain/lab/sim/cfg.py |
Simplifies RenderCfg by removing denoiser config and changing spp default/description. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
463
to
+466
| world_config.renderer = sim_config.render_cfg.to_dexsim_flags() | ||
| if sim_config.render_cfg.enable_denoiser is False: | ||
| world_config.raytrace_config.spp = sim_config.render_cfg.spp | ||
| world_config.raytrace_config.open_denoise = False | ||
| world_config.raytrace_config.render_iterations_per_frame = ( | ||
| sim_config.render_cfg.spp | ||
| ) |
Comment on lines
+69
to
+70
| spp: int = 1 | ||
| """Samples per pixel for ray tracing rendering. This parameter is only valid when renderer is 'hybrid', 'fast-rt' or 'rt'.""" |
yuecideng
added a commit
that referenced
this pull request
Jun 15, 2026
Co-authored-by: Cursor <cursoragent@cursor.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.
Description
This PR simplifies
RenderCfgray-tracing quality controls to align with the current DexSim API.enable_denoiserfield fromRenderCfg.sppdirectly toworld_config.raytrace_config.render_iterations_per_frameinSimulationManager.sppfrom64to1, matching DexSim's default render iteration count.sppdocstring to include the'rt'renderer.Previously, EmbodiChain only applied
sppand disabled denoising whenenable_denoiser=False. DexSim now exposesrender_iterations_per_frameas the canonical control for per-frame ray-tracing iterations, as used in DexSim renderer examples.Dependencies: Requires a DexSim build that supports
raytrace_config.render_iterations_per_frame.Type of change
Screenshots
N/A
Checklist
black .command to format the code base.🤖 Generated with Claude Code
Made with Cursor