IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules Grand Theft Auto IV

Please include the following information when describing your issue:

  • Where exactly in the game you experienced the issue (start screen, while playing the game, etc.)
  • What version of the game you have (retail, steam, other online store)
  • What is your OS
  • Benchmark info or DxDiag is also helpful

Useful Links: Rockstar Support Updates; NVIDIA Drivers; ATI Drivers; PC Version Error Codes


Modding question/problem? Post in one of these forums
Illegally obtained copies are NOT supported. Discussion of cracks in any form is forbidden.

  Reply to this topicStart new topicStart Poll

 [FAQ] How to use commandline switches

 Properly
 
mkey82  
Posted: Thursday, Sep 9 2010, 21:17
Quote Post


Keep riding hard, son
Group Icon
Group: Members
Joined: Feb 14, 2008

Member Award




GTAIV/EFLC feature commandline switches which enable some system specific settings the game engine isn't capable of figuring out on its own. You have to do it manually and test things out, find what works best for your system. In many cases this produces good results so don't give up if you initially run into trouble.

More details about the commandline switches can be found in the FAQ, here. This list may be a bit old, there are some new switches added later on, the following should be valid for the latest game version (1.0.7.0)

user posted image

Thanks to smiler_16 for the screenshot... which is now offline, so here's the list
CODE
LaunchGTAIV.exe [options]
Where [options] are one or more of:

==== [ Global ] ====
-adapter: Use the specified screen adapter number <zero-based>
-disableimposters: Turn of the imposter rendering for vehicles
-noBlockOnLostFocus: Don't block the window update when it loses focus.

==== [AUDIO] ====
-fullspecaudio: Force high-end CPU audio footprint
-minspecaudio: Force low-end CPU audio footprint

==== [GLOBAL] ====
-benchmark: Determines if we run the benchmark immediately
-safemode: Sets graphics setting to lowest setting

==== [GRAPHICS] ====
-forcehighqualitymirrors: Enable 64 bit mirrors
-forcer2vb: force r2vb
-frameLimit: number of frames to limit game to
-framelockinwindow: Force framelock to work even in a window <works best with 60Hz monitor refresh>
-fullscreen: Force fullscreen mode
-gpucount: Lets you manually set the GPU count if query fails
-height:  Set height of main render window <default is 480>
-managed: Use D3D runtime managed resources
-nominimize: Disables the ability to restore the game from minimize and changing resolutions - Reduces System Memory Footprint
-norestrictions: Do not limit graphics settings
-noswapdelay: Disable sleep delay before Present <disable fix for hard Present stalls>
-novblank: Disable wait for vblank
-refreshrate: Set refresh rate of main render window
-stereo:  Set game to support stereo rendering mode
-unmanaged: Use application managed resources
-width:   Set width of main render window <default is 640>
-windowed: Force windowed mode

==== [INPUT] ====
-usedirectinput: Allow DirectInput alongside XInput support.

==== [MEMORY] ====
-availablevidmem: Percentage of available video memory
-memrestrict: Set the restriction the amount of available memory for managed resources
-no_3GB:  Disable 32bit OS with /3GB
-nomemrestrict: Do not restrict the amount of available memory for managed resources
-noprecache: Do not precache resources
-percentvidmem: Percentage of video memory to make available to GTA
-reserve: Amount of memory to set aside for other applications
-reservedApp: Amount of memory to leave available within application space

==== [QUALITY SETTINGS] ====
-autoconfig: Automatically adjust quality setting to maintain desired frame rate <15-120>
-detailquality: Set detail distance <0-99>
-renderquality: Set anisotropic filtering <0-4>
-shadowdensity: Set the number of lights that cast shadows
-shadowquality: Set the shadow quality <0-4>
-texturequality: Set texture quality <0-2>
-viewdistance: Set LOD view distance <0-99>

==== [TIME] ====
-notimefix: Disable Time Fix


In this topic I'll reflect on some stuff I find to be most important and where people usually make mistakes. The best method to use commandline options would be to write some switches inside a text file called "commandline.txt" and then place that file inside the game directory where the game executables are found.You may find that commandlines don't work for you, there are a few possible solutions.


Troubleshooting
  • the file needs to be named "commandline.txt", not "commandline.txt.txt" which could happen if you have hidden system extensions. Your best bet is to open up notepad, write your commandline switches inside and then save it as "commandline.txt" or just "commandline", it doesn't matter as notepad will append the ".txt" extension if you omit it.
  • sometimes it's best to delete the commadline file and create a new one.
  • if you have placed some switches into a shortcut to the launcher, you'll want to delete that one and a create a new shortcut.
  • in some rare cases the game refuses to use commandlines, what you can try is to delete the game settings, this may help but it's not guaranteed.
