[Suggestion] / Fix - Dramatic speed increase with small edit

(previously 'DEVELOPER') Private forum for registered community members. To register, please visit www.prison-architect.com/register.

Moderator: NBJeff

jgg
level0
Posts: 1
Joined: Sun Aug 03, 2014 11:54 pm

[Suggestion] / Fix - Dramatic speed increase with small edit

Postby jgg » Wed Aug 20, 2014 9:54 am

Hi all,

Sorry if this is a repost. I have searched and not found a similar thread.

I managed to decrease crashes in my game AND increase the speed with prison of 400+ by editing my save file to REMOVE contraband history.. which accounted for approximately 95% of the file size (160MB save down to about 5 MB)

You can easily do this with notepad++ look for "BEGIN contraband" log. I deleted the whole lot (headings and all) down to "BEGIN Tunnels" and the game seemed OK with this..

Prison appears to run as fast as new and autosave no longer crashes..

James
RGeezy911
level5
level5
Posts: 1098
Joined: Fri Aug 09, 2013 7:21 pm

Re: [Suggestion] / Fix - Dramatic speed increase with small

Postby RGeezy911 » Wed Aug 20, 2014 9:55 am

This is good to know, thanks for sharing!
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Re: [Suggestion] / Fix - Dramatic speed increase with small

Postby xander » Wed Aug 20, 2014 3:51 pm

Yet another reason to implement something like the contraband heatmap suggested in this topic. I have added a note to #4793 indicating that this can cause crashes.

xander
User avatar
_alphaBeta_
level4
level4
Posts: 534
Joined: Sun Jul 21, 2013 2:20 pm
Location: NJ, USA

Re: [Suggestion] / Fix - Dramatic speed increase with small

Postby _alphaBeta_ » Fri Aug 22, 2014 5:06 pm

I think that option needs to go anyway. I never saw the point of capturing this history forever when the prison layout can change over time. I think anything over the last two weeks or so can just drop off the list completely.
User avatar
Drakexz
level2
level2
Posts: 82
Joined: Tue Aug 05, 2014 7:23 pm

Re: [Suggestion] / Fix - Dramatic speed increase with small

Postby Drakexz » Sat Aug 23, 2014 1:02 pm

Wow, i could delete around 564000 lines in my savefile. Now the save file is around 20 MB insteam of 74 MB.
So far i couldn't see a big FPS increase, but i've only teste it on my 6 years old computer (Intel Q6600, 4 GB ram and Nvidia GT 8800). I hope it has a bigger impact on my "new compuer)
User avatar
spectacularnono18
level2
level2
Posts: 130
Joined: Wed Dec 11, 2013 8:38 pm

Re: [Suggestion] / Fix - Dramatic speed increase with small

Postby spectacularnono18 » Mon Aug 25, 2014 2:06 am

Do I also have to delete the Begin Contraband line?
User avatar
spectacularnono18
level2
level2
Posts: 130
Joined: Wed Dec 11, 2013 8:38 pm

Re: [Suggestion] / Fix - Dramatic speed increase with small

Postby spectacularnono18 » Mon Aug 25, 2014 7:48 pm

[quote="xander" I have added a note to #4793 indicating that this can cause crashes.

xander[/quote]

You saying deleting the contraband log in the savefile could cause my prison to crash?
User avatar
knoest26
level5
level5
Posts: 1380
Joined: Thu Jul 11, 2013 6:55 pm
Location: The Netherlands
Contact:

Re: [Suggestion] / Fix - Dramatic speed increase with small

Postby knoest26 » Mon Aug 25, 2014 8:58 pm

spectacularnono18 wrote:You saying deleting the contraband log in the savefile could cause my prison to crash?

Other way around, if the list of contraband becomes too long the game might crash because it costs too much memory to create the savegame
User avatar
spectacularnono18
level2
level2
Posts: 130
Joined: Wed Dec 11, 2013 8:38 pm

Re: [Suggestion] / Fix - Dramatic speed increase with small

Postby spectacularnono18 » Mon Aug 25, 2014 9:51 pm

knoest26 wrote:
spectacularnono18 wrote:You saying deleting the contraband log in the savefile could cause my prison to crash?

Other way around, if the list of contraband becomes too long the game might crash because it costs too much memory to create the savegame


Ok ok do I also delete the "Begin Contraband" line?
User avatar
knoest26
level5
level5
Posts: 1380
Joined: Thu Jul 11, 2013 6:55 pm
Location: The Netherlands
Contact:

Re: [Suggestion] / Fix - Dramatic speed increase with small

Postby knoest26 » Mon Aug 25, 2014 10:11 pm

I wouldn't but it probably doesn't matter
User avatar
spectacularnono18
level2
level2
Posts: 130
Joined: Wed Dec 11, 2013 8:38 pm

Re: [Suggestion] / Fix - Dramatic speed increase with small

Postby spectacularnono18 » Tue Aug 26, 2014 12:27 am

I noticed this causes the your prison grading to reset as if no prisoners have ever been released. Make sure to backup the save file.
User avatar
knoest26
level5
level5
Posts: 1380
Joined: Thu Jul 11, 2013 6:55 pm
Location: The Netherlands
Contact:

Re: [Suggestion] / Fix - Dramatic speed increase with small

Postby knoest26 » Wed Aug 27, 2014 6:13 pm

FPS doesn't increase that much (about 8 to 10) but it does seem to help

Return to “Community Members”

Who is online

Users browsing this forum: No registered users and 19 guests