A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Why isn't closing a program or game instantaneous?



 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #26  
Old October 20th 18, 09:25 AM posted to alt.comp.os.windows-10
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default Why isn't closing a program or game instantaneous?

Jimmy Wilkinson Knife wrote:


It happens with more than one program, but The Sims 3 is the prime example.


At first, Google wouldn't show me anything related to Sims 3.
But after fiddling with search terms a bit, I found something
which at least mentions a few file names.

"The Sims 3 | Performance & Bug Fix Guide 2018"

https://steamcommunity.com/sharedfil...?id=1131162350

There's no direct mention of your problem, but
consider that:

1) The game needs to SaveState when you close it.
It's a simulation that will want to "pick up
where it left off". It needs to save many aspects
of graphics output and system state (where all the
duff cars and taxis are located that nobody is using).

2) There are "cache" files, the cache files get
larger with time. The cache files are re-generated
at startup, which takes more time if you erased them (bad).
But having smaller cache files may speed up SaveState (good).

So that's the only thing I spotted so far. You don't have
to delete anything to start with, but you could have a look at
the named files to see if they're huge or not. The next time
you quit the SIMS 3, watch your disk drive activity light
on the computer case, and see if it says lit solid until
the game finally exits. That would imply the caches are
huge.

"The cache files that are safe to delete after
everytime playing the game are...

- compositorCache.package
- CasPartCache.package
- scriptCache.package
- simCompositorCache.package
- socialCache.package

Deleting these files before running the game will
make the game run smoother.
"

If the game needs to save out the cache files after
you tell it to "quit", that's why the game cannot
quit 20 microseconds later. Rather than a system resource,
it's a game resource that requires protection.

If you want to delete those five files, you'd do it
while the game wasn't running.

In Task Manager, the game apparently runs ts3.exe and ts3w.exe.

And because some of the users are fiddling with "affinity" setting
when the executable starts, apparently it doesn't handle
"a lot of CPU cores" well. On a dual core E8400 you
likely wouldn't have to do anything to it. There have
been games in the past, that crash if the affinity
is above 1. Setting affinity is likely a "bitmap",
so a value of 3 is a mask of 0011 binary and would
limit program execution to the CPU0 and CPU1 cores.
A value of 7 would limit execution to the first
three cores 0x0111 etc.

0 0 1 1
-------
C C C C
P P P P
U U U U
3 2 1 0

On WinXP, the affinity mask maximum width is limited to
32 cores and would look like 0000 0000 0000 0000 0000 0000 0000 0011.
If you owned an AMD Epyc processor, you'd need to define
the whole thing.

This is what WinXP Affinity looks like in Task Manager, but
that "start" example supports doing this dialog from the
command line. In this example, the processor only has two
cores, and both cores are candidates to run the program in
question (the one you'd be setting affinity on).

https://cloud.addictivetips.com/wp-c...08/11/core.jpg

On Windows 10, I think the max cores the OS can use is 256,
so the affinity mask would be really really wide.

Anyway, when playing a favorite game, that's the kind of
web page you want to find. One with plenty of meat to it.

HTH,
Paul
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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






All times are GMT +1. The time now is 03:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.