SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   Silent Hunter 5 (https://www.subsim.com/radioroom/forumdisplay.php?f=244)
-   -   Tiny execution script (https://www.subsim.com/radioroom/showthread.php?t=181797)

DelphiUniverse 03-26-11 05:38 PM

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



stoianm 03-26-11 05:44 PM

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

DelphiUniverse 03-26-11 05:48 PM

Quote:

Originally Posted by stoianm (Post 1628461)
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.

stoianm 03-26-11 05:49 PM

wow... nice:yeah:.. you are good man... thanks for sharing this with us

Dignan 03-26-11 06:35 PM

:up: 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?

DelphiUniverse 03-26-11 06:49 PM

Quote:

Originally Posted by Dignan (Post 1628501)
:up: 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)

Dignan 03-26-11 07:58 PM

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.

DelphiUniverse 03-26-11 08:00 PM

Quote:

Originally Posted by Dignan (Post 1628582)
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)

Dignan 03-26-11 08:01 PM

Quote:

Originally Posted by DelphiUniverse (Post 1628583)
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?

DelphiUniverse 03-26-11 08:04 PM

Quote:

Originally Posted by Dignan (Post 1628588)
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

Dignan 03-26-11 08:08 PM

Quote:

Originally Posted by DelphiUniverse (Post 1628589)
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?

DelphiUniverse 03-26-11 08:11 PM

Quote:

Originally Posted by Dignan (Post 1628593)
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.

Dignan 03-26-11 08:19 PM

Quote:

Originally Posted by DelphiUniverse (Post 1628596)
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 03-26-11 08:23 PM

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?

DelphiUniverse 03-26-11 08:23 PM

Quote:

Originally Posted by Dignan (Post 1628600)
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.


All times are GMT -5. The time now is 01: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.