SHA256
forked from ADOFAIEditorForum/ADOFAIRenderer
Add Renderer Feature
This commit is contained in:
1 parent
c9314c264d
commit
2556bc7f62
13 files changed
+727
-21
No files matched your search
@@ -16,7 +16,7 @@ namespace ADOFAIRenderer.Patch
|
||||
public static bool Prefix(ref float __result)
|
||||
{
|
||||
if (!RenderMod.IsCapturing || !RenderPatch) return true;
|
||||
__result = (float)(RenderManager.FrameCount / RenderManager.Configuration.TargetFPS);
|
||||
__result = (float)(RenderManager.FrameCount / RenderManager.Configuration.TargetFPS + RenderMod.TimeBase);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -28,7 +28,7 @@ namespace ADOFAIRenderer.Patch
|
||||
public static bool Prefix(ref double __result)
|
||||
{
|
||||
if (!RenderMod.IsCapturing || !RenderPatch) return true;
|
||||
__result = RenderManager.FrameCount / RenderManager.Configuration.TargetFPS;
|
||||
__result = RenderManager.FrameCount / RenderManager.Configuration.TargetFPS + RenderMod.TimeBase;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -40,7 +40,7 @@ namespace ADOFAIRenderer.Patch
|
||||
public static bool Prefix(ref float __result)
|
||||
{
|
||||
if (!RenderMod.IsCapturing || !RenderPatch) return true;
|
||||
__result = (float)(RenderManager.FrameCount / RenderManager.Configuration.TargetFPS);
|
||||
__result = (float)(RenderManager.FrameCount / RenderManager.Configuration.TargetFPS + RenderMod.UnscaledTimeBase);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -52,7 +52,7 @@ namespace ADOFAIRenderer.Patch
|
||||
public static bool Prefix(ref double __result)
|
||||
{
|
||||
if (!RenderMod.IsCapturing || !RenderPatch) return true;
|
||||
__result = RenderManager.FrameCount / RenderManager.Configuration.TargetFPS;
|
||||
__result = RenderManager.FrameCount / RenderManager.Configuration.TargetFPS + RenderMod.UnscaledTimeBase;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -64,7 +64,7 @@ namespace ADOFAIRenderer.Patch
|
||||
public static bool Prefix(ref double __result)
|
||||
{
|
||||
if (!RenderMod.IsCapturing || !RenderPatch) return true;
|
||||
__result = RenderManager.FrameCount / RenderManager.Configuration.TargetFPS;
|
||||
__result = RenderManager.FrameCount / RenderManager.Configuration.TargetFPS + RenderMod.DspTimeBase;
|
||||
return false;
|
||||
|
||||
}
|
||||
@@ -87,7 +87,7 @@ namespace ADOFAIRenderer.Patch
|
||||
public static bool Prefix(ref int __result)
|
||||
{
|
||||
if (!RenderMod.IsCapturing || !RenderPatch) return true;
|
||||
__result = RenderManager.FrameCount;
|
||||
__result = RenderManager.FrameCount + RenderMod.FrameCountBase;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user