Backend: Introduce createUniformBuffer()#33413
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
|
The usage counter of |
createUniformBuffer()createUniformBuffer() - WIP
|
@Mugen87 Just related, it’s still a WIP. I’ll ask for your review before merging so we can test it together 😇 |
createUniformBuffer() - WIPcreateUniformBuffer()
|
Simple test - https://jsfiddle.net/ex0q4wb5/1/ -- I'm leaving this #33413 (comment) for other PR. The example |
Indeed. It took me the entire morning but I have eventually found the bug. It was double confusing because the breakage does not appear in production (over |
|
I've tested some examples locally with the WebGPU and WebGL backend and everything looks good! 👍 |
|
Huge PR!! Amazing. |


Related issue: #33373
Description
As before the idea as a whole should bring more clarity to the backend calls, including the management of removal in groups of shared and non-shared uniform buffers.
This also fixed other critical issues such as memory leaks and the recreation of shared uniform groups.