SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > Silent Hunter 5
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-26-11, 05:38 PM   #1
DelphiUniverse
中国水兵
 
Join Date: Mar 2010
Location: Scapa Flow, underneath a ferry
Posts: 272
Downloads: 125
Uploads: 0
Default Tiny execution script

When you launch silent hunter 5 normally, you get normal priority on the process, which is at priority 8. When you launch the game using high or realtime priority you get 13 for high or 24 for realtime.

When using high priority you get almost doubled priority compared to normal priority. And when using realtime you get tripled priority.

Realtime offers the best priority but you need administrator privilege to run in realtime. If you dont have admin privileges you can settle for high priority.
Choose the preferred one from below:

Download here:

"HIGH" PRIORITY DOWNLOAD
"REALTIME" PRIORITY DOWNLOAD


Install instructions:

  1. Copy the batch script to your "Ubisoft\Silent Hunter 5" directory
  2. Right click the batch script and drag a shortcut to your desktop
  3. Rename the shortcut to "Silent Hunter 5 (HIGH PRIORITY)"
  4. Right click shortcut once again and choose properties and change icon and go to sh5 dir to find icon
  5. Done. When you launch using this shortcut it will start with higher priority automatically



Last edited by DelphiUniverse; 03-26-11 at 08:22 PM.
DelphiUniverse is offline   Reply With Quote
Old 03-26-11, 05:44 PM   #2
stoianm
Ocean Warrior
 
Join Date: Dec 2010
Location: Montreal, Canada
Posts: 2,776
Downloads: 833
Uploads: 11
Default

So this file will decrease our time connection... i mean we will have less time to wait for game to load or what?... i am afraid i can not follow you
stoianm is offline   Reply With Quote
Old 03-26-11, 05:48 PM   #3
DelphiUniverse
中国水兵
 
Join Date: Mar 2010
Location: Scapa Flow, underneath a ferry
Posts: 272
Downloads: 125
Uploads: 0
Default

Quote:
Originally Posted by stoianm View Post
So this file will increase our time connection... i mean we will have less time to waith for game to load or what?... i am afraid i can not follow you
Silent Hunter get more cpu time and the other programs get less cpu time. In total this means that the game will get less glitches, less cutoffs, less interruptions, when you get interruptions/less cpu time you sound may stutter, your game may stop or not respond for a few milliseconds, you get more fluent gameplay.

More horsepower per second so to speak. If you have 10 programs running on your computer and one of them happens to be silent hunter 5. If all of them have normal priority they each get the same amount of attention from the cpu per iteration.

Giving an application more time slice also means you get more cpu power, more computations can be computed per iteration, it is equl to having a more powerful processor (technically), but in the actual game, it just might still be slow because of the low performance of your cpu, but technically speaking it will have more cpu horse power available. That does not mean your cpu neccesarily is capable of producing enough horsepower to make the game run fluently, but it will get more horsepower per iteration.

So naturally it pays off to also switch off all applications running before you launch silent hunter 5. All of those applications get its own time slice of the cpu, if you shut it down that time slice is freed up and spread across the remaining applications.

Last edited by DelphiUniverse; 03-26-11 at 06:33 PM.
DelphiUniverse is offline   Reply With Quote
Old 03-26-11, 05:49 PM   #4
stoianm
Ocean Warrior
 
Join Date: Dec 2010
Location: Montreal, Canada
Posts: 2,776
Downloads: 833
Uploads: 11
Default

wow... nice.. you are good man... thanks for sharing this with us
stoianm is offline   Reply With Quote
Old 03-26-11, 06:35 PM   #5
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default

Awesome! Thanks a ton for this. I've been doing this the hard way. Start the game, alt tab out, reset priority to realtime and go back into the game. Now I don't have to do that every time I play. This was well needed.

For anyone getting stutters in their bow wave or in explosion animations, this will fix it. It did for me.

EDIT: Upon trying it, it doesn't seem to work. The game starts fine but when I alt-tabbed out to check, my Task manager still shows sh5 running in normal mode. I followed the instructions exactly. The only thing I can think of is that I have my game installed on a secondary harddrive. Not my C drive . Would that prevent this script from working correctly?
Dignan is offline   Reply With Quote
Old 03-26-11, 06:49 PM   #6
DelphiUniverse
中国水兵
 
