VOGONS


First post, by rfnagel

User metadata
Rank Oldbie
Rank
Oldbie

I'm having a strange problem with STBC. I bought a boxed CD version from EBay about a month ago.

I've installed the game, updated the game to version 1.1, and am using a NO-CD executable to minimize problems.

For several weeks everything was running smoothly, and then about two weeks ago, BAM... my framerate went to crap. I spent a day trying to sort this out to no avail.

I have a ZIP that I created of the freshly installed and patched game when I first installed it, so I can simply unzip that in order to ensure that no files are corrupt or missing. I also have a backup of my Options.cfg file as well. After the framerate problem, I unzipped the entire game from my ZIP, and still had the same problem. The problem was still there even after trying various Windows compatibility settings.

I finally gave up, but a day or two later decided to try running the game again. All of the framerate problems were GONE, and the game was running fluid smooth.

Fast forward to yesterday, two weeks after the issues described above, and after the game started running smoothly again:

BAM! Same problem... the framerate is terrible, and for NO apparent reason (?)!

I'm running Windows 10 and have completely disabled Windows updates when I first got this PC (about two years ago), so there have been NO updates to Windows at all.

It really doesn't make any sense: The game runs fine, a few weeks later is choppy and stuttering, a day later runs fine, and then two weeks later starts running poorly again... which is where I'm at right now.

Like I said, there have been no updates to Windows, and I have restored the game from the ZIP backup that I had made (twice). There have been NO changes to my graphics drivers or settings. I've also tried various Windows compatibility settings, as well as lowering ALL of the graphics options to their lowest settings within the game. With the graphic options and resolution set to minimum, of course the games looks like CRAP, but it STILL runs choppy (although with poor graphics).

I even tried the "dgVoodoo" DirectX wrapper, and that didn't help either.

Anyhow, I've read several old messages elsewhere on the internet referring to this (e.g. "Did this, and it fixed it." / "Problem came back." / Did something else, and it fixed it." / "Problem came back." / etc... etc...). Can anyone shed any light on this?

Rich ¥Weeds¥ Nagel
http://www.richnagel.net

Reply 1 of 11, by hail-to-the-ryzen

User metadata
Rank Member
Rank
Member

It is not a likely cause, but I would verify the system time is reset on start, such as by a system restart. It is also worthwhile to test that it is assigned to a single cpu only. Another option is to test other wrappers for its graphics api.

Reply 2 of 11, by rfnagel

User metadata
Rank Oldbie
Rank
Oldbie

Thanks for the suggestions. I've tried all of those to no avail, though. As far as a system restart, I always shut down my PC (and unplug it) after every use, as we have quite severe thunderstorms in my locale.

This is the strangest problem, as it was running just fine for the past couple of weeks. That is, since two weeks when I had this exact same problem, and it "magically" fixed itself. IMHO it just HAS to be something to do with WinDoZe itself, but I'm at a loss here. Really drives me NUTZ too, as I was REALLY getting into this old game!

Rich ¥Weeds¥ Nagel
http://www.richnagel.net

Reply 4 of 11, by rfnagel

User metadata
Rank Oldbie
Rank
Oldbie

Thanks for the info, but I've already read that message thread. Like I replied to hail-to-the-ryzen, I've restarted my PC (I always power down my PC when I'm not using it, so it's restarted several times a day).

feda wrote on 2024-07-25, 05:36:

Rich ¥Weeds¥ Nagel
http://www.richnagel.net

Reply 5 of 11, by rfnagel

User metadata
Rank Oldbie
Rank
Oldbie

PROBLEM FREAKIN' SOLVED!

After again reading this post at GOG:

"I can confirm rebooting your computer fixes the problem. This is similar to the animation stuttering you will see in Neverwinter Nights 2. Same fix. Bad coding is the problem, shame on those guys. If your computer's clock is running for a very long time (a week+) then the internal counter gets very high and the math in the game starts to break down. Just shoddy programming."

Then, I read in the Steam forums about "Neverwinter Nights 2", which apparently has the same problem:

"The animation system in NWN2 uses values from your computer's internal clock for timing. If your computer has been running for a long time without restarting then the internal clock's value is too large for NWN2 to handle. For most people, restarting fixes the issue because it resets the clock to 0."

I then ran "systeminfo" from the command prompt. Just under the OS information, you'll see "System Boot Time". Note the difference between the "System Boot Time" and the actual current date and time. This is the amount of time that Windows 10 THINKS that the system has been running.

I then saw that my "System Boot Time" was 7/11/2024, 12:53:27 PM, ABOUT THE SAME TIME that the original problem seemed to have "magically" fixed itself. Note that when I ran "systeminfo", it was actually 7/25/2024 at 3:05:00 AM... according to the "System Boot Time" my PC hadn't been hard booted for two weeks!

THIS made ABSOLUTELY NO SENSE to me, as I posted earlier, I always shut my PC off and unplug it anytime that I'm not actually using it. I always THOUGHT that this was the same as a cold hard boot. I GUESS NOT!

