Jump to content

Photo
- - - - -

Old and new shortcut switches that make it run better


  • Please log in to reply
29 replies to this topic
Thread Starter
Skeptic
Skeptic

    Sergeant

  • Members
  • 134 posts

Posted 02 June 2009 - 19:07 #1

How to apply:
1. Right click on Arma2 shortcut
2. Properties
3. In target window after the closing quote mark add switch(es) like this:

"C:\Program Files\Bohemia Interactive\ArmA 2\arma2.exe" -nosplash -world=empty -maxmem=2047

So far:
-winxp, use it in Vista/W7 to enable multi-GPU support
-nosplash, skip those splash screens
-world=empty, doesn't load as much stuff for menu, starts faster
-maxmem=2047, allows game engine to use more RAM (2047 is hardcoded maximum atm, anything higher falls back to 2047). Make sure you have at least 3-4Gb for this to work.
-window, windowed mode
-noCB, turns off multicore drawing, slow down rendering but may resolve visual glitches
-cpuCount=X, change X to a number equal or less than numbers of available cores. This will override our autodetection.
Changing affinity on the fly is definitely not good, because worker threads are spawned on the game initialization,
and by lowering affinity later you cause threads competing for cores.
The best way to simulate dual core on quad core is to use -cpuCount=2 when you run the game
and then change the affinity to 2 cores to make sure additional cores can never be used when some overshedulling happens.
It might be also possible to set the affinity in the OS before you launch the process, that would work as well.

Non-performance related:
-mod=XYZ where XYZ is modfolder in "C:\Program Files\Bohemia Interactive\ArmA 2\"
-profiles=profiles - will store profile info and missions in main C:\Program Files\Bohemia Interactive\Arma 2\profiles folder

Keep adding new things you discover...

Edited by Skeptic, 04 June 2009 - 14:39.
incorrect info about maxmem maximum


Lee82UK
Lee82UK

    Private First Class

  • Members
  • 17 posts

Posted 03 June 2009 - 11:07 #2

The old maxmem argument from Arma 1 works too, i.e:
-maxmem=4096
seems to stop texture loading lag for me which only started happening after patch 1.01

Thread Starter
Skeptic
Skeptic

    Sergeant

  • Members
  • 134 posts

Posted 03 June 2009 - 23:14 #3

The old maxmem argument from Arma 1 works too, i.e:
-maxmem=4096
seems to stop texture loading lag for me which only started happening after patch 1.01

Thanks, Ohara also confirmed. And there are reports from people with 6+ Gb of RAM showing that this helped to improve the game.

White_Hat
White_Hat

    Lance Corporal

  • Members
  • 56 posts

Posted 04 June 2009 - 05:25 #4

Maybe this should be a sticky!

ziiip
ziiip

    Sergeant Major

  • Members
  • 1535 posts

Posted 04 June 2009 - 05:34 #5

Do i have to separate these to add multiple commands, or is it ok like this:

"C:\Program Files\Bohemia Interactive\ArmA 2\arma2.exe" -nosplash -maxmem=2048

?
Posted Image
(\_/)
(O.o)copy the bunny into your sig
( ><) help him achieve world dominashun

White_Hat
White_Hat

    Lance Corporal

  • Members
  • 56 posts

Posted 04 June 2009 - 05:45 #6

Do i have to separate these to add multiple commands, or is it ok like this:

"C:\Program Files\Bohemia Interactive\ArmA 2\arma2.exe" -nosplash -maxmem=2048

?


Afaik you´re right on!

ProfTournesol
ProfTournesol

    Lieutenant Colonel

  • Members
  • 8453 posts
  • LocationParis, France

Posted 04 June 2009 - 06:21 #7

Stick me please :stuck:

Suma
Suma

    BI Developer

  • 3707 posts

Posted 04 June 2009 - 07:21 #8

Maximal allowed value for -maxmem is 2047. Anything above is clamped to 2047. If anyone seems any difference between 2047 and 4096, you fell a victim of wishful thinking.
Ondrej Spanel, BIS Lead Programmer

LEEROY_UK
LEEROY_UK

    Lance Corporal

  • Members
  • 59 posts

Posted 04 June 2009 - 08:34 #9

Maximal allowed value for -maxmem is 2047. Anything above is clamped to 2047. If anyone seems any difference between 2047 and 4096, you fell a victim of wishful thinking.



Will you be fixing this issue in further patches Suma ?

Dwarden
Dwarden

    BI Developer

  • 9647 posts
  • LocationBrno, Czech Republic

Posted 04 June 2009 - 09:23 #10

some more

-window , windowed mode

-noCB , turns off multicore drawing, slow down rendering but may resolve visual glitches

-cpuCount=X. This will override our autodetection.
Changing affinity on the fly is definitely not good, because worker threads are spawned on the game initialization,
and by lowering affinity later you cause threads competing for cores.
The best way to simulate dual core on quad core is to use -cpuCount=2 when you run the game
and then change the affinity to 2 cores to make sure additional cores can never be used when some overshedulling happens.
It might be also possible to set the affinity in the OS before you launch the process, that would work as well.