What can be achieved with switches?
  • you can cause massive game instability if you decide to force settings with "nomemrestrict" and "norestrictions". These two switches will allow you to max out the game on any hardware which usually will not end well. In some rare cases contrary to logic and common sense, it has been shown the game will act more stable if you use these commands but you shouldn't overdo with the settings.

    Example
    CODE
    -norestrictions
    -nomemrestrict


    Generally, I don't recommend using these two switches at all.

  • you can reduce or eliminate the stuttering effect by using "memrestrict". This also fixes some crashes on older game versions usually due to memory leaks. Note that this switch shouldn't be mixed with ones mentioned above. There are a few ways to calculate the memrestrict value, but usually some tweaking is necessary to achieve best performance. The general way to go about is to use

    CODE
    <total VRAM amount present in your system, that is VRAM on your GPU in MB>*1024*1024


    For a 1GB graphics card, you would get 1000*1024*1024=1048576000. Now, this would be a *top* borderline value and you'll want to reduce it a bit to make the game more stable. So basically you can reduce it in steps of about 5-10% until you notice some improvements. On higher end you'll get more stutter and less pop-up, while on lower end the game should be more stable but with more pop-up textures being visible. This is simply because you are limiting the memory amount the game has available so the textures will have to be reloaded more often. While they are loading there is a delay so they don't get drawn on time on the screen.
    This has also another side effect. Sometimes, because of less stuff being drawn, you may experience better performance but with textures and objects popping out all over the place. This is also true in some cases when too high settings are applied.

    Example
    CODE
    -memrestrict 734003200

  • you can force a bit higher settings while balancing between extra niceness and pop-up and stuttering. This is best used on capable 512MB cards, where you would like to use the high resolution textures (which in many cases seem to give better performance then medium resolution ones and definitively look a lot better) but your VRAM just can't cut it. You can use "availablevidmem" to extend your VRAM amount and make the game use your system RAM as if it belonged to the graphics card. Of course this will be slower and the key is not to overdo it.

    Your best bet is to initially use something like "avaiablevidmem 2.0", then go into game configuration and choose all the settings you would love to use (while not overdoing it). Take note of the memory usage displayed on the bottom of the screen and divide this number by the actual amount of VRAM. Let's say you have a 512MB card and that your total settings amount to 725MB in game. Now you would divide 725/512=1.41. This means you should use 1.5 value so close the game and edit the commandlines file.

    Example
    CODE
    -availablevidmem 1.5


    From my experience, you shouldn't go past 1.5 as the game becomes too unstable and you should ask yourself what exactly do you want your card to do. Obviously forcing too high settings isn't a good idea.
A few examples of BAD commandline usage
  • conflicting commands
    CODE
    -nomemrestrict
    -memrestrict 734003200

  • conflicting and nonsense commands
    CODE
    -norestrictions
    -nomemrestrict
    -availablevidmem 2.0
    -percentvidmem 100

  • conflicting and nonexistent commands
    CODE
    -memrestrict 734003200
    -availablevidmem 1.7
    -dx10
    -high


This post has been edited by mkey82 on Thursday, Aug 16 2012, 18:56
Users WebsitePM
  Top
 

 
neon_91  
Posted: Thursday, Sep 9 2010, 22:03
Quote Post


Crackhead
Group Icon
Group: Members
Joined: Sep 2, 2010

XXXXX



you are my hero tnx
PM
  Top
 

 
mkey82  
Posted: Friday, Sep 10 2010, 04:56
Quote Post


Keep riding hard, son
Group Icon
Group: Members
Joined: Feb 14, 2008

Member Award




You're welcome.
Users WebsitePM
  Top
 

 
thestig93  
Posted: Monday, Dec 20 2010, 00:07
Quote Post


Wanted for Grand Theft Auto
Group Icon
Group: Members
Joined: Jun 14, 2008

bu.gif

XXXXX



So, we have to choose, it's either texture pop or stutter.

I have an ati 4830 card, 4gigs of 800mhz ram,Q8200 and a 64bit os. I use 346 out of 498mb of available vram. In your opinion, how much shlould my memrestrict be if I wanna remove both stutter and texture pop.

I use theese settings:

1680x1050 60Hz
everything medium
AF 16x
detail and view distances are set to 23
vehicle density 16
Vsync On
PM
  Top
 

 
mkey82  
Posted: Monday, Dec 20 2010, 06:16
Quote Post


Keep riding hard, son
Group Icon
Group: Members
Joined: Feb 14, 2008

Member Award




Aim at 400MB, so it would be 400*1024*1024. But really you must test.
Users WebsitePM
  Top
 

 
Exxon  
Posted: Thursday, Feb 3 2011, 18:19
Quote Post


The Obvious Child
Group Icon
Group: Members
Joined: Oct 11, 2010

nl.gif

XXXXX



i think i already know the answer, but what happens if i put -height 1200 & -width 1600 in the commandline while i have a screen of 1280x1024 ?
PMMSNXbox Live
  Top
 

 
