Update Debug UI

This commit is contained in:
copecone committed 2026-06-20 07:39:49 +09:00
1 parent f1aa8a0582
commit bb16bdad05
2 files changed
+14 -4

No files matched your search

+7
View File
@@ -26,6 +26,9 @@ namespace ADOFAIRenderer.Core
public const int MaxQueuedFrames = 64;
public const int MaxRenderRetry = 64;
// Statistics
public long framesSent;
// Core Render Configuration and Path
public int countdown;
@@ -382,6 +385,7 @@ namespace ADOFAIRenderer.Core
}
frameCount = 0;
framesSent = 0;
timeBase = Time.timeAsDouble;
unscaledTimeBase = Time.unscaledTimeAsDouble;
dspTimeBase = AudioSettings.dspTime;
@@ -507,12 +511,15 @@ namespace ADOFAIRenderer.Core
if (frame.ManagedBuffer.Length > 0)
{
videoFFmpeg.SendDataFromBuffer(frame.ManagedBuffer, frame.Length);
Interlocked.Increment(ref framesSent);
ArrayPool<byte>.Shared.Return(frame.ManagedBuffer);
}
}
else if (frame.NativePointer != IntPtr.Zero && frame.Length > 0)
{
videoFFmpeg.SendDataFromNativeBuffer(frame.NativePointer, frame.Length);
Interlocked.Increment(ref framesSent);
if (frame.ReadbackState != null)
{