Skip to content

Commit 91a913b

Browse files
Examples: Cleanup stats-gl (#32242)
1 parent 8173be8 commit 91a913b

File tree

5 files changed

+6
-26
lines changed

5 files changed

+6
-26
lines changed

examples/tags.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"webgl_materials_modified": [ "onBeforeCompile" ],
113113
"webgl_raycaster_bvh": [ "community", "query", "bounds", "tree", "accelerate", "performance", "extension", "plugin", "library", "three-mesh-bvh" ],
114114
"webgl_renderer_pathtracer": [ "community", "raytracing", "pathtracing", "library", "plugin", "extension", "three-gpu-pathtracer", "three-mesh-bvh" ],
115-
"webgpu_compute_particles_snow": [ "community", "webgpu", "stats-gl" ],
115+
"webgpu_compute_particles_snow": [ "community", "webgpu" ],
116116
"webgl_shadowmap_csm": [ "cascade" ],
117117
"webgl_shadowmap_pcss": [ "soft" ],
118118
"webgl_simple_gi": [ "global illumination" ],

examples/webgl_lines_fat.html

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
{
1818
"imports": {
1919
"three": "../build/three.module.js",
20-
"three/addons/": "./jsm/",
21-
"stats-gl": "https://cdn.jsdelivr.net/npm/[email protected]/dist/main.js"
20+
"three/addons/": "./jsm/"
2221
}
2322
}
2423
</script>
@@ -27,7 +26,6 @@
2726

2827
import * as THREE from 'three';
2928

30-
import Stats from 'stats-gl';
3129

3230
import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
3331
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
@@ -39,7 +37,6 @@
3937
let line, renderer, scene, camera, camera2, controls;
4038
let line1;
4139
let matLine, matLineBasic, matLineDashed;
42-
let stats;
4340
let gui;
4441

4542
// viewport
@@ -138,10 +135,6 @@
138135
window.addEventListener( 'resize', onWindowResize );
139136
onWindowResize();
140137

141-
stats = new Stats( { horizontal: false, trackGPU: true } );
142-
stats.init( renderer );
143-
document.body.appendChild( stats.dom );
144-
145138
initGui();
146139

147140
}
@@ -192,8 +185,6 @@
192185

193186
renderer.setScissorTest( false );
194187

195-
stats.update();
196-
197188
}
198189

199190
//

examples/webgl_lines_fat_raycasting.html

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
{
1818
"imports": {
1919
"three": "../build/three.module.js",
20-
"three/addons/": "./jsm/",
21-
"stats-gl": "https://cdn.jsdelivr.net/npm/[email protected]/dist/main.js"
20+
"three/addons/": "./jsm/"
2221
}
2322
}
2423
</script>
@@ -27,7 +26,6 @@
2726

2827
import * as THREE from 'three';
2928

30-
import Stats from 'stats-gl';
3129

3230
import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
3331
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
@@ -40,7 +38,6 @@
4038
let line, thresholdLine, segments, thresholdSegments;
4139
let renderer, scene, camera, controls;
4240
let sphereInter, sphereOnLine;
43-
let stats;
4441
let gui;
4542
let clock;
4643

@@ -194,10 +191,6 @@
194191
window.addEventListener( 'resize', onWindowResize );
195192
onWindowResize();
196193

197-
stats = new Stats( { horizontal: false, trackGPU: true } );
198-
stats.init( renderer );
199-
document.body.appendChild( stats.dom );
200-
201194
initGui();
202195

203196
}
@@ -268,8 +261,6 @@
268261

269262
renderer.render( scene, camera );
270263

271-
stats.update();
272-
273264
}
274265

275266
//

examples/webgpu_compute_points.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
"three": "../build/three.webgpu.js",
2727
"three/webgpu": "../build/three.webgpu.js",
2828
"three/tsl": "../build/three.tsl.js",
29-
"three/addons/": "./jsm/",
30-
"stats-gl": "https://cdn.jsdelivr.net/npm/[email protected]/dist/main.js"
29+
"three/addons/": "./jsm/"
3130
}
3231
}
3332
</script>

examples/webgpu_performance_renderbundle.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"three": "../build/three.webgpu.js",
2828
"three/webgpu": "../build/three.webgpu.js",
2929
"three/tsl": "../build/three.tsl.js",
30-
"three/addons/": "./jsm/",
31-
"stats-gl": "https://cdn.jsdelivr.net/npm/[email protected]/dist/main.js"
30+
"three/addons/": "./jsm/"
3231
}
3332
}
3433
</script>
@@ -217,7 +216,7 @@
217216

218217
renderer.setSize( width, height );
219218
group.needsUpdate = true;
220-
219+
221220
}
222221

223222
function reload() {

0 commit comments

Comments
 (0)