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): a frame is closed once, and the forgiving second close cost a capture

esengine0a329a89008e
diff --git a/src/esengine/renderer/frame/RenderFrame.cpp b/src/esengine/renderer/frame/RenderFrame.cpp
index 3d0a79a59..06e68a71b 100644
--- a/src/esengine/renderer/frame/RenderFrame.cpp
+++ b/src/esengine/renderer/frame/RenderFrame.cpp
@@ -271,10 +271,6 @@ void RenderFrame::releaseFrameTargets() {
}
void RenderFrame::beginFrame() {
- // A frame a host never closed. Forgiving rather than strict: the cost of
- // closing it here is one frame's deferral, and the cost of NOT is a backend
- // holding a swapchain image forever.
- device_.endFrame();
// Here and not at end(), which runs once per CAMERA: every camera plans and
// renders its own maps, and the pool hands the same physical atlas to each in
// turn. Then one tick of the clock, by the frame that owns the pool.