Handy batch file to fix 3D settings
  4 / 5    
I just reinstalled my drivers and didn't lose my settings or have to redo the medical test. Maybe they've fixed this issue? Or maybe it's only present on upgrades.
I just reinstalled my drivers and didn't lose my settings or have to redo the medical test. Maybe they've fixed this issue? Or maybe it's only present on upgrades.

#46
Posted 12/30/2013 07:28 PM   
I don't know. The latest drivers caused my SLI and PhysX card to become disabled, as usual*. It seems unlikely they'd fix the 3dvision but not those. (my 3dvision stuff wasn't reset, but I'm assuming that's because of the BAT file I ran immediately after) *Does anyone know if there's something we can add to the BAT to take care of SLI, and possibly dedicated PhysX as well?
I don't know. The latest drivers caused my SLI and PhysX card to become disabled, as usual*. It seems unlikely they'd fix the 3dvision but not those. (my 3dvision stuff wasn't reset, but I'm assuming that's because of the BAT file I ran immediately after)



*Does anyone know if there's something we can add to the BAT to take care of SLI, and possibly dedicated PhysX as well?

ImageVolnaPC.com - Tips, tweaks, performance comparisons (PhysX card, SLI scaling, etc)

#47
Posted 12/30/2013 09:03 PM   
[quote="Volnaiskra"]*Does anyone know if there's something we can add to the BAT to take care of SLI, and possibly dedicated PhysX as well?[/quote]Not positive, but I looked around a bit earlier, and could find nothing related to a registry key. I think it's pretty likely this is actually an nvapi.dll driver level call to enable this, and thus the setting is likely stored in the db file that the profiles are now stored in.
Volnaiskra said:*Does anyone know if there's something we can add to the BAT to take care of SLI, and possibly dedicated PhysX as well?
Not positive, but I looked around a bit earlier, and could find nothing related to a registry key. I think it's pretty likely this is actually an nvapi.dll driver level call to enable this, and thus the setting is likely stored in the db file that the profiles are now stored in.

Acer H5360 (1280x720@120Hz) - ASUS VG248QE with GSync mod - 3D Vision 1&2 - Driver 372.54
GTX 970 - i5-4670K@4.2GHz - 12GB RAM - Win7x64+evilKB2670838 - 4 Disk X25 RAID
SAGER NP9870-S - GTX 980 - i7-6700K - Win10 Pro 1607
Latest 3Dmigoto Release
Bo3b's School for ShaderHackers

#48
Posted 12/31/2013 03:06 AM   
@shinra358, @tsaebeht: I see that the .bat doesn't run in Startup folder if it needs admin privileges. Really annoying. In any case, that's just my habit, so that it's always set properly after I boot. Not everyone will want to have it run at every boot. I don't like having to change the priority, that implies some sort of race condition or speed question and if that's true it will be unreliable. I think your earlier idea of using Task Scheduler is superior. It looks like visual basic is actually the way to go for all this, since the .bat escalation code uses vbs to make that work. Using vbs would also allow us to make nvapi.dll calls for SLI. I'd love to have it auto-enable SLI as well, so if I get a chance I'll take a look at converting it to vbs. In any case, that's why I'm providing the .bat source code, so people can tune it to meet their needs. And we can all know about the registry entries and good ideas like calling nvstlink.
@shinra358, @tsaebeht: I see that the .bat doesn't run in Startup folder if it needs admin privileges. Really annoying. In any case, that's just my habit, so that it's always set properly after I boot. Not everyone will want to have it run at every boot.

I don't like having to change the priority, that implies some sort of race condition or speed question and if that's true it will be unreliable. I think your earlier idea of using Task Scheduler is superior.


It looks like visual basic is actually the way to go for all this, since the .bat escalation code uses vbs to make that work. Using vbs would also allow us to make nvapi.dll calls for SLI.

I'd love to have it auto-enable SLI as well, so if I get a chance I'll take a look at converting it to vbs.


In any case, that's why I'm providing the .bat source code, so people can tune it to meet their needs. And we can all know about the registry entries and good ideas like calling nvstlink.

Acer H5360 (1280x720@120Hz) - ASUS VG248QE with GSync mod - 3D Vision 1&2 - Driver 372.54
GTX 970 - i5-4670K@4.2GHz - 12GB RAM - Win7x64+evilKB2670838 - 4 Disk X25 RAID
SAGER NP9870-S - GTX 980 - i7-6700K - Win10 Pro 1607
Latest 3Dmigoto Release
Bo3b's School for ShaderHackers

#49
Posted 12/31/2013 03:13 AM   
Is there anychance someone can write a batch file that turns of 3d? I find to do this manually it requires so many apps to be shutdown... BF4 gives better performance when 3d is disabled even if you don't enable it in game! Also, which post do we refer to for latest settings?
Is there anychance someone can write a batch file that turns of 3d? I find to do this manually it requires so many apps to be shutdown... BF4 gives better performance when 3d is disabled even if you don't enable it in game!

Also, which post do we refer to for latest settings?

My 3D Vision Gallery
Helix 3D Fixes
Win 7 x64
i7 4960X Extreme Edition
MSI Big Bang XPower II
2x EVGA Titan Z
Silverstone Evo 1200w

#50
Posted 01/03/2014 01:23 PM   
I just want to thank all that contributed to this batch file. This is such a great tool. I hated having to do that annoying setup each time and then re-do all my custom key settings. This is a life saver! The Visual Basic idea sounds great, but over my head. I can tweak the batch file easily enough though to customize to my liking. The one other tool that I would love to have is some batch file or program to disable 3D, set monitor to 60 Hz and then back to 120 Hz. I wish I did not need this, but with so many games, my monitor sticks in 3D mode with Light boost when I exit the game. Sometimes disabling 3D alone will correct it, but many times I have to also toggle the refresh rate to get the monitor to get back to normal mode. I am guessing this could not be done via commands in a batch file unfortunately.
I just want to thank all that contributed to this batch file. This is such a great tool. I hated having to do that annoying setup each time and then re-do all my custom key settings. This is a life saver!

The Visual Basic idea sounds great, but over my head. I can tweak the batch file easily enough though to customize to my liking.

The one other tool that I would love to have is some batch file or program to disable 3D, set monitor to 60 Hz and then back to 120 Hz. I wish I did not need this, but with so many games, my monitor sticks in 3D mode with Light boost when I exit the game. Sometimes disabling 3D alone will correct it, but many times I have to also toggle the refresh rate to get the monitor to get back to normal mode. I am guessing this could not be done via commands in a batch file unfortunately.

CPU: i7 5930K, 4.5 (125x36) with Corsair H100i | MB: Asus Rampage V Extreme (1401 Bios) | GPU: NVIDIA Titan X (Pascal) & EVGA GTX 980 Ti ACX 2.0 | RAM: Corsair Vengeance 32 GB DDR4 2666MHz (4x8GB) | Storage: Crucial MX100 512 GB SSD (OS & Apps), 2 Seagate 1TB Serial ATA HD 7200/32MB/SATA-3G (Data - RAID 1) | PSU: Corsair HX1000W | Chassis: Cooler Master HAF X | OS: Win 10 Pro 1607

#51
Posted 01/03/2014 08:45 PM   
[quote="Milamber*"]Is there anychance someone can write a batch file that turns of 3d? I find to do this manually it requires so many apps to be shutdown... BF4 gives better performance when 3d is disabled even if you don't enable it in game! Also, which post do we refer to for latest settings?[/quote] Milamber, try setting up a shortcut to : "C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable You might need to edit the path, just search your machine for nvstlink.exe confirm where it is. /disable will disable 3d Vision and conversely, /enable will turn it back on again. Create two shortcuts and pin them to your taskbar. Job done! It used to be the case that having it enabled forced vsync on. That's the reason for the performance drop.
Milamber* said:Is there anychance someone can write a batch file that turns of 3d? I find to do this manually it requires so many apps to be shutdown... BF4 gives better performance when 3d is disabled even if you don't enable it in game!

Also, which post do we refer to for latest settings?


Milamber, try setting up a shortcut to :

"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable

You might need to edit the path, just search your machine for nvstlink.exe confirm where it is.
/disable will disable 3d Vision and conversely, /enable will turn it back on again.

Create two shortcuts and pin them to your taskbar. Job done!

It used to be the case that having it enabled forced vsync on. That's the reason for the performance drop.

GTX 1070 SLI, I7-6700k ~ 4.4Ghz, 3x BenQ XL2420T, BenQ TK800, LG 55EG960V (3D OLED), Samsung 850 EVO SSD, Crucial M4 SSD, 3D vision kit, Xpand x104 glasses, Corsair HX1000i, Win 10 pro 64/Win 7 64https://www.3dmark.com/fs/9529310

#52
Posted 01/03/2014 10:03 PM   
[quote="Jason20910"]The one other tool that I would love to have is some batch file or program to disable 3D, set monitor to 60 Hz and then back to 120 Hz.[/quote]To disable 3D: (Pretty sure it works with Windows 8) "C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable QRes is a great utility for changing refresh rate, among other things, from the command line. http://www.softpedia.com/get/Multimedia/Video/Other-VIDEO-Tools/QRes.shtml [quote]"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable QRes.exe /r:60 QRes.exe /r:120[/quote]
Jason20910 said:The one other tool that I would love to have is some batch file or program to disable 3D, set monitor to 60 Hz and then back to 120 Hz.
To disable 3D: (Pretty sure it works with Windows 8)
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable

QRes is a great utility for changing refresh rate, among other things, from the command line.
http://www.softpedia.com/get/Multimedia/Video/Other-VIDEO-Tools/QRes.shtml

"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable
QRes.exe /r:60
QRes.exe /r:120
#53
Posted 01/03/2014 10:56 PM   
[quote="TsaebehT"][quote="Jason20910"]The one other tool that I would love to have is some batch file or program to disable 3D, set monitor to 60 Hz and then back to 120 Hz.[/quote]To disable 3D: (Pretty sure it works with Windows 8) "C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable QRes is a great utility for changing refresh rate, among other things, from the command line. http://www.softpedia.com/get/Multimedia/Video/Other-VIDEO-Tools/QRes.shtml [quote]"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable QRes.exe /r:60 QRes.exe /r:120[/quote][/quote] That works perfect! Thank you. This is a perfect quick solution. Thanks again!
TsaebehT said:
Jason20910 said:The one other tool that I would love to have is some batch file or program to disable 3D, set monitor to 60 Hz and then back to 120 Hz.
To disable 3D: (Pretty sure it works with Windows 8)
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable

QRes is a great utility for changing refresh rate, among other things, from the command line.

http://www.softpedia.com/get/Multimedia/Video/Other-VIDEO-Tools/QRes.shtml


"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable
QRes.exe /r:60
QRes.exe /r:120


That works perfect! Thank you. This is a perfect quick solution. Thanks again!

CPU: i7 5930K, 4.5 (125x36) with Corsair H100i | MB: Asus Rampage V Extreme (1401 Bios) | GPU: NVIDIA Titan X (Pascal) & EVGA GTX 980 Ti ACX 2.0 | RAM: Corsair Vengeance 32 GB DDR4 2666MHz (4x8GB) | Storage: Crucial MX100 512 GB SSD (OS & Apps), 2 Seagate 1TB Serial ATA HD 7200/32MB/SATA-3G (Data - RAID 1) | PSU: Corsair HX1000W | Chassis: Cooler Master HAF X | OS: Win 10 Pro 1607

#54
Posted 01/04/2014 01:28 AM   
[quote="rustyk"] Milamber, try setting up a shortcut to : "C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable You might need to edit the path, just search your machine for nvstlink.exe confirm where it is. /disable will disable 3d Vision and conversely, /enable will turn it back on again. Create two shortcuts and pin them to your taskbar. Job done! It used to be the case that having it enabled forced vsync on. That's the reason for the performance drop.[/quote] And if you go in to the "properties > change icon" of the shortcut, you can change the icon to the cool 3d glasses :-)
rustyk said:

Milamber, try setting up a shortcut to :

"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable

You might need to edit the path, just search your machine for nvstlink.exe confirm where it is.
/disable will disable 3d Vision and conversely, /enable will turn it back on again.

Create two shortcuts and pin them to your taskbar. Job done!

It used to be the case that having it enabled forced vsync on. That's the reason for the performance drop.


And if you go in to the "properties > change icon" of the shortcut, you can change the icon to the cool 3d glasses :-)

#55
Posted 01/04/2014 06:09 AM   
Thanks, batch file works great!
Thanks, batch file works great!

My 3D Vision Gallery
Helix 3D Fixes
Win 7 x64
i7 4960X Extreme Edition
MSI Big Bang XPower II
2x EVGA Titan Z
Silverstone Evo 1200w

#56
Posted 01/04/2014 07:21 AM   
I've been working on a self-elevating VBS version for this that only runs the rest of the script after a driver install. My only issue is with "StereoImageType" ... I just can't seem to save in any format other than PNS, not sure what else is governing it or if the Value is something other than 0/1. I just can't seem to find a way to get it to save as JPS ... idk, maybe it's my resolution (1080p60) or the fact that I'm using 3D Vision and not 3DTV Play. What's the Value of the "StereoImageType" Key on a setup that does actually save in JPS? So far, these are the settings I'm going to include, are there any others that should be included? Most of these are the same as the original with the exception of "StereoDefaultON" (3D at Game Startup), not sure if reenabling that with TriDef installed would create any issues with it, I know how it likes to disable it. ' Screenshot Image Format ' Screenshot Quality ' Depth/Separation Setting ' Enable/Disable 3D at Game Startup ' Enable/Disable LaserSight ' Enable Stereoscopic 3D ' Enable Advanced In-Game Settings ' Keyboard Shortcuts ' Enable/Disable 3D at Windows Startup
I've been working on a self-elevating VBS version for this that only runs the rest of the script after a driver install. My only issue is with "StereoImageType" ... I just can't seem to save in any format other than PNS, not sure what else is governing it or if the Value is something other than 0/1. I just can't seem to find a way to get it to save as JPS ... idk, maybe it's my resolution (1080p60) or the fact that I'm using 3D Vision and not 3DTV Play. What's the Value of the "StereoImageType" Key on a setup that does actually save in JPS?

So far, these are the settings I'm going to include, are there any others that should be included? Most of these are the same as the original with the exception of "StereoDefaultON" (3D at Game Startup), not sure if reenabling that with TriDef installed would create any issues with it, I know how it likes to disable it.

' Screenshot Image Format
' Screenshot Quality
' Depth/Separation Setting
' Enable/Disable 3D at Game Startup
' Enable/Disable LaserSight
' Enable Stereoscopic 3D
' Enable Advanced In-Game Settings
' Keyboard Shortcuts
' Enable/Disable 3D at Windows Startup
#57
Posted 01/13/2014 09:01 PM   
Looks like that registry key for PNS is deleted by default, which triggers saving as JPS. This link: [url]http://3dvision-blog.com/5265-making-better-quality-stereo-3d-pns-screenshots-with-3d-vision/[/url] suggests that it should work to be 0/1, but deleted/missing is how it looks on my system. I still think the best default choice is JPS at 85 quality. (Taking into account file size and quality of image. We're taking game snapshots, not Ansel Adams Yosemite prints. :-)
Looks like that registry key for PNS is deleted by default, which triggers saving as JPS. This link:

http://3dvision-blog.com/5265-making-better-quality-stereo-3d-pns-screenshots-with-3d-vision/

suggests that it should work to be 0/1, but deleted/missing is how it looks on my system.

I still think the best default choice is JPS at 85 quality. (Taking into account file size and quality of image. We're taking game snapshots, not Ansel Adams Yosemite prints. :-)

Acer H5360 (1280x720@120Hz) - ASUS VG248QE with GSync mod - 3D Vision 1&2 - Driver 372.54
GTX 970 - i5-4670K@4.2GHz - 12GB RAM - Win7x64+evilKB2670838 - 4 Disk X25 RAID
SAGER NP9870-S - GTX 980 - i7-6700K - Win10 Pro 1607
Latest 3Dmigoto Release
Bo3b's School for ShaderHackers

#58
Posted 01/14/2014 04:28 AM   
Odd, it was missing/deleted on my setup too but it was always saving as PNS. I'll have to mess around with a bit more, maybe try restarting or logging off after the change. Yeah I agree, I was hoping to set "StereoImageType" to JPS by 'default' and "SnapShotQuality" somewhere from to 85-90 ... the nice thing about the way RegWrite works is it uses the decimal version of the value so 100 = 100, but I had to convert all the keyboard settings to decimal also. ([url]http://easycalculation.com/hex-converter.php[/url]) The other thing that's odd is "SnapShotQuality", mine is/was still set at the horribly low NVIDIA default but it doesn't seem to affect the way the PNSs are saved, so "StereoImageType" wasn't set and "SnapShotQuality" was really really low but it's still saving barely compressed PNSs.
Odd, it was missing/deleted on my setup too but it was always saving as PNS. I'll have to mess around with a bit more, maybe try restarting or logging off after the change.

Yeah I agree, I was hoping to set "StereoImageType" to JPS by 'default' and "SnapShotQuality" somewhere from to 85-90 ... the nice thing about the way RegWrite works is it uses the decimal version of the value so 100 = 100, but I had to convert all the keyboard settings to decimal also. (http://easycalculation.com/hex-converter.php)

The other thing that's odd is "SnapShotQuality", mine is/was still set at the horribly low NVIDIA default but it doesn't seem to affect the way the PNSs are saved, so "StereoImageType" wasn't set and "SnapShotQuality" was really really low but it's still saving barely compressed PNSs.
#59
Posted 01/14/2014 02:38 PM   
Great thread - kudos to bo3b and others for a very helpful batch file! :)
Great thread - kudos to bo3b and others for a very helpful batch file! :)

#60
Posted 08/07/2015 05:01 PM   
  4 / 5    
Scroll To Top