Join Date: Mar 2010
Location: Scapa Flow, underneath a ferry
Posts: 272
Downloads: 125
Uploads: 0
Default

Quote:
Originally Posted by Dignan View Post
Awesome! Thanks a ton for this. I've been doing this the hard way. Start the game, alt tab out, reset priority to realtime and go back into the game. Now I don't have to do that every time I play. This was well needed.

For anyone getting stutters in their bow wave or in explosion animations, this will fix it. It did for me.

EDIT: Upon trying it, it doesn't seem to work. The game starts fine but when I alt-tabbed out to check, my Task manager still shows sh5 running in normal mode. I followed the instructions exactly. The only thing I can think of is that I have my game installed on a secondary harddrive. Not my C drive . Would that prevent this script from working correctly?
I can't seem to be able to reproduce the same problem here, it works here. Make sure you have ""X:\Ubisoft\Silent Hunter 5" in the target folder of your shortcut (See properties of shortcut)

And if you want realtime you have to run it as administrator or else it will automatically go down to high priority.

Also be sure the script is in the silent hunter 5 directory.

Try to add to the script this /D path-to-sh5

Like this: start /realtime /d "x:\ubisoft\silent hunter 5\" sh5.exe and see it that works.

EDIT: Let me know if it works or not. (For anyone else too)

Last edited by DelphiUniverse; 03-26-11 at 07:02 PM.
DelphiUniverse is offline   Reply With Quote
Old 03-26-11, 07:58 PM   #7
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default

I'll try that. Right now in my Target line I have this.

"E:\Program Files\Ubisoft\Silent Hunter 5\Start_Realtime.bat"

The game is installed on my "E" drive. So you're saying I should make it look like this instead?

start /realtime /d "E:\Program Files\ubisoft\silent hunter 5\" sh5.exe

I want to make sure I understand.
Dignan is offline   Reply With Quote
Old 03-26-11, 08:00 PM   #8
DelphiUniverse
中国水兵
 
Join Date: Mar 2010
Location: Scapa Flow, underneath a ferry
Posts: 272
Downloads: 125
Uploads: 0
Default

Quote:
Originally Posted by Dignan View Post
I'll try that. Right now in my Target line I have this.

"E:\Program Files\Ubisoft\Silent Hunter 5\Start_Realtime.bat"

The game is installed on my "E" drive. So you're saying I should make it look like this instead?

start /realtime /d "E:\Program Files\ubisoft\silent hunter 5\" sh5.exe

I want to make sure I understand.
I have solved it, change the script to this:

start "runrealtime" /realtime sh5.exe

I will update the download links with new scripts in a few moments, I will let people know, meanwhile you can edit the script manually. Just remember to run it as administrator if you want realtime to work.

Alright links are updated. If you want to automate running as administrator, create a new task scheduler with "lifted privileges" that way you can also automate the password phase of running as administrator (unless you run windows in an admin account to begin with, then it wont be neccesary)
DelphiUniverse is offline   Reply With Quote
Old 03-26-11, 08:01 PM   #9
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default

Quote:
Originally Posted by DelphiUniverse View Post
I have solved it, change the script to this:

start "runrealtime" /realtime sh5.exe

I will update the download links with new scripts in a few moments, I will let people know, meanwhile you can edit the script manually. Just remember to run it as administrator if you want realtime to work.
Ok. So if my game is installed here E:\Program Files\Ubisoft\Silent Hunter 5, how exactly should the script in my batch file shortcut read?
Dignan is offline   Reply With Quote
Old 03-26-11, 08:04 PM   #10
DelphiUniverse
中国水兵
 
Join Date: Mar 2010
Location: Scapa Flow, underneath a ferry
Posts: 272
Downloads: 125
Uploads: 0
Default

Quote:
Originally Posted by Dignan View Post
Ok. So if my game is installed here E:\Program Files\Ubisoft\Silent Hunter 5, how exactly should the script in my batch file shortcut read?
start "runrealtime" /realtime sh5.exe

