Fix resolution scale setting in shader panels

このコミットが含まれているのは:
Sergio Pedri committed 2022-01-06 17:08:53 +01:00
1 親 d430fbc4dc
コミット cb975e552a
2ファイル変更
+16 -10

検索条件に一致するファイルはありません

+4 -4
ファイルの表示
@@ -44,6 +44,7 @@ partial class SwapChainManager<TOwner>
this.renderCancellationTokenSource = new CancellationTokenSource();
this.renderThread = newRenderThread;
this.renderSemaphore = new SemaphoreSlim(0, 1);
this.isResizePending = true;
newRenderThread.Start(this);
}
@@ -85,6 +86,7 @@ partial class SwapChainManager<TOwner>
this.renderThread = newRenderThread;
this.renderSemaphore = new SemaphoreSlim(0, 1);
this.isDynamicResolutionEnabled = isDynamicResolutionEnabled;
this.isResizePending = true;
newRenderThread.Start(this);
}
@@ -149,14 +151,12 @@ partial class SwapChainManager<TOwner>
if (this.isDynamicResolutionEnabled)
{
this.targetResolutionScale = 1.0f;
this.dynamicResolutionScale = this.resolutionScale;
RenderLoopWithDynamicResolution();
}
else
{
this.targetResolutionScale = this.resolutionScale;
RenderLoop();
}
@@ -256,7 +256,7 @@ partial class SwapChainManager<TOwner>
OnPresent();
// Evaluate the dynamic resolution frame time step
if (frameTimeWatcher.Advance(frameStopwatch.ElapsedTicks, ref this.targetResolutionScale))
if (frameTimeWatcher.Advance(frameStopwatch.ElapsedTicks, ref this.dynamicResolutionScale))
{
this.isResizePending = true;
}