Thread Tools Display Modes
08-18-18, 05:13 PM   #1
galvin
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 265
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?
  Reply With Quote
08-18-18, 06:42 PM   #2
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
It looks like Blizzard is just calling SetCVar. You just need to call (1 <= value <= 10):
Code:
SetCVar("graphicsEnvironmentDetail", value)
  Reply With Quote
08-18-18, 07:16 PM   #3
galvin
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 265
Yeah that did it, thanks
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Is there a different RestartGX() function?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off