fix: 修复截图帧数不一致问题,改为30帧

This commit is contained in:
2026-03-15 15:15:59 +08:00
parent 60db4b77f8
commit c79533c436

View File

@@ -1120,13 +1120,13 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
staticMeshComponent.Render(commandList);
// On screenshot frame, don't transition to PRESENT - keep RENDER_TARGET for screenshot
if (frameCount != 120) {
if (frameCount != 30) {
EndRenderToSwapChain(commandList);
}
EndCommandList();
// On screenshot frame, don't Present - we'll screenshot before next frame
if (frameCount != 120) {
if (frameCount != 30) {
SwapD3D12Buffers();
}