Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node: Document more modules. #30123

Merged
merged 3 commits into from
Dec 14, 2024
Merged

Node: Document more modules. #30123

merged 3 commits into from
Dec 14, 2024

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Dec 14, 2024

Related issue: #29984

Description

Adding more docs.

@cmhhelgeson I was not able to properly document some GPGPU related modules. Maybe you can have a look at the TODOs in src/nodes/gpgpu folder?


if ( value === true ) this.version ++;

}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removing this bit since it's the same like in the upper class Node.


return this.uuid;

}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removing this method since it is the same like in the upper class Node.

@@ -55,7 +55,7 @@
<script type="module">

import * as THREE from 'three';
import { storageObject, If, vec3, not, uniform, uv, uint, float, Fn, vec2, abs, int, invocationLocalIndex, workgroupArray, uvec2, floor, instanceIndex, workgroupBarrier, atomicAdd, atomicStore, workgroupId } from 'three/tsl';
import { storage, If, vec3, not, uniform, uv, uint, float, Fn, vec2, abs, int, invocationLocalIndex, workgroupArray, uvec2, floor, instanceIndex, workgroupBarrier, atomicAdd, atomicStore, workgroupId } from 'three/tsl';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Cleaning up some deprecation warnings.

Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 339.24
79.02
339.24
79.02
+0 B
+0 B
WebGPU 486.18
134.91
486.15
134.88
-32 B
-32 B
WebGPU Nodes 485.64
134.82
485.61
134.79
-32 B
-31 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.13
112.08
465.13
112.08
+0 B
+0 B
WebGPU 555.32
150.34
555.32
150.32
+2 B
-21 B
WebGPU Nodes 511.23
140.1
511.24
140.09
+2 B
-18 B

@Mugen87 Mugen87 added this to the r172 milestone Dec 14, 2024
@Mugen87 Mugen87 merged commit 0f523ac into mrdoob:dev Dec 14, 2024
12 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.

1 participant