SHA256
Rename wonFrame to endFrame to Fit Codebase Semantics
This commit is contained in:
2 files changed
+7
-7
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user