if you put the script somewhere else than in the silent hunter 5 folder, then you need to make the script like this:

start /d "E:\Program Files\Ubisoft\SilentHunter 5" "runrealtime" /realtime sh5.exe
DelphiUniverse is offline   Reply With Quote
Old 03-26-11, 08:08 PM   #11
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default

Quote:
Originally Posted by DelphiUniverse View Post
start "runrealtime" /realtime sh5.exe

if you put the script somewhere else than in the silent hunter 5 folder, then you need to make the script like this:

start /d "E:\Program Files\Ubisoft\SilentHunter 5" "runrealtime" /realtime sh5.exe
I just tried putting start /d "E:\Program Files\Ubisoft\SilentHunter 5" "runrealtime" /realtime sh5.exe in my Target line and it says 'start' is not a valid script when I try to apply. Should it go in the "Start in:" line or the "Target:" line?
Dignan is offline   Reply With Quote
Old 03-26-11, 08:11 PM   #12
DelphiUniverse
中国水兵
 
Join Date: Mar 2010
Location: Scapa Flow, underneath a ferry
Posts: 272
Downloads: 125
Uploads: 0
Default

Quote:
Originally Posted by Dignan View Post
I just tried putting start /d "E:\Program Files\Ubisoft\SilentHunter 5" "runrealtime" /realtime sh5.exe in my Target line and it says 'start' is not a valid script when I try to apply. Should it go in the "Start in:" line or the "Target:" line?
You do not have to edit the shortcut at all. Download my realtime script again, it is changed. Then put it in the E:\Program Files\Ubisoft\SilentHunter 5 folder, then drag a shortcut of that script to your desktop, then launch the game by using the shortcut.

Sorry for the mess:

Change script to this: %windir%\system32\cmd.exe /c start "runrealtime" /realtime "C:\Ubisoft\Silent Hunter 5\sh5.exe"

My bad again. Remember to set correct path first. Some may have other paths. This time it will work.
DelphiUniverse is offline   Reply With Quote
Old 03-26-11, 08:19 PM   #13
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default

Quote:
Originally Posted by DelphiUniverse View Post
You do not have to edit the shortcut at all. Download my realtime script again, it is changed. Then put it in the E:\Program Files\Ubisoft\SilentHunter 5 folder, then drag a shortcut of that script to your desktop, then launch the game by using the shortcut.

Sorry for the mess:

Change script to this: %windir%\system32\cmd.exe /c start "runrealtime" /realtime "C:\Ubisoft\Silent Hunter 5\sh5.exe"

My bad again. Remember to set correct path first. Some may have other paths. This time it will work.
Ok I'll try that. Should this be the path for both my desktop shortcut AND the batch file in my SH5 folder?
Dignan is offline   Reply With Quote
Old 03-26-11, 08:23 PM   #14
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default

Ok. I tried the new script with the new download. Put it in my SH5 folder, created a shortcut to the desktop and added the new script line. No dice.

I'm guessing one of two things is wrong.

1. I put the scirpt in the Target line of the shortcut wrong. (Are the quotations right?) It looks like this EXACTLY.

%windir%\system32\cmd.exe /c start "runrealtime" /realtime "E:\Program Files\Ubisoft\Silent Hunter 5\sh5.exe"

or

2. I'm not in administrator mode. How do I confirm and/or change this?
Dignan is offline   Reply With Quote
Old 03-26-11, 08:23 PM   #15
DelphiUniverse
中国水兵
 
Join Date: Mar 2010
Location: Scapa Flow, underneath a ferry
Posts: 272
Downloads: 125
Uploads: 0
Default

Quote:
Originally Posted by Dignan View Post
Ok I'll try that. Should this be the path for both my desktop shortcut AND the batch file in my SH5 folder?
Yep.

But like I said you dont need to edit the shortcut, the target folder will be filled in automatically when you copy a shortcut of the batch to your desktop.
DelphiUniverse is offline   Reply With Quote
Reply


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

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

Forum Jump


All times are GMT -5. The time now is 11:31 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.