SHA256
Fix Invalid Frame Skip Detection
This commit is contained in:
1 parent
f807eae382
commit
f40738a4e6
3 files changed
+9
-6
No files matched your search
@@ -17,15 +17,15 @@ namespace ADOFAIRenderer.Patch.ClassPatch
|
||||
{
|
||||
if (!RenderMod.IsRendering) return;
|
||||
|
||||
___txt.text = "Rendering...";
|
||||
if (RenderManager.Countdown > 0) ___txt.text = $"Rendering in {RenderManager.Countdown}..";
|
||||
___txt.text = "Render";
|
||||
if (RenderManager.Countdown > 0) ___txt.text = $"Render in {RenderManager.Countdown}s..";
|
||||
|
||||
if (RenderManager.WonFrame != -1)
|
||||
{
|
||||
var elapsedFrames = RenderManager.FrameCount - RenderManager.WonFrame;
|
||||
var remainingTime = RenderManager.Configuration.EndWaitTime - elapsedFrames / RenderManager.Configuration.TargetFPS;
|
||||
if (remainingTime < 0) remainingTime = 0;
|
||||
___txt.text += $"\nWaiting for {remainingTime:F1}s...";
|
||||
___txt.text += $"\nWaiting for {remainingTime:F1}s..";
|
||||
}
|
||||
|
||||
___txt.color = ___defaultColor;
|
||||
|
||||
Reference in new issue
Block a user