Skip to content

Commit

Permalink
Capitalization typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Beherith committed Jul 8, 2024
1 parent 3f7aeca commit 1e159ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LuaMenu/widgets/gfx_limit_idle_fps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ if isIntel or isLinux then
hibernateFps = 2
end

if isAMD then
if isAmd then
maxVsync = 4 -- This is an attempted fix at AMD Driver 24.6.1, as it always seems to crash at interval = 5
local initVsync = Spring.GetConfigInt("VSync", 1)
if initVsync > maxVsync then
Spring.SetConfigInt("VSync", maxVsync)
end
end

Spring.Echo("Limit Idle FPS is enabled:", widget:GetInfo().enabled, "max set to ", maxVsync, 'for platform', Platform.gpuVendor)
Spring.Echo("Limit Idle FPS is enabled:", widget:GetInfo().enabled, "max set to ", maxVsync, 'for platform', Platform.gpuVendor, isAmd)
-- detect display frequency > 60 and set vsyncValueIdle to 6
local infolog = VFS.LoadFile("infolog.txt")
local monitorFrequency = 60
Expand Down

0 comments on commit 1e159ea

Please sign in to comment.