Exxon  
Posted: Thursday, Feb 3 2011, 18:27
Quote Post


The Obvious Child
Group Icon
Group: Members
Joined: Oct 11, 2010

nl.gif

XXXXX



never mind my previous reply, it'll be just 800x600 because, ofcourse, i can't do 1600x1200 wink.gif
PMMSNXbox Live
  Top
 

 
mkey82  
Posted: Thursday, Feb 3 2011, 18:28
Quote Post


Keep riding hard, son
Group Icon
Group: Members
Joined: Feb 14, 2008

Member Award




Well, either the game would refuse to start as the system would deny the unsupported resolution or the screen would just switch off or the game would fallback to the nearest supported resolution. I think the second option is most probable.
Users WebsitePM
  Top
 

 
methodunderg  
Posted: Friday, Apr 1 2011, 03:13
Quote Post


Grandpa
Group Icon
Group: Members
Joined: May 23, 2008

nz.gif

XXXXX



Thanks for the info. On my computer; I couldn't see the whole list of features. No idea why they didn't implement a scrollbox for the commandline.txt info.

I've seen a few people release there ENB series with this in there commandline
QUOTE
-reflectionresolution 2048
-shadowresolution 2048
-fullspecaudio
-dx10
/high

These come from well-respected modders from the ENB Community. Can you explain what these do ? Or maybe they are for other versions than 1.0.7.0 ?
PM
  Top
 

 
mkey82  
Posted: Friday, Apr 1 2011, 07:13
Quote Post


Keep riding hard, son
Group Icon
Group: Members
Joined: Feb 14, 2008

Member Award




Well...

-fullspecaudio is on the list, it's the default setting, so afaik you don't need to use it. minspecaudio is for meant for low end machines
-dx10 is a load of bull
/high is a piece of sh*t as well, both pertain to a fairytale, don't know who started using them, but I guess people will make up what is lacking

Now, what puzzles me are reflectionresolution and shadowresolution, I always took these for granted, but only now I realize they are not documented so that leaves me... well, puzzled. Have you tried avoiding the use of those commands to see if they have any actual impact on the game quality/performance?

They are not mentioned in the vanilla readme neither, I doubt R* would remove options instead of adding them.

http://www.rockstargames.com/support/gta4p...N_V6_061108.txt

This post has been edited by mkey82 on Friday, Apr 1 2011, 07:15
Users WebsitePM
  Top
 

 
jesushumper  
Posted: Wednesday, Apr 27 2011, 09:01
Quote Post


Prankster
Group Icon
Group: Members
Joined: May 11, 2005

XXXXX



2600k at 4.8ghz - HT off
8gb DDR3
2gb 6950 - unlocked shaders.

I've tried about 10 different settings for this command line thing, and my stuttering hasn't changed on bit.

Everythign maxed, but detail at 80, 6048x1200 resolution. I get 29-50fps constantly. But i still get the slow stutter... Oy.
PM
  Top
 

 
mkey82  
Posted: Wednesday, Apr 27 2011, 10:48
Quote Post


Keep riding hard, son
Group Icon
Group: Members
Joined: Feb 14, 2008

Member Award




Try placing "-benchmark" in the commandline file to see if it's reading it properly.
Users WebsitePM
  Top
 

 
d4v1d  
Posted: Wednesday, Apr 27 2011, 16:44
Quote Post


David, not d4v1d
Group Icon
Group: Members
Joined: Apr 29, 2009

ia.gif

XXXXX



Nice FAQ, I think this should be stickied.
PM
  Top
 

 
jesushumper  
Posted: Wednesday, Apr 27 2011, 19:33
Quote Post


Prankster
Group Icon
Group: Members
Joined: May 11, 2005

XXXXX



QUOTE (mkey82 @ Apr 27 2011, 10:48)
Try placing "-benchmark" in the commandline file to see if it's reading it properly.

Yep, it's taking. Also tried using Xliveless.

Even tried lowering m texture quality and using even lower values, with no luck. Also tried higher values than the ones listed. confused.gif And lowering in-game options like draw distance and details, shadow, etc.

Back on the shelf it goes.
PM
  Top
 

 
mkey82  
Posted: Wednesday, Apr 27 2011, 21:10
Quote Post


Keep riding hard, son
Group Icon
Group: Members
Joined: Feb 14, 2008

Member Award




memrestrict just doesn't have any effect in some cases, sorry man.
Users WebsitePM
  Top
 

 
jesushumper  
Posted: Wednesday, Apr 27 2011, 22:34
Quote Post


Prankster
Group Icon
Group: Members
Joined: May 11, 2005

XXXXX



Lame.

well thanks, anyway.
PM
  Top
 

 
Dexter00  
Posted: Wednesday, May 1 2013, 19:11
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Apr 14, 2013

XXXXX



PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG