SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   Silent Hunter III (https://www.subsim.com/radioroom/forumdisplay.php?f=182)
-   -   How one MIGHT avoid a CTD (https://www.subsim.com/radioroom/showthread.php?t=176940)

Hein Bloed 66 11-09-10 08:08 AM

How one MIGHT avoid a CTD
 
Hi there,

this is just an idea, based upon a brainwave i had three month ago, some testing and the fact that i did not see a "Crash to desktop" since, even when restoring games i saved while under water.

Disclaimer: i play SH3 under WINE (Windows emulator) in Linux. Your milage may vary!

Solving an unrelated problem in Linux i ran across some articles about "memory fragmentation". I found out how to evaluate the state of my RAM and suddenly thought about SH3 and the crashes i had (i got SH3 with GWX 3.0 and 4GB of RAM, so there should be enough space left, but still i got these CTDs and they normaly come from problems with the RAM (in good old Windows 3.x they were known as "General Protection Fault", the program trying to access memory that was not there or it had no right to access)). Basically, what you want to do is present SH3 with ONE BIG LUMP of RAM it can use to it's own wishes, not twohundredtwentyfive little bits of RAM, each of them to small to live in and to big to die for :damn:

Since that day of the brainwave i changed the way i start SH3. I ALWAYS start it RIGHT AFTER rebooting. I avoid to start (and, critically important, to END!) any program before SH3. I didn't have A SINGLE crash while doinig so, in three month of testing!

I don't know if this is real, but if you want to try it here is what you do:

1. Check your system for any software that runs automatically and then exits (due to the differences in XP, Vista, 7, i can't tell you how to do this exactly) and remove them from the autostart process. Programs that start and stay in the system are OK as long as enough RAM remains!
2. Always reboot before starting SH3 (maybe there is a way to create a "hardware profile" that will allow you to, like, "boot" SH3, i don't know, been a while since tinkering with Windows)
3. Start every program you really need (like, Outlook) before starting SH3 (as long as the remaining memory is enough for SH3/GWX)
4. Do not exit any program already running. if you are so low on RAM that you would need to do that then GET. MORE. RAM!
5. Start SH3. Play it. Save anytime you like, given the restrictions already known (like 50 km from land, no ships around, not under water and so on). Test that you can reload your savefiles (see below).
6. When you need to reload, go through steps 1-5 before doing so.
7. If you are interrupted in SH3 by (for example) an e-mail you may look at the email (because the client is already loaded) but you may not (for example) follow a hyperlink (because that would cause the loading of a program or the reservation of memory in a program already loaded. I know this statement to be inconsistent, but this is how it works for me...

I believe the "save" mechanism on SH3 is severly broken in that it (partly) copies a memory image to disk. If the (RAM) fragmentation of that image does not match the fragmentation of you system as it is running you will get a CTD upon loading. That is why (i believe) problems in savefiles "migrate" to later savefiles.

This tip is HIGHLY EXPERIMENTAL, do no assume it will help you, but i would be very glad if it does :DL

Please let me (and the SH3-scene) know if this works for you. It's just a stupid idea that worked for me, so don't be angry if it doesn't for you, mea culpa...

Herr-Berbunch 11-09-10 08:22 AM

If I've not already said before, then welcome aboard :salute:

Things like Gamebooster (I think that's what it's called) already do this(ish), ending any unnecessary processes, and there are programs too to free RAM.

If I'm staying in the game and have no intention of alt-tabbing out to do something else I'll also pull my wifi connection so that's not draining resources.

Although I've had very few CTD's since using Win7.

Nice idea though, it'll help some I'm sure.


All times are GMT -5. The time now is 12:28 AM.

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