From a301b653bf97cef2cf129e5ba33ff93de9472c0c Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Mon, 27 May 2024 21:50:06 +0900 Subject: [PATCH] fix gui render issue --- webgpu/webgl-optimization-none.html | 1 - webgpu/webgpu-optimization-all.html | 1 - webgpu/webgpu-optimization-none.html | 1 - .../webgpu-optimization-step3-global-vs-per-object-uniforms.html | 1 - webgpu/webgpu-optimization-step4-material-uniforms.html | 1 - ...on-step5-double-buffer-frequenly-updated-uniform-buffers.html | 1 - webgpu/webgpu-optimization-step5-use-buffer-offsets.html | 1 - webgpu/webgpu-optimization-step6-use-mapped-buffers.html | 1 - ...ptimization-step7-double-buffer-typedarray-set-count-100.html | 1 - .../webgpu-optimization-step7-double-buffer-typedarray-set.html | 1 - webgpu/webgpu-optimization-step7-double-buffer.html | 1 - 11 files changed, 11 deletions(-) diff --git a/webgpu/webgl-optimization-none.html b/webgpu/webgl-optimization-none.html index b0cbcae4..9370f9e1 100644 --- a/webgpu/webgl-optimization-none.html +++ b/webgpu/webgl-optimization-none.html @@ -324,7 +324,6 @@ }; const gui = new GUI(); - gui.onChange(render); gui.add(settings, 'numObjects', { min: 0, max: maxObjects, step: 1}); gui.add(settings, 'render'); diff --git a/webgpu/webgpu-optimization-all.html b/webgpu/webgpu-optimization-all.html index 44309670..ce5b6c3f 100644 --- a/webgpu/webgpu-optimization-all.html +++ b/webgpu/webgpu-optimization-all.html @@ -425,7 +425,6 @@ }; const gui = new GUI(); - gui.onChange(render); gui.add(settings, 'numObjects', { min: 0, max: maxObjects, step: 1}); gui.add(settings, 'render'); diff --git a/webgpu/webgpu-optimization-none.html b/webgpu/webgpu-optimization-none.html index 3654c9cf..571fb2ed 100644 --- a/webgpu/webgpu-optimization-none.html +++ b/webgpu/webgpu-optimization-none.html @@ -397,7 +397,6 @@ }; const gui = new GUI(); - gui.onChange(render); gui.add(settings, 'numObjects', { min: 0, max: maxObjects, step: 1}); gui.add(settings, 'render'); diff --git a/webgpu/webgpu-optimization-step3-global-vs-per-object-uniforms.html b/webgpu/webgpu-optimization-step3-global-vs-per-object-uniforms.html index ad409e41..feca4b6e 100644 --- a/webgpu/webgpu-optimization-step3-global-vs-per-object-uniforms.html +++ b/webgpu/webgpu-optimization-step3-global-vs-per-object-uniforms.html @@ -425,7 +425,6 @@ }; const gui = new GUI(); - gui.onChange(render); gui.add(settings, 'numObjects', { min: 0, max: maxObjects, step: 1}); gui.add(settings, 'render'); diff --git a/webgpu/webgpu-optimization-step4-material-uniforms.html b/webgpu/webgpu-optimization-step4-material-uniforms.html index 02b44a1c..d1332c69 100644 --- a/webgpu/webgpu-optimization-step4-material-uniforms.html +++ b/webgpu/webgpu-optimization-step4-material-uniforms.html @@ -430,7 +430,6 @@ }; const gui = new GUI(); - gui.onChange(render); gui.add(settings, 'numObjects', { min: 0, max: maxObjects, step: 1}); gui.add(settings, 'render'); diff --git a/webgpu/webgpu-optimization-step5-double-buffer-frequenly-updated-uniform-buffers.html b/webgpu/webgpu-optimization-step5-double-buffer-frequenly-updated-uniform-buffers.html index d68edb1b..2ad2eb75 100644 --- a/webgpu/webgpu-optimization-step5-double-buffer-frequenly-updated-uniform-buffers.html +++ b/webgpu/webgpu-optimization-step5-double-buffer-frequenly-updated-uniform-buffers.html @@ -440,7 +440,6 @@ }; const gui = new GUI(); - gui.onChange(render); gui.add(settings, 'numObjects', { min: 0, max: maxObjects, step: 1}); gui.add(settings, 'render'); diff --git a/webgpu/webgpu-optimization-step5-use-buffer-offsets.html b/webgpu/webgpu-optimization-step5-use-buffer-offsets.html index 3a1b2a13..3923bed7 100644 --- a/webgpu/webgpu-optimization-step5-use-buffer-offsets.html +++ b/webgpu/webgpu-optimization-step5-use-buffer-offsets.html @@ -433,7 +433,6 @@ }; const gui = new GUI(); - gui.onChange(render); gui.add(settings, 'numObjects', { min: 0, max: maxObjects, step: 1}); gui.add(settings, 'render'); diff --git a/webgpu/webgpu-optimization-step6-use-mapped-buffers.html b/webgpu/webgpu-optimization-step6-use-mapped-buffers.html index a3c95113..b8067061 100644 --- a/webgpu/webgpu-optimization-step6-use-mapped-buffers.html +++ b/webgpu/webgpu-optimization-step6-use-mapped-buffers.html @@ -432,7 +432,6 @@ }; const gui = new GUI(); - gui.onChange(render); gui.add(settings, 'numObjects', { min: 0, max: maxObjects, step: 1}); gui.add(settings, 'render'); diff --git a/webgpu/webgpu-optimization-step7-double-buffer-typedarray-set-count-100.html b/webgpu/webgpu-optimization-step7-double-buffer-typedarray-set-count-100.html index 57b2b302..021897e3 100644 --- a/webgpu/webgpu-optimization-step7-double-buffer-typedarray-set-count-100.html +++ b/webgpu/webgpu-optimization-step7-double-buffer-typedarray-set-count-100.html @@ -432,7 +432,6 @@ }; const gui = new GUI(); - gui.onChange(render); gui.add(settings, 'numObjects', { min: 0, max: maxObjects, step: 1}); gui.add(settings, 'render'); diff --git a/webgpu/webgpu-optimization-step7-double-buffer-typedarray-set.html b/webgpu/webgpu-optimization-step7-double-buffer-typedarray-set.html index 0c9f532f..51ea014d 100644 --- a/webgpu/webgpu-optimization-step7-double-buffer-typedarray-set.html +++ b/webgpu/webgpu-optimization-step7-double-buffer-typedarray-set.html @@ -432,7 +432,6 @@ }; const gui = new GUI(); - gui.onChange(render); gui.add(settings, 'numObjects', { min: 0, max: maxObjects, step: 1}); gui.add(settings, 'render'); diff --git a/webgpu/webgpu-optimization-step7-double-buffer.html b/webgpu/webgpu-optimization-step7-double-buffer.html index 3e0db6e0..2a2bfc7a 100644 --- a/webgpu/webgpu-optimization-step7-double-buffer.html +++ b/webgpu/webgpu-optimization-step7-double-buffer.html @@ -432,7 +432,6 @@ }; const gui = new GUI(); - gui.onChange(render); gui.add(settings, 'numObjects', { min: 0, max: maxObjects, step: 1}); gui.add(settings, 'render');