Overclock.net › Forums › Video Games › PC Gaming › [Guide] [NVIDIA] Enabling vsync for Minecraft
New Posts  All Forums:Forum Nav:

[Guide] [NVIDIA] Enabling vsync for Minecraft

post #1 of 13
Thread Starter 
Intro
When you launch Minecraft does your Nvidia card rev up? Silly card, it's only Minecraft that you're playing -- so why exactly does it rev up?

Because you get insane FPS in Minecraft.

I get an average of 700 FPS and 950-1000 while sitting in the menu screen.

Solution: Turn vsync on for Minecraft!
Problem: It's not exactly clear on how to do this, a lot of people target Minecraft.exe or the jar file for Minecraft. This is incorrect.

So if you can't target the jar file or the Minecraft.exe file, what can you target? A file called "javaw.exe". The only possible "downside" to this method is that all of your java applications that run through javaw will have vsync enabled. To me this isn't a con, it's a pro. YMMV.

Steps

Requirements
- NVIDIA Control Panel

1. Open the NVIDIA Control Panel by right-clicking your desktop and clicking on "NVIDIA Control Panel"

2.
On the left go to "Manage 3D Settings"

There will be 2 tabs now on the right. Click the one that says "Program Settings"

3.
Click the button that says "Add"

You will be presented with a file dialog box, we have to find your Java installation directory.

This will be something like:

Java 7

- C:/Program Files/Java/jre7/bin/
or
- C:/Program Files (x86)/Java/jre7/bin/

Java 6

- C:/Program Files/Java/jre6/bin/
or
- C:/Program Files (x86)/Java/jre6/bin/

4.
Once you've found the directory you want to add the file called "javaw.exe"

NOT: javaws, java, javacpl, etc.

Click Open once javaw.exe is selected.

5.
Under "Specify the settings for this program" we want to turn vsync and triple buffering (optional) on.

These two items are located at the bottom of the list, so scroll all the way down.

Triple Buffering: On
Vertical sync: Force on

6.
We're now done, click Apply at the bottom of the screen and close the control panel.

If done properly you should now see that you're FPS in Minecraft is affected by vsync.

To see your FPS you can either use third party software such as Fraps
OR
Login to a Minecraft server and hit F3, your FPS information should be shown in the top left corner with some other information.

Enjoy! thumb.gif
post #2 of 13
Thread Starter 
If this is the wrong section to post this in please move it!

