mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-02-01 21:24:22 +01:00
WIP
This commit is contained in:
parent
c3838a89be
commit
f3cbc03c30
|
|
@ -370,7 +370,7 @@ namespace PowerControl.Helpers.AMD
|
|||
internal static extern int ADL2_Display_ModeTimingOverrideList_Get(IntPtr context, int adapterIndex, int displayIndex, int maxOverrides, out ADLDisplayModeInfoArray modes, out int modesCount);
|
||||
|
||||
[DllImport(Atiadlxx_FileName)]
|
||||
internal static extern int ADL_Flush_Driver_Data(int adapterIndex);
|
||||
internal static extern int ADL2_Flush_Driver_Data(IntPtr context, int adapterIndex);
|
||||
#endregion DLLImport
|
||||
|
||||
#region ADL_Main_Memory_Alloc
|
||||
|
|
|
|||
|
|
@ -127,10 +127,11 @@ namespace PowerControl.Helpers.AMD
|
|||
return;
|
||||
|
||||
ADLDisplayModeInfo lastModeInfo = modeInfos.LastOrDefault();
|
||||
int count = 0;
|
||||
|
||||
foreach (var modeInfo in modeInfos)
|
||||
{
|
||||
SetTimingOverride(modeInfo, modeInfo.Equals(lastModeInfo));
|
||||
SetTimingOverride(modeInfo, modeInfo.Equals(lastModeInfo) || (count++ % 10 == 9));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue