@gnsx/three 0.185.13 → 0.185.14

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.
@@ -61371,7 +61371,6 @@ class Renderer {
61371
61371
 
61372
61372
  // WITH_GENESYS
61373
61373
  const label = `Renderer.render (${scene.name || scene.type})`;
61374
- ProfilerService.begin( label );
61375
61374
  const handle = ProfilerService.beginGpu( label, this );
61376
61375
  try {
61377
61376
 
@@ -61380,7 +61379,6 @@ class Renderer {
61380
61379
  } finally {
61381
61380
 
61382
61381
  ProfilerService.endGpu( handle );
61383
- ProfilerService.end( label );
61384
61382
 
61385
61383
  }
61386
61384
  // !WITH_GENESYS
@@ -61536,10 +61534,6 @@ class Renderer {
61536
61534
 
61537
61535
  if ( this._isDeviceLost === true ) return;
61538
61536
 
61539
- // WITH_GENESYS
61540
- ProfilerService.begin( 'Renderer._renderScene' );
61541
- // !WITH_GENESYS
61542
-
61543
61537
  //
61544
61538
 
61545
61539
  const frameBufferTarget = useFrameBufferTarget ? this._getFrameBufferTarget() : null;
@@ -61776,6 +61770,12 @@ class Renderer {
61776
61770
  renderContext.activeMipmapLevel = activeMipmapLevel;
61777
61771
  renderContext.occlusionQueryCount = renderList.occlusionQueryCount;
61778
61772
 
61773
+ // WITH_GENESYS
61774
+ // Size is finalized above from the active RT or drawing buffer.
61775
+ const profilerLabel = `Renderer._renderScene (${renderContext.width}x${renderContext.height})`;
61776
+ ProfilerService.begin( profilerLabel );
61777
+ // !WITH_GENESYS
61778
+
61779
61779
  //
61780
61780
 
61781
61781
  renderContext.scissorValue.max( _vector4.set( 0, 0, 0, 0 ) );
@@ -61851,7 +61851,7 @@ class Renderer {
61851
61851
  //
61852
61852
 
61853
61853
  // WITH_GENESYS
61854
- ProfilerService.end( 'Renderer._renderScene' );
61854
+ ProfilerService.end( profilerLabel );
61855
61855
  // !WITH_GENESYS
61856
61856
 
61857
61857
  return renderContext;