I only posted this because I've seen a few people complain about hot temps while playing and couldn't figure out a solution rolleyes.gif
post #3 of 13
tried it and it does work the 2 570's don't seem to be stressing out so much. now also vsync for minecraft i must say it is shoit the lagg with vsync is pretty awful (i don't know if there is a solution for this) but the frame cap is at 60fps and there is no noticable frame tearing i think i will give a go of adaptive vsync for minecraft and see if that is any better. thanks for this guide though very helpful +rep
 
170 BPM
(8 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 3570k Asrock Extreme 6 z77  Gainward Phantom GTX 570 (waiting for GTX 780) G.skill 16gb 
Hard DriveOptical DriveCoolingCooling
Western digital 2TB Hdd LG 24x optical drive x2 2x bitfenix spectre green 120mm fans Noctua NH-U12P 
CoolingOSMonitorKeyboard
4x included case fans Win 7 home premium 64bit Asus 27" 1920x1200 logitech G510 gaming keyboard 
PowerCaseMouseMouse Pad
silverstone 850W Corsair Carbide 500r logitech G400 razer goliathusXL 
AudioAudioAudioAudio
Razer Orca music/gaming headphones Audio Technica ATH-M35 Audio Technica SJ11 Audio Technica SJ55 
AudioAudioAudioAudio
Audio Technica ATH M-50 Sony MDRZX600R Sony MDR XB 700 Asus Xonar DX sound card 
AudioAudioOther
Sony MDR-V6 Audio technica ATH M-35 Blue Snowball microphone 
CPUMotherboardGraphicsRAM
Intel Core i5 520M Aspire 5740 Mobility Radeon HD 5650 Samsung 8GB DDR3 
Hard DriveOSMouseMouse Pad
Western Digital 2TB 7200RPM Windows 7 64 bit logitech G400 Razer Goliathus 
  hide details  
Reply
 
170 BPM
(8 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 3570k Asrock Extreme 6 z77  Gainward Phantom GTX 570 (waiting for GTX 780) G.skill 16gb 
Hard DriveOptical DriveCoolingCooling
Western digital 2TB Hdd LG 24x optical drive x2 2x bitfenix spectre green 120mm fans Noctua NH-U12P 
CoolingOSMonitorKeyboard
4x included case fans Win 7 home premium 64bit Asus 27" 1920x1200 logitech G510 gaming keyboard 
PowerCaseMouseMouse Pad
silverstone 850W Corsair Carbide 500r logitech G400 razer goliathusXL 
AudioAudioAudioAudio
Razer Orca music/gaming headphones Audio Technica ATH-M35 Audio Technica SJ11 Audio Technica SJ55 
AudioAudioAudioAudio
Audio Technica ATH M-50 Sony MDRZX600R Sony MDR XB 700 Asus Xonar DX sound card 
AudioAudioOther
Sony MDR-V6 Audio technica ATH M-35 Blue Snowball microphone 
CPUMotherboardGraphicsRAM
Intel Core i5 520M Aspire 5740 Mobility Radeon HD 5650 Samsung 8GB DDR3 
Hard DriveOSMouseMouse Pad
Western Digital 2TB 7200RPM Windows 7 64 bit logitech G400 Razer Goliathus 
  hide details  
Reply
post #4 of 13
Thread Starter 
Not sure why you would lag, that's probably a SLI or driver problem thumb.gif
post #5 of 13
I'll go and give it shot. If only I can get 60fps with 256x texture pack and Sonic's unbelievable shaders. Is there anyway to make MC use SLI properly? Sonic's shaders or any GLSL shaders can make one of my GPU run at 99% usage while second remains 0%.
My System
(15 items)
 
  
CPUMotherboardGraphicsRAM
i5-3570K @4.5GHz ASRock Z77 Extreme6 EVGA GTX 670 FTW @ 1246/6804 4x2GB 2000MHz DRR3 
Hard DriveHard DriveOptical DriveCooling
Secondary: 2TB 7200rpm Secondary: 640GB 7200rpm Main: Crucial M4 128GB ASUS Blu-ray player CoolerMaster V6GT 
OSMonitorPowerCase
Windows 7 Home Premium 64bit Acer G235H 23" 1920x1080  XTREMEGEAR 950W AZZA Hurricane 2000 
  hide details  
Reply
My System
(15 items)
 
  
CPUMotherboardGraphicsRAM
i5-3570K @4.5GHz ASRock Z77 Extreme6 EVGA GTX 670 FTW @ 1246/6804 4x2GB 2000MHz DRR3 
Hard DriveHard DriveOptical DriveCooling
Secondary: 2TB 7200rpm Secondary: 640GB 7200rpm Main: Crucial M4 128GB ASUS Blu-ray player CoolerMaster V6GT 
OSMonitorPowerCase
Windows 7 Home Premium 64bit Acer G235H 23" 1920x1080  XTREMEGEAR 950W AZZA Hurricane 2000 
  hide details  
Reply
post #6 of 13
Thread Starter 
Quote:
Originally Posted by IronWill1991 View Post

I'll go and give it shot. If only I can get 60fps with 256x texture pack and Sonic's unbelievable shaders. Is there anyway to make MC use SLI properly? Sonic's shaders or any GLSL shaders can make one of my GPU run at 99% usage while second remains 0%.

That seems to be a common problem which, unfortunately, I can't test (I don't have an SLI configuration).

I wish I could offer help redface.gif
post #7 of 13
The vertical sync still doesn't work. I found java files in Program Files instead Program Files (x86). I tried both javaw.exe and java.exe. I looked at the process and I noticed MC is using java.exe in System 32 folder. Plus I'm running MC off minecraft.jar using the bat file.
My System
(15 items)
 
  
CPUMotherboardGraphicsRAM
i5-3570K @4.5GHz ASRock Z77 Extreme6 EVGA GTX 670 FTW @ 1246/6804 4x2GB 2000MHz DRR3 
Hard DriveHard DriveOptical DriveCooling
Secondary: 2TB 7200rpm Secondary: 640GB 7200rpm Main: Crucial M4 128GB ASUS Blu-ray player CoolerMaster V6GT 
OSMonitorPowerCase
Windows 7 Home Premium 64bit Acer G235H 23" 1920x1080  XTREMEGEAR 950W AZZA Hurricane 2000 
  hide details  
Reply
My System
(15 items)
 
  
CPUMotherboardGraphicsRAM
i5-3570K @4.5GHz ASRock Z77 Extreme6 EVGA GTX 670 FTW @ 1246/6804 4x2GB 2000MHz DRR3 
Hard DriveHard DriveOptical DriveCooling
Secondary: 2TB 7200rpm Secondary: 640GB 7200rpm Main: Crucial M4 128GB ASUS Blu-ray player CoolerMaster V6GT 
OSMonitorPowerCase
Windows 7 Home Premium 64bit Acer G235H 23" 1920x1080  XTREMEGEAR 950W AZZA Hurricane 2000 
  hide details  
Reply
post #8 of 13
Thread Starter 
Quote:
Originally Posted by IronWill1991 View Post

The vertical sync still doesn't work. I found java files in Program Files instead Program Files (x86). I tried both javaw.exe and java.exe. I looked at the process and I noticed MC is using java.exe in System 32 folder. Plus I'm running MC off minecraft.jar using the bat file.

This should work as long as you add the correct file. Have you tried adding the file from System32 that it's using?

Make sure that you apply the settings then close and re open Minecraft to ensure that the new settings are being used.

I don't recall ever having Java 6/7 installed into System32, are you sure you're using the latest version? Try downloading Java 7 and applying this fix to the jre7/bin/javaw.exe file. Also, check out your batch file and see if it's using "java" or "javaw" to launch MC -- if it's using "java" try changing it to "javaw". From my knowledge it shouldn't be using "java" as Minecraft isn't a console application..

If that fails you can always force it to use the javaw.exe from the batch file like this:

(edit this and change jre7 to jre6 if you're still using 6)
Code:
@ECHO OFF
"C:\Program Files\Java\jre7\bin\javaw.exe" -jar minecraft.jar
post #9 of 13
I rather not to use java 7. It's little buggy. I'm using Java 64bit version 31.

This is my current bat file
Code:
@echo off
java -Xincgc -Xmx2556M -jar minecraft.jar
exit

I'll try to modify it to be more specific.
My System
(15 items)
 
  
CPUMotherboardGraphicsRAM
i5-3570K @4.5GHz ASRock Z77 Extreme6 EVGA GTX 670 FTW @ 1246/6804 4x2GB 2000MHz DRR3 
Hard DriveHard DriveOptical DriveCooling
Secondary: 2TB 7200rpm Secondary: 640GB 7200rpm Main: Crucial M4 128GB ASUS Blu-ray player CoolerMaster V6GT 
OSMonitorPowerCase
Windows 7 Home Premium 64bit Acer G235H 23" 1920x1080  XTREMEGEAR 950W AZZA Hurricane 2000 
  hide details  
Reply
My System
(15 items)
 
  
CPUMotherboardGraphicsRAM
i5-3570K @4.5GHz ASRock Z77 Extreme6 EVGA GTX 670 FTW @ 1246/6804 4x2GB 2000MHz DRR3 
Hard DriveHard DriveOptical DriveCooling
Secondary: 2TB 7200rpm Secondary: 640GB 7200rpm Main: Crucial M4 128GB ASUS Blu-ray player CoolerMaster V6GT 
OSMonitorPowerCase
Windows 7 Home Premium 64bit Acer G235H 23" 1920x1080  XTREMEGEAR 950W AZZA Hurricane 2000 
  hide details  
Reply
post #10 of 13
Thread Starter 
Quote:
Originally Posted by IronWill1991 View Post

I rather not to use java 7. It's little buggy. I'm using Java 64bit version 31.
This is my current bat file
Code:
@echo off
java -Xincgc -Xmx2556M -jar minecraft.jar
exit
I'll try to modify it to be more specific.
Code:
@echo off
"C:/Program Files/java/jre6/bin/javaw.exe" -Xincgc -Xmx2556M -jar minecraft.jar
exit

Should do the trick then if you add

"C:/Program Files/java/jre6/bin/javaw.exe"

To the NVIDIA Control Panel thumb.gif

(assuming that's your path)
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: PC Gaming
Overclock.net › Forums › Video Games › PC Gaming › [Guide] [NVIDIA] Enabling vsync for Minecraft