Skip to content

Simplify RenderCfg to use render_iterations_per_frame#298

Merged
yuecideng merged 1 commit into
mainfrom
enhance/render-iterations-per-frame
Jun 11, 2026
Merged

Simplify RenderCfg to use render_iterations_per_frame#298
yuecideng merged 1 commit into
mainfrom
enhance/render-iterations-per-frame

Conversation

@yuecideng

Copy link
Copy Markdown
Contributor

Description

This PR simplifies RenderCfg ray-tracing quality controls to align with the current DexSim API.

  • Removes the enable_denoiser field from RenderCfg.
  • Maps spp directly to world_config.raytrace_config.render_iterations_per_frame in SimulationManager.
  • Changes the default spp from 64 to 1, matching DexSim's default render iteration count.
  • Extends the spp docstring to include the 'rt' renderer.

Previously, EmbodiChain only applied spp and disabled denoising when enable_denoiser=False. DexSim now exposes render_iterations_per_frame as 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

  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which improves an existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (existing functionality will not work without user modification)
  • Documentation update

Screenshots

N/A

Checklist

  • I have run the black . command to format the code base.
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Dependencies have been updated, if applicable.

🤖 Generated with Claude Code

Made with Cursor

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>
Copilot AI review requested due to automatic review settings June 11, 2026 14:59
@yuecideng yuecideng added enhancement New feature or request rendering Things related to rendering (eg, performace, efficiency, bug) dexsim Things related to dexsim labels Jun 11, 2026
@yuecideng yuecideng merged commit 044e046 into main Jun 11, 2026
6 checks passed
@yuecideng yuecideng deleted the enhance/render-iterations-per-frame branch June 11, 2026 15:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_denoiser and adjusted RenderCfg.spp default from 64 to 1.
  • Updated SimulationManager._convert_sim_config() to map RenderCfg.spp to world_config.raytrace_config.render_iterations_per_frame.
  • Expanded the spp docstring 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dexsim Things related to dexsim enhancement New feature or request rendering Things related to rendering (eg, performace, efficiency, bug)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants