Browse Source

Examples: Cleanup stats-gl (#32242)

Renaud Rohlinger 3 months ago
parent
commit
91a913b021

+ 1 - 1
examples/tags.json

@@ -112,7 +112,7 @@
 	"webgl_materials_modified": [ "onBeforeCompile" ],
 	"webgl_raycaster_bvh": [ "community", "query", "bounds", "tree", "accelerate", "performance", "extension", "plugin", "library", "three-mesh-bvh" ],
 	"webgl_renderer_pathtracer": [ "community", "raytracing", "pathtracing", "library", "plugin", "extension", "three-gpu-pathtracer", "three-mesh-bvh" ],
-	"webgpu_compute_particles_snow": [ "community", "webgpu", "stats-gl" ],
+	"webgpu_compute_particles_snow": [ "community", "webgpu" ],
 	"webgl_shadowmap_csm": [ "cascade" ],
 	"webgl_shadowmap_pcss": [ "soft" ],
 	"webgl_simple_gi": [ "global illumination" ],

+ 1 - 10
examples/webgl_lines_fat.html

@@ -17,8 +17,7 @@
 			{
 				"imports": {
 					"three": "../build/three.module.js",
-					"three/addons/": "./jsm/",
-					"stats-gl": "https://cdn.jsdelivr.net/npm/stats-gl@3.6.0/dist/main.js"
+					"three/addons/": "./jsm/"
 				}
 			}
 		</script>
@@ -27,7 +26,6 @@
 
 			import * as THREE from 'three';
 
-			import Stats from 'stats-gl';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
@@ -39,7 +37,6 @@
 			let line, renderer, scene, camera, camera2, controls;
 			let line1;
 			let matLine, matLineBasic, matLineDashed;
-			let stats;
 			let gui;
 
 			// viewport
@@ -138,10 +135,6 @@
 				window.addEventListener( 'resize', onWindowResize );
 				onWindowResize();
 
-				stats = new Stats( { horizontal: false, trackGPU: true } );
-				stats.init( renderer );
-				document.body.appendChild( stats.dom );
-
 				initGui();
 
 			}
@@ -192,8 +185,6 @@
 
 				renderer.setScissorTest( false );
 
-				stats.update();
-
 			}
 
 			//

+ 1 - 10
examples/webgl_lines_fat_raycasting.html

@@ -17,8 +17,7 @@
 			{
 				"imports": {
 					"three": "../build/three.module.js",
-					"three/addons/": "./jsm/",
-					"stats-gl": "https://cdn.jsdelivr.net/npm/stats-gl@3.6.0/dist/main.js"
+					"three/addons/": "./jsm/"
 				}
 			}
 		</script>
@@ -27,7 +26,6 @@
 
 			import * as THREE from 'three';
 
-			import Stats from 'stats-gl';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
@@ -40,7 +38,6 @@
 			let line, thresholdLine, segments, thresholdSegments;
 			let renderer, scene, camera, controls;
 			let sphereInter, sphereOnLine;
-			let stats;
 			let gui;
 			let clock;
 
@@ -194,10 +191,6 @@
 				window.addEventListener( 'resize', onWindowResize );
 				onWindowResize();
 
-				stats = new Stats( { horizontal: false, trackGPU: true } );
-				stats.init( renderer );
-				document.body.appendChild( stats.dom );
-
 				initGui();
 
 			}
@@ -268,8 +261,6 @@
 
 				renderer.render( scene, camera );
 
-				stats.update();
-
 			}
 
 			//

+ 1 - 2
examples/webgpu_compute_points.html

@@ -26,8 +26,7 @@
 					"three": "../build/three.webgpu.js",
 					"three/webgpu": "../build/three.webgpu.js",
 					"three/tsl": "../build/three.tsl.js",
-					"three/addons/": "./jsm/",
-					"stats-gl": "https://cdn.jsdelivr.net/npm/stats-gl@3.6.0/dist/main.js"
+					"three/addons/": "./jsm/"
 				}
 			}
 		</script>

+ 2 - 3
examples/webgpu_performance_renderbundle.html

@@ -27,8 +27,7 @@
 					"three": "../build/three.webgpu.js",
 					"three/webgpu": "../build/three.webgpu.js",
 					"three/tsl": "../build/three.tsl.js",
-					"three/addons/": "./jsm/",
-					"stats-gl": "https://cdn.jsdelivr.net/npm/stats-gl@3.6.0/dist/main.js"
+					"three/addons/": "./jsm/"
 				}
 			}
 		</script>
@@ -217,7 +216,7 @@
 
 					renderer.setSize( width, height );
 					group.needsUpdate = true;
-			
+
 				}
 
 				function reload() {

粤ICP备19079148号