From 8377e43031755168b5de3b0c7b1072d83ae0d9b7 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Wed, 5 Jun 2024 13:46:25 -0700 Subject: [PATCH] wip --- toc.hanson | 2 +- ...optimizating.md => webgpu-optimization.md} | 6 + ...ly-updated-uniform-buffers-pre-submit.html | 602 ++++++++++++++++++ 3 files changed, 609 insertions(+), 1 deletion(-) rename webgpu/lessons/{webgpu-optimizating.md => webgpu-optimization.md} (98%) create mode 100644 webgpu/webgpu-optimization-step5-double-buffer-frequenly-updated-uniform-buffers-pre-submit.html diff --git a/toc.hanson b/toc.hanson index 7643317d..f817dd21 100644 --- a/toc.hanson +++ b/toc.hanson @@ -58,7 +58,7 @@ 'webgpu-resizing-the-canvas.md', 'webgpu-multiple-canvases.md', 'webgpu-points.md', - 'webgpu-from-webgl.md' + 'webgpu-from-webgl.md', 'webgpu-optimization.md', 'webgpu-resources.md', 'webgpu-wgsl-function-reference.md', diff --git a/webgpu/lessons/webgpu-optimizating.md b/webgpu/lessons/webgpu-optimization.md similarity index 98% rename from webgpu/lessons/webgpu-optimizating.md rename to webgpu/lessons/webgpu-optimization.md index a42b1100..773eab43 100644 --- a/webgpu/lessons/webgpu-optimizating.md +++ b/webgpu/lessons/webgpu-optimization.md @@ -235,6 +235,12 @@ normal matrices, we'd have two. We'd ping-pong which one we're updating. This why, while WebGPU is drawing using one of those 2 buffers, we'r updating the other. So, WebGPU never has to wait. +{{{example url="../webgpu-optimization-none.html"}}} + +{{{example url="../webgl-optimization-none-uniform-buffers.html"}}} + + + * Texture Atlas or 2D-array diff --git a/webgpu/webgpu-optimization-step5-double-buffer-frequenly-updated-uniform-buffers-pre-submit.html b/webgpu/webgpu-optimization-step5-double-buffer-frequenly-updated-uniform-buffers-pre-submit.html new file mode 100644 index 00000000..7d0adb9c --- /dev/null +++ b/webgpu/webgpu-optimization-step5-double-buffer-frequenly-updated-uniform-buffers-pre-submit.html @@ -0,0 +1,602 @@ + + + + + + WebGPU Optimization - None + + + + +

+  
+  
+