Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Aug 20, 2025

Related issue: #31692

Description

Nodes in context of post processing or RTT might have a property that scales the resolution of their internal render target(s). Unfortunately, the semantics and naming are not consistent right now.

The PR proposes two changes:

  • Rename resolution properties to resolutionScale. That makes more clear that the property does not hold the actual resolution/dimension of the effect but just a scaling factor.
  • Make resolutionScale a scalar value. Scaling factors should apply uniformly and not change the aspect ratio. Their main purpose is to downscale an effect to improve performance.

@Mugen87 Mugen87 changed the title TSL: Uniformly implement resolution scale.. TSL: Uniformly implement resolution scale. Aug 20, 2025
@github-actions
Copy link

github-actions bot commented Aug 20, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 338.91
79.1
338.91
79.1
+0 B
+0 B
WebGPU 575.75
158.85
576.18
158.93
+437 B
+77 B
WebGPU Nodes 574.35
158.61
574.79
158.68
+437 B
+77 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 470.7
113.91
470.7
113.91
+0 B
+0 B
WebGPU 646.8
174.91
646.8
174.91
+0 B
+0 B
WebGPU Nodes 600.98
164.09
600.98
164.09
+0 B
+0 B

@sunag sunag added this to the r180 milestone Aug 20, 2025
@sunag sunag merged commit 7c64dcf into mrdoob:dev Aug 20, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants