monitor(doMonitor = false){
        // DISABLE MONITORING
        if (!doMonitor){
            this.performanceMonitor = null;
            return;
        }

        // ENABLE MONITORING
        // eslint-disable-next-line no-use-before-define
        this.performanceMonitor = new PerformanceMonitor(this);
    }
/**
     *
     * Monitors the performance
     *
     * @param {boolean} doMonitor monitor the performance per tick
     *
     */
Monitors the performance
@param {boolean} doMonitor monitor the performance per tick
Monitors the performance @param { boolean } doMonitor monitor the performance per tick
monitor(doMonitor = false){
        if (!doMonitor){
            this.performanceMonitor = null;
            return;
        }
        this.performanceMonitor = new PerformanceMonitor(this);
    }
monitor ( doMonitor = false ) { if ( ! doMonitor ) { this . performanceMonitor = null ; return ; } this . performanceMonitor = new PerformanceMonitor ( this ) ; }
Monitors the performance
 @param {boolean} doMonitor monitor the performance per tick
Monitors the performance @param { boolean } doMonitor monitor the performance per tick
// DISABLE MONITORING // ENABLE MONITORING // eslint-disable-next-line no-use-before-define