SHA256
Update Debug UI
This commit is contained in:
2 files changed
+14
-4
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user