Rename wonFrame to endFrame to Fit Codebase Semantics

This commit is contained in:
copecone committed 2026-08-20 10:21:14 +09:00
1 parent 003319fa26
commit 5ffd73052d
2 files changed
+7 -7

No files matched your search

+5 -5
View File
@@ -121,7 +121,7 @@ internal class RenderManager : MonoBehaviour
public long passCount;
public bool endRequested;
public bool endSuccessful;
public long wonFrame = -1;
public long endFrame = -1;
// Private Instance Fields
private FFmpegNativeEncoder? _activeVideoFFmpeg;
@@ -235,7 +235,7 @@ internal class RenderManager : MonoBehaviour
StartRendering();
countdown = 3;
wonFrame = -1;
endFrame = -1;
if (!_escapeHandlerObj)
{
@@ -257,14 +257,14 @@ internal class RenderManager : MonoBehaviour
}
else if (RenderContext.EndCondition())
{
if (wonFrame == -1)
if (endFrame == -1)
{
wonFrame = frameCount;
endFrame = frameCount;
}
var extraFrames = (long)Math.Ceiling(Configuration.DelayAfterEnd * Configuration.RenderFPS);
if (frameCount - wonFrame < extraFrames) return;
if (frameCount - endFrame < extraFrames) return;
ResetRenderState(success: true);
StopFFmpeg(true);
}