RealTimeChat ~ARMA2 in Your browser (w/o Java), RealTimeChat ~ARMA3 in Your browser (w/o Java),
irc.GameSurge.net/ARMA2 (external IRC clients) irc.GameSurge.net/ARMA3 (external IRC clients)
ARMA 3 Feedback Tracker: http://feedback.arma...y_view_page.php
~100k fans @STEAM ARMA 2 + ARMA 2: OA + ARMA 3: + ~2k @XFIRE A2:OA
Follow my Twitter: http://twitter.com/FoltynD or my Facebook http://facebook.com/FoltynD


.kju -PvPscene-
.kju -PvPscene-

    Brigadier General

  • Members
  • 12275 posts

Posted 04 June 2009 - 09:58 #11

please add to:
http://community.bis...rtup_Parameters



Current active projects: None :(

Maintained/assisted projects: IFA3, Blitzkrieg


Help: Got a crash? Report it! What is the RPT log file?


Maddmatt
Maddmatt

    Chief Warrant Officer

  • Members
  • 3798 posts

Posted 04 June 2009 - 10:06 #12

Will you be fixing this issue in further patches Suma ?


To do that they would need to make a 64-bit version of ArmA 2.
2GB of RAM is the maximum a 32-bit application can use as far as I know.

Espectro
Espectro

    Evil m00-c0w

  • Members
  • 3404 posts

Posted 04 June 2009 - 12:15 #13

To do that they would need to make a 64-bit version of ArmA 2.
2GB of RAM is the maximum a 32-bit application can use as far as I know.


that's 3 gigsa for a 32 bit system.
http://www.footballpredictor.eu - sports betting made easy!
\"A man without religion, is like a fish without a bicycle\"

pchaxor
pchaxor

    Banned

  • 334 posts

Posted 17 June 2009 - 12:32 #14

This question is better answerd by a Dev, but anyone that KNOWS for sure is welcome to reply. TIA!

"-maxmem=2047, allows game engine to use more RAM (2047 is hardcoded maximum atm, anything higher falls back to 2047). Make sure you have at least 3-4Gb for this to work."

Ok I have 4Gb Ram Installed and wondered if using "-maxmem=2047" will increase the amount of memory used by ArmA II. Does the game use less than 2047 by default if I do not use that startup param?? What is the hardcoded minimum or default amount if the param is not used?

Edited by pchaxor, 17 June 2009 - 14:59.

OS: Windows 7 Ultimate 64b
MainBoard: Asus P5QL-EPU
Memory: 4GB Corsair Dominator @ 1066
CPU: Intel C2Duo E8400 3gHz (3.6oc)
HDD: (2) WDC WD1500ADFD-00NLR1
Video: Evga NVIDIA 465 SC
Display: Sceptre 22"
HeadTracking: TrackIR4

Thread Starter
Skeptic
Skeptic

    Sergeant

  • Members
  • 134 posts

Posted 17 June 2009 - 14:09 #15

that's 3 gigsa for a 32 bit system.


Isn't it only with PAE /3GB switch enabled? By default it's 2GB.

moosenoodles
moosenoodles

    Staff Sergeant

  • Members
  • 250 posts

Posted 17 June 2009 - 14:16 #16

Im pretty suprised there is no arma64 exe, 64 bit os's are being used much more now than 32 bit of late and 4gb ram is the standard in most builds now. crazy stuff... They could release a 64 bit exe for us pretty easy I believe..

Thread Starter
Skeptic
Skeptic

    Sergeant

  • Members
  • 134 posts

Posted 17 June 2009 - 14:32 #17

Im pretty suprised there is no arma64 exe, 64 bit os's are being used much more now than 32 bit of late and 4gb ram is the standard in most builds now. crazy stuff... They could release a 64 bit exe for us pretty easy I believe..

64bit will give you benefit of addressing more than 2-3GB of ram for application. If devs feel that it's plenty, I don't see a reason to compile it in 64bit and then make sure everything else working properly. I'd rather have BIS spend time on tweaking/improving one PC version.

please add to:
http://community.bis...rtup_Parameters


Yep, just added. I haven't started Arma2 specific section - just added "(Arma2)". Feel free to move around.

Cheers.

Edited by Skeptic, 17 June 2009 - 18:04.


Alex72
Alex72

    Moderator

  • 5101 posts

Posted 18 June 2009 - 13:58 #18

So the -cpuCount should not be touched unless you want to limit cores? If i use dual core then the game will detect and use that?

Alex
Posted Image

-=seany=-
-=seany=-

    Sergeant Major

  • Members
  • 1607 posts

Posted 18 June 2009 - 15:06 #19

Thanks very much, this thread saves ALOT of searching/new threads for all the people about to get the game within the next 24 hours.

+1 vote for sticky

Thread Starter
Skeptic
Skeptic

    Sergeant

  • Members
  • 134 posts

Posted 18 June 2009 - 17:56 #20

72;1314929']So the -cpuCount should not be touched unless you want to limit cores? If i use dual core then the game will detect and use that?

Alex

That's correct, by default the engine is multi-core aware and the load will be split among the available cores. In rare circumstances you might want to limit to 2. Single core will struggle with Arma2.