script lag .ini tweak

Post » Wed Jul 24, 2013 7:48 pm

I'm generally skeptical about .ini tweaks, but since I recently tried out Convenient Horses' script lag test and got ugly results, I decided to look around for some possible solutions.

I stumbled upon this bit of advice by steve40 ( author of skybirds and very knowledgeable about scripting ) , who suggested adding this to skyrim.ini :

[Papyrus]
fUpdateBudgetMS=800
fExtraTaskletBudgetMS=800
fPostLoadUpdateTimeMS=2000
iMinMemoryPageSize=256
iMaxMemoryPageSize=512
iMaxAllocatedMemoryBytes=2457600

So I tried it out and my average script lag dropped from 300 ms down to 100 ms!

Give it a try, it might help :smile:

User avatar
Ellie English
 
Posts: 3457
Joined: Tue Jul 11, 2006 4:47 pm

Post » Wed Jul 24, 2013 6:57 pm

From the http://www.creationkit.com/INI_Settings_%28Papyrus%29 "WARNING: increasing iMaxAllocatedMemoryBytes to values much larger than default can cause http://en.wikipedia.org/wiki/Stack_buffer_overflow (stack buffer overflows), intermittent game stuttering, erratic game behavior and CTDs. Stack thrashing will produce stack dumps in the Papyrus log, similar to the example below. The dumps can be very large if many scripts are running, producing a very large log file."

This is not a safe tweak to use.

User avatar
Amiee Kent
 
Posts: 3447
Joined: Thu Jun 15, 2006 2:25 pm

Post » Thu Jul 25, 2013 3:11 am

what's the default value though?

edit: I see it's 76800, so that's 32 times bigger. still, there's no easy way to know if that's considered "much larger" . I'll try asking the author about that and see what he mentions :)

User avatar
Mrs Pooh
 
Posts: 3340
Joined: Wed Oct 24, 2007 7:30 pm

Post » Thu Jul 25, 2013 8:44 am

the Wet and Cold troubleshooting guide has a few recommendations

https://docs.google.com/document/d/1e7LHLPbLXWMwYCX22zx19zxkLdjGTuj3FvSz0Z3KnAE/edit?pli=1

option 1 looks close to your settings, but the iMaxAllocatedMemoryBytes are kept at 2x stock value.

see if changing this back has any effect on your script lag at all. i recommend to use isokus values.

iMaxAllocatedMemoryBytes doesn't do what people usually think it does.

i personally use the tweaks on the right.

User avatar
Alexandra Ryan
 
Posts: 3438
Joined: Mon Jul 31, 2006 9:01 am


Return to V - Skyrim