WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Is there a different RestartGX() function? (https://www.wowinterface.com/forums/showthread.php?t=56570)

galvin 08-18-18 05:13 PM

Is there a different RestartGX() function?
 
I'm trying to make an addon to set the evironment distance based on zone. The one in game does it without freezing up the game. So it can't be RestartGX() function. Must be a different way or restarting the graphics without causing a few seconds of freezing?

Vrul 08-18-18 06:42 PM

It looks like Blizzard is just calling SetCVar. You just need to call (1 <= value <= 10):
Code:

SetCVar("graphicsEnvironmentDetail", value)

galvin 08-18-18 07:16 PM

Yeah that did it, thanks


All times are GMT -6. The time now is 09:28 AM.

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