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.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
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.cppindex 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.