Browse Source

Remove unneeded engine feature

Popov72 4 years ago
parent
commit
142619a247

+ 0 - 3
src/Engines/engineFeatures.ts

@@ -28,7 +28,4 @@ export interface EngineFeatures {
 
     /** @hidden */
     _collectUbosUpdatedInFrame: boolean;
-
-    /** @hidden */
-    _warnWhenTooManyBuffersInUniformBufferClass: number;
 }

+ 0 - 1
src/Engines/thinEngine.ts

@@ -185,7 +185,6 @@ export class ThinEngine {
         trackUbosInFrame: false,
         supportCSM: false,
         _collectUbosUpdatedInFrame: false,
-        _warnWhenTooManyBuffersInUniformBufferClass: 0,
     };
 
     /**

+ 0 - 1
src/Engines/webgpuEngine.ts

@@ -239,7 +239,6 @@ export class WebGPUEngine extends Engine {
         ThinEngine.Features.trackUbosInFrame = true;
         ThinEngine.Features.supportCSM = true;
         ThinEngine.Features._collectUbosUpdatedInFrame = true;
-        ThinEngine.Features._warnWhenTooManyBuffersInUniformBufferClass = 30;
 
         options.deviceDescriptor = options.deviceDescriptor || { };
         options.swapChainFormat = options.swapChainFormat || WebGPUConstants.TextureFormat.BGRA8Unorm;

+ 0 - 3
src/Materials/uniformBuffer.ts

@@ -557,9 +557,6 @@ export class UniformBuffer {
             if (this._currentEffect && this._buffer) {
                 this._currentEffect.bindUniformBuffer(this._buffer, this._currentEffectName);
             }
-            if (this._buffers.length >= ThinEngine.Features._warnWhenTooManyBuffersInUniformBufferClass) {
-                console.log(`%c Too many buffers created in the UniformBuffer class! name=${this.name}, number of buffers=${this._buffers.length}`, "background: #ff0000; color: #ffffff", this);
-            }
             return true;
         }
     }