WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Wish List (https://www.wowinterface.com/forums/forumdisplay.php?f=15)
-   -   Changing max fps settings depending on zones (https://www.wowinterface.com/forums/showthread.php?t=58683)

Arempy 04-10-21 11:01 PM

Changing max fps settings depending on zones
 
Hey!

My game goes to a blackscreen and freezes for a couple seconds randomly when I'm in the 2 Bastion instances, Spires of Bastion and Empyrean Domain, but only when I have the game at 144hz.

Is there a way I can have my maxfps automatically drop to 60fps when in those 2 zones but 144fps everywhere else?

DahkCeles 04-11-21 08:42 AM

Something I threw together really quick, using the uiMapID of the Oribos top floor (because I happened to be standing next to a portal when I logged on) and fps of 45 and 60 (because I cannot dream of 144fps).

A simpler solution probably would just ask IsInInstance() and slow things a bit in all dungeons? Or, for that matter, why not just toggle the instance graphics settings in the control panel?

Lua Code:
  1. local zonesToSlowDown =
  2. {
  3.     [1671] = true,      -- Orbios: Ring of Transference
  4. }
  5.  
  6. local f = CreateFrame("Frame")
  7.  
  8. f:RegisterEvent("ZONE_CHANGED")
  9. f:RegisterEvent("ZONE_CHANGED_INDOORS")
  10. f:RegisterEvent("PLAYER_ENTERING_WORLD")
  11.  
  12. f:SetScript("OnEvent", function()
  13.     if (zonesToSlowDown[C_Map.GetBestMapForUnit("player") or 0]) then
  14.         C_CVar.SetCVar("maxFPS", 45)
  15.     else
  16.         C_CVar.SetCVar("maxFPS", 60)
  17.     end
  18. end)

Arempy 04-11-21 12:20 PM

Thank you!

I've tried going with the manual way, but I'm in the zones so scarcely that I just forget to change it until I eventually crash and think "oh ye.."


All times are GMT -6. The time now is 08:46 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI