@gnsx/three 0.185.11 → 0.185.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/three.cjs +18 -5
- package/build/three.core.js +18 -5
- package/build/three.core.min.js +1 -1
- package/build/three.webgpu.js +23 -8
- package/build/three.webgpu.min.js +1 -1
- package/build/three.webgpu.nodes.js +23 -8
- package/build/three.webgpu.nodes.min.js +1 -1
- package/examples/jsm/tsl/display/GTAONode.js +54 -4
- package/package.json +1 -1
- package/src/profiler/ProfilerService.js +18 -5
- package/src/renderers/common/Renderer.js +23 -8
|
@@ -61363,20 +61363,26 @@ class Renderer {
|
|
|
61363
61363
|
*/
|
|
61364
61364
|
render( scene, camera ) {
|
|
61365
61365
|
|
|
61366
|
-
// WITH_GENESYS
|
|
61367
|
-
ProfilerService.begin( 'Renderer.render' );
|
|
61368
|
-
// !WITH_GENESYS
|
|
61369
|
-
|
|
61370
61366
|
if ( this._initialized === false ) {
|
|
61371
61367
|
|
|
61372
61368
|
throw new Error( 'THREE.Renderer: .render() called before the backend is initialized. Use "await renderer.init();" before rendering.' );
|
|
61373
61369
|
|
|
61374
61370
|
}
|
|
61375
61371
|
|
|
61376
|
-
this._renderScene( scene, camera );
|
|
61377
|
-
|
|
61378
61372
|
// WITH_GENESYS
|
|
61379
|
-
|
|
61373
|
+
const label = `Renderer.render (${scene.name || scene.type})`;
|
|
61374
|
+
ProfilerService.begin( label );
|
|
61375
|
+
const handle = ProfilerService.beginGpu( label, this );
|
|
61376
|
+
try {
|
|
61377
|
+
|
|
61378
|
+
this._renderScene( scene, camera );
|
|
61379
|
+
|
|
61380
|
+
} finally {
|
|
61381
|
+
|
|
61382
|
+
ProfilerService.endGpu( handle );
|
|
61383
|
+
ProfilerService.end( label );
|
|
61384
|
+
|
|
61385
|
+
}
|
|
61380
61386
|
// !WITH_GENESYS
|
|
61381
61387
|
|
|
61382
61388
|
}
|
|
@@ -63421,7 +63427,7 @@ class Renderer {
|
|
|
63421
63427
|
_renderObjects( renderList, camera, scene, lightsNode, passId = null ) {
|
|
63422
63428
|
|
|
63423
63429
|
// WITH_GENESYS
|
|
63424
|
-
const label =
|
|
63430
|
+
const label = `_renderObjects (${renderList.length})`;
|
|
63425
63431
|
ProfilerService.begin( label );
|
|
63426
63432
|
// !WITH_GENESYS
|
|
63427
63433
|
|
|
@@ -63656,6 +63662,11 @@ class Renderer {
|
|
|
63656
63662
|
*/
|
|
63657
63663
|
renderObject( object, scene, camera, geometry, material, group, lightsNode, clippingContext = null, passId = null ) {
|
|
63658
63664
|
|
|
63665
|
+
// WITH_GENESYS
|
|
63666
|
+
const label = `renderObject (${object.name || object.type} - ${material.name || material.type})`;
|
|
63667
|
+
ProfilerService.begin( label );
|
|
63668
|
+
// !WITH_GENESYS
|
|
63669
|
+
|
|
63659
63670
|
let materialOverride = false;
|
|
63660
63671
|
let materialColorNode;
|
|
63661
63672
|
let materialDepthNode;
|
|
@@ -63767,6 +63778,10 @@ class Renderer {
|
|
|
63767
63778
|
|
|
63768
63779
|
object.onAfterRender( this, scene, camera, geometry, material, group );
|
|
63769
63780
|
|
|
63781
|
+
// WITH_GENESYS
|
|
63782
|
+
ProfilerService.end( label );
|
|
63783
|
+
// !WITH_GENESYS
|
|
63784
|
+
|
|
63770
63785
|
}
|
|
63771
63786
|
|
|
63772
63787
|
/**
|