THEN, something dawned on me... "Fast Boot". Everytime you have a hard crash in WinDoZe (e.g. blue screen of death), Windows will do a 'slow boot' (even if "Fast Boot" is enabled in Windows), which in turn will reset your "System Boot Time". If I remember correctly, I ACTUALLY HAD a BSOD on 7/11/2024!

Sure enough, I disabled "Fast Boot", shut the PC down and restarted it, ran "systeminfo" from the command prompt, and it reported the current date and time for the "System Boot Time".

I then started Star Trek Bridge Commander, and my framerate was fluid smooth again! YIPPEE!

Of course, disabling "Fast Boot" is really slow during a cold boot (at least on my PC), so I simply re-enabled it. At least I know what voodoo ritual to perform now when the problem rears it's ugly head again!

Side Note: Once the game was FINALLY running fluid smooth again, I again tried the "dgVoodoo" DirectX wrapper, and it actually bumped up my framerate a little more 😀 I noticed an increase in framerate when using "dgVoodoo v2.82.5", ESPECIALLY in the game's "Map Mode", and when there are a lot of starships in "Quick Battle". To install "dgVoodoo v2.82.5":

Download "dgVoodoo v2.82.5" from here -> https://dege.freeweb.hu/dgVoodoo2/bin/dgVoodoo2_82_5.zip .

Copy the files "MS/x86/D3D8.dll", "MS/x86/D3DImm.dll", and "MS/x86/DDraw.dll" from the ZIP to the "Star Trek Bridge Commander" folder.

Run "gVoodooCpl.exe" and set the "Config Folder/Running Instance" option to the "Star Trek Bridge Commander" folder on the "General" tab by clicking the ".\" button ("Adds the folder to the list where the control panel app is located.").

Note that this will create the file "dgVoodooSetupPaths.dat" located in the "Users\User_Name\AppData\Roaming\dgVoodoo" folder.

Uncheck the "3Dfx Watermark" and "3Dfx Splash screen" check boxes on the "Glide" tab.

Set the "Videocard" option to "dgVoodoo Virtual 3D Accelerated Card" on the "DirectX" tab, set the "VRAM" option to "1024 MB", and uncheck the "dgVoodoo Watermark" check box.

One Last Side Note/Hint: Windows Notepad will TOTALLY COBBLE up your "Options.cfg" file. For some STRANGE reason, the game substitutes Hex(00)s for SOME of the spaces in the file. If you edit the file in Windows Notepad, the Hex 00's are changed to "space" characters, and the game will then choke and crash when started again. To overcome this problem, use the freeware utility "Notepad++" from here -> https://notepad-plus-plus.org/downloads to edit your "Options.cfg" file.

When loading the "Options.cfg" file into "Notepad++" the Hex(00)s will be displayed with the inverse text of "NUL" in the editor. Don't edit/touch those entries, and you should be OK when editing and then saving the file.

Rich ¥Weeds¥ Nagel
http://www.richnagel.net

Reply 6 of 11, by feda

User metadata
Rank Member
Rank
Member

I was going to reply that restart vs shutdown do different things when you have fast boot/hybernation on, but fortunately you figured it out yourself 😀

Reply 7 of 11, by rfnagel

User metadata
Rank Oldbie
Rank
Oldbie

The thing that confused me was, if the damn thing is off and unplugged, well, it damned sure sould be OFF 🤣

Rich ¥Weeds¥ Nagel
http://www.richnagel.net

Reply 8 of 11, by MadMac_5

User metadata
Rank Member
Rank
Member

You've already discovered that Fast Boot is a thing, and that restarting is different than a shutdown. If you want to keep Fast Boot enabled for general use but want to force a complete shutdown, you can enter the following from a Command Prompt:

shutdown /s /t 0

You can change 0 to any other integer number of seconds before the shutdown will occur. This command can also be used with /r to trigger a restart.

I learned all of this back when Windows 8 came out, and I was having trouble accessing my Windows drive from my Ubuntu installation on a second hard disk. It turns out that hybrid shutdown leaves the drive mounted to save time, which means another OS can't mount it!

Reply 9 of 11, by rfnagel

User metadata
Rank Oldbie
Rank
Oldbie

MANY MANY THANKS for that, MadMac_5!!!! Batch file and desktop icon, HERE I COME 😀 Hehe, a good place for the desktop icon will be next to my one to temporarily disable the Windows Defender realtime antivirus 🤣

Rich ¥Weeds¥ Nagel
http://www.richnagel.net

Reply 10 of 11, by eddman

User metadata
Rank Member
Rank
Member

Fast Boot is basically Hibernation-lite. Only the Restart option does a full boot from a zero state, or Shutdown when Fast Boot is disabled.

Reply 11 of 11, by rfnagel

User metadata
Rank Oldbie
Rank
Oldbie
eddman wrote on 2024-07-25, 23:50:

Fast Boot is basically Hibernation-lite

I like your description 😀 After learning more about it, that's basically what I was thinking of.

Rich ¥Weeds¥ Nagel
http://www.richnagel.net