Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

docs(render): what the WebGPU boot warning is, and what fixing it costs

esenginee272343839eb
diff --git a/src/esengine/renderer/webgpu/WebGPUDevice.cpp b/src/esengine/renderer/webgpu/WebGPUDevice.cpp
index 2240e6596..8dc4f31ef 100644
--- a/src/esengine/renderer/webgpu/WebGPUDevice.cpp
+++ b/src/esengine/renderer/webgpu/WebGPUDevice.cpp
@@ -1564,6 +1564,9 @@ void WebGPUDevice::beginRenderPass(const RenderPassDesc& desc) {
// second camera — must reuse the one it already holds; re-acquiring
// after releasing it returns an error, and every draw after that is
// dropped, which is a black screen with nothing else wrong.
+ // A web boot logs one "Destroyed texture used in a submit" from a frame
+ // that is never ended; the frames are correct and it happens once. See
+ // docs/REARCH_RENDER.md §9 for what was measured and what it costs.
if (!frame_view_) {
WGPUSurfaceTexture st{};
wgpuSurfaceGetCurrentTexture(surface_, &st);