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.

fix(render): buffers growing to fit a frame log at debug, and a pass seats an input only where it reads one

yhhcbf17c16a1fc
diff --git a/desktop b/desktop
index cc9dee839..f277d7fae 160000
--- a/desktop
+++ b/desktop
@@ -1 +1 @@
-Subproject commit cc9dee8390f81dd9e45b2a756d52d5b8e29135ed
+Subproject commit f277d7fae58a82ea1b58e1bcdc7ed10e528aa06a
diff --git a/src/esengine/renderer/frame/PostProcessPipeline.cpp b/src/esengine/renderer/frame/PostProcessPipeline.cpp
index 2adb645bd..d7fea4a97 100644
--- a/src/esengine/renderer/frame/PostProcessPipeline.cpp
+++ b/src/esengine/renderer/frame/PostProcessPipeline.cpp
@@ -782,7 +782,8 @@ void PostProcessPipeline::renderPass(PostProcessPass& pass, const rg::PassContex
if (glsl) {
// Engine sampler seeding is a GLSL concept; the WGSL twins read the
// input/scene as the t0/s0 and t1/s1 bind-group pairs.
- shader->setUniform("u_texture", 0);
+ // An effect that makes its picture rather than reading one (the sky) has no input to seat.
+ if (shader->hasUniform("u_texture")) shader->setUniform("u_texture", 0);
if (shader->hasUniform("u_sceneTexture")) shader->setUniform("u_sceneTexture", 1);
if (shader->hasUniform("u_sceneDepth")) {
shader->setUniform("u_sceneDepth", static_cast<i32>(kSceneDepthUnit));
@@ -1023,7 +1024,7 @@ void PostProcessPipeline::grabScene() {
Shader* shader = resourceManager_.getShader(copyShader_);
if (!shader) return;
applyPassPipeline(*shader);
- shader->setUniform("u_texture", 0);
+ if (shader->hasUniform("u_texture")) shader->setUniform("u_texture", 0);
shader->commitParams();
drawScreenQuad();
}
@@ -1043,7 +1044,7 @@ void PostProcessPipeline::grabDepth() {
Shader* shader = resourceManager_.getShader(copyDepthShader_);
if (!shader) return;
applyPassPipeline(*shader);
- shader->setUniform("u_texture", 0);
+ if (shader->hasUniform("u_texture")) shader->setUniform("u_texture", 0);
if (shader->hasUniform("u_sceneDepth")) shader->setUniform("u_sceneDepth", static_cast<i32>(kSceneDepthUnit));
shader->commitParams();
device_.bindTexture(kSceneDepthUnit, graph_ ? graph_->depthTextureOf(sceneResource_) : TextureHandle::Invalid);
@@ -1062,7 +1063,7 @@ void PostProcessPipeline::blitPass() {
}
applyPassPipeline(*shader);
- shader->setUniform("u_texture", 0);
+ if (shader->hasUniform("u_texture")) shader->setUniform("u_texture", 0);
shader->commitParams();
drawScreenQuad();
diff --git a/src/esengine/renderer/rhi/TransientBufferPool.cpp b/src/esengine/renderer/rhi/TransientBufferPool.cpp
index f91facf82..2f5a62667 100644
--- a/src/esengine/renderer/rhi/TransientBufferPool.cpp
+++ b/src/esengine/renderer/rhi/TransientBufferPool.cpp
@@ -390,7 +390,8 @@ void TransientBufferPool::growVertexStaging(Stream& s, u32 requiredBytes) {
newSize = newSize * 2;
}
s.vertex_staging.resize(newSize);
- ES_LOG_WARN("TransientBufferPool: vertex staging grown to {}KB", newSize / 1024);
+ // Growing to fit a frame is what the pool is for, not a fault.
+ ES_LOG_DEBUG("TransientBufferPool: vertex staging grown to {}KB", newSize / 1024);
}
void TransientBufferPool::growIndexStaging(Stream& s, u32 requiredCount) {
@@ -400,7 +401,7 @@ void TransientBufferPool::growIndexStaging(Stream& s, u32 requiredCount) {
newSize = newSize * 2;
}
s.index_staging.resize(newSize);
- ES_LOG_WARN("TransientBufferPool: index staging grown to {} indices", newSize);
+ ES_LOG_DEBUG("TransientBufferPool: index staging grown to {} indices", newSize);
}
} // namespace esengine
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index 04c9621c0..0ce1f6d64 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -2734,4 +2734,8 @@ export const NOTED = {
{"internal":"An example's own script, scene and textures; what it shows is in the engine notes."},
"feat(editor): the status bar shows what the engine is baking, with its progress":
{"note":"Bakes run over frames, with progress."},
+ "fix(editor): Play fetches the open data context only when the project has one, and the frame debugger lists each entity once":
+ {"internal":"Console noise in the editor (a 404 and a duplicate-key warning); nothing a game does changes."},
+ "fix(render): buffers growing to fit a frame log at debug, and a pass seats an input only where it reads one":
+ {"internal":"Log levels and a guarded uniform write: the console no longer warns about normal buffer growth or a sky pass with no input texture; nothing drawn changes."},
};