Jump to content

Welcome to LoversLab
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

Solutions to slow running scripts in Skyrim


  • Please log in to reply
21 replies to this topic

#1
yosecretsquirrel

yosecretsquirrel

    Member

  • Members
  • PipPipPip
  • 165 posts

So I was frustrated after cobbling a multicore PC together on the cheap, only to find Skyrim ran its scripts SO SLOOOWWly. I monkey with my settings in game and at the OS level with zero net gains for my efforts. While graphics ran fine on even the highest settings, scripts sometimes took minutes to run. I started blaming mods as removing mods seemed to have a positive effect. Today I discovered the issue is actually the design of the Papyrus script system used in Skyrim. I read an informative treatise written by a scripter that was quite informative as to why it wasn't working as intended here. A little more research lead me to 2 different solutions that when used together made the issue almost inperceptable. One is a plugin for SKSE and the other is settings to add to your Skyrim.INI. I'm kind of impulsive when it comes to tweaking my games for performance and so applied both solutions at the same time. The results were so impressive, I saw no need to test them individually.

Anyway to the point of this post:

IF you are running mods or even not, and you find scripts take minutes to run or fail to run, these solutions will fix that.

 

1. TESV Acceleration Layer. This is an SKSE plugin written by one of the developers of SKSE. the official forum post and the current file link is found here.

 

2. INI tweaks. Normally I view INI tweaks as risky business in Skyrim, especially when running from save games. So with Skyrim I have really taken the habit of dated copies of my Skyrim.ini file ( I'm still amazed Skyrim functions at all as I begin to understand its construction). But so far so good with the following additions:

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

 

I stumbled across this tweak here (kudos and thanks to Steve40)

 

The results? Running about 90 mods (of which more than 75% add new scripts) slowed my system to the point where having a vanilla companion, a mod companion and running AFT along with Convenient Horses meant I could go get a coffee, come back and still have to wait for my companions to mount up. (sometimes pausing would speed things up for the moment).

Now I can have 5 followers mount up after me in about 10 secs (including the anims and sounds). Any lag I experience now can be directly attributed to my old clunky HDD and I`m betting I can find a INI solution that will help with that too.

 

So enjoy faster running scripts with these two simple solutions. Of course if you already knew this, never mind :cool: 


  • 3

AdBot

AdBot
  • Advert

#2
cornbreadtm

cornbreadtm

    The Divine Interruption

  • Members
  • PipPipPipPip
  • 704 posts

I've been using TESVAL.dll since it came out. To be honest I'm not even sure if it still works. I have it in for 1.9.32 but I can't tell you if it's still effective. I'm going to test out the INI tweak I use a lot lol. Don't have any real problems running skyrim with a bunch of skyrim.ini, skyrim pref.ini, and SKSE.ini tweaks.


  • 0

#3
RogueMage

RogueMage

    Member

  • Members
  • PipPipPip
  • 230 posts

The result of putting the dll into my Skyrim folder is that the game does not start at all. No error, just nothing. I made the papyrus changes though. Let's see how they work out for me ;)


  • 0

#4
cretin

cretin

    Member

  • Members
  • PipPipPip
  • 115 posts

The compiler optimizations that TESVAL (and Skyboost) addressed were patched waaaaay back in February 2012 with patch 1.4.15.  After that TESVAL wasn't useful, and Skyboost focused on other optimizations.  They're both pretty obsolete.

 

FWIW I've got a TON of scripts (270) including Frostfall (which KILLS Papyrus) on a 4 GHz Core 2 Duo, and things are running pretty well for me.  Here's what I've got:

 

 

[Papyrus]
fUpdateBudgetMS=1.2
fExtraTaskletBudgetMS=1.2
fPostLoadUpdateTimeMS=500.0
iMinMemoryPageSize=128 
iMaxMemoryPageSize=512
iMaxAllocatedMemoryBytes=76800
 
 
There will be a tradeoff by maxing out the Papyrus limits, but I'm looking forward to seeing what your numbers do.  Your numbers might be better with an i-class proc instead of my dinosaur, though.
 
 
 

  • 0

#5
army93

army93

    Junior Member

  • Members
  • PipPip
  • 1 posts

You are a god amongst men. I was desperate so I started to google skyrim script lag, and I found this topic on the second page. I played Skyrim for a long time with many mods, and I always had VERY big script issues, I had 60fps on maxed out settings, but my scripts... oh god. The little script plugin in Convenient Horses told me that I have an average 3kms, It peaked on 6k.

 

After I wrote the quote from this topic into the .ini I got an average 50 ms peaking on 90, no fps drop, it's just fantastic and I recommend it to everyone, it solved many issues. (I was running these mods: Frostfall, RnD, Convenient horses, Skyrim Redone, Better Vampires, TK hitstop, so as you can see, I was basically killing my Skyrim. Total of 170 .esp, I'm sure half of these uses scripts including the very heavy script based mods mentioned above [especially Skyre]).

 

So many thanks to the poster :)


  • 1

#6
Brascoboy

Brascoboy

    Junior Member

  • Members
  • PipPip
  • 8 posts

I am sure that this is DUMB :( ...but can you Please tell me, "Step By Step" on how to do all that? (I mean...Do what You have done, to have Skyrim play at it's most optimal level with all the cool and sexy mods that make it look and feel better) Basically, I want to make Skyrim look AWESOME with some HOT looking toons to view, but I was not only having issues with mods slowing me down but seams in the skin textures too (really at the wrists). I just about cr**med my panties with a NERDGASM reading your posts. However, I overloaded my system with too many mods, to the point I just started over again. Now I am fresh and so clean and ready to it right. I learned from that debacle that this mistake has been made many many times and I could just ask the experts here.

PC WISE, I am running:

 

Windows 7 Home Premium 64-bit

AMD Phenom™ II X4 945 Processor (4 CPUs), ~3.0GHz

Memory: 12 Gb

Card name:XFX Radeon HD 7750

 

I recently updgraded and want to make Skyrim look the best I can with this Gear! So, find it in your heart to help me. Thanks!!!!

Sincerely,

Brascoboy

 

PS: Be Gentle, I'm still learning... ;-)


  • 0

#7
Arcanic_Eye

Arcanic_Eye

    A Seeker

  • Members
  • PipPipPipPip
  • 291 posts

I'm wondering, do I just insert this line:

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

 

After all the other texts in the ini file? Or is there some specific order to it.

 

 


  • 0

#8
greencasidilla

greencasidilla

    Member

  • Members
  • PipPipPip
  • 202 posts

The order doesn't matter.


  • 0

#9
johanzo

johanzo

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts

i use both plugin and tweaks, and work fine .. no more lag in scripts


  • 0

#10
terrorofmorrowind

terrorofmorrowind

    Member

  • Members
  • PipPip
  • 12 posts

wich .ini is this? skyrim or skyrimprefs?


  • 0

#11
gaggedgirl123

gaggedgirl123

    The girl chained to your bed

  • Members
  • PipPipPipPip
  • 534 posts

Oh, wow! thank you so much! Now my character can actually use submit without me having enough time to get a coffee before the animations start!

 

And terror, I've set mine in Skyrim.ini. Seems to work


  • 0

#12
Voyager23

Voyager23

    Junior Member

  • Members
  • PipPip
  • 1 posts

So enjoy faster running scripts with these two simple solutions. Of course if you already knew this, never mind :cool: 

 

Why thank you for providing not one but *two* possible solutions!!

I run a fully modded Skyrim and out of 4 different characters, -1- has severe
issues with scripts lagging, ie. catching butterflies/dragonflies/fish actually happens long after
pressing 'E', activating a skill like 'Deadly Focus' takes forever to execute, soultrapping
with enchanted weapons has serious delays, "Melting-" mods take forever to compile lists,
some dialogues take long to open, drinking water from a river (RND), etc. All things scripted!

(as a curiosity for those who go and brew coffee whilst slow scripts are executing, press 'ESC'! ^^)
I noticed that pressing Escape/pause speeds up the scripts in the background, sometimes resulting
in *a-lot* of noices playing at one time, unpausing yields that some effects have passed through.
...just a bizzare discovery I made...

I added both the SKSE-plugin and the 'papyrus'-extras and the speed increased
much noticeably in-game! Thanks again!


  • 0

#13
Loller99

Loller99

    Member

  • Members
  • PipPipPip
  • 137 posts

Actually, i have another kind of problem....sometimes, animations just dont work, and often my character (vampire) got stuck while trying to sneak-feed on npcs. How to fix that?


  • 0

#14
judge0

judge0

    Senior Member

  • Members
  • PipPipPipPip
  • 404 posts

The authors of both TESV Acceleration Layer and SkyBoost have stated these plugins no longer work with 1.9.32.8 Skyrim.

 

The INI edits to the Papyrus section (as shown in the OP)  have also been shown to be harmful to your install (save games), and they have been removed from S.T.E.P.  

 

The following are standard ini tweaks not harmful to your install:

Spoiler

 

If we could put some of these myths to be bed, some of these graveyard posts won't be resurrected and people will stop using them.

 

$0.02


  • 3

#15
wussybob

wussybob

    Junior Member

  • Members
  • PipPip
  • 1 posts

i put .ini tweaks in it works pefectly but there some stuttering going on can you guys help with that.


  • 0

#16
XunTzu

XunTzu

    Member

  • Members
  • PipPipPip
  • 116 posts

Entered Solitude, started experiencing massive script lag.

Did search your topic came up.

Did just the .ini tweaks.

Script latency before entering Solitude: 63ms avg
Save file size: 10Mb

 

After Solitude:  90,000ms avg
Size: 30Mb <----- wtf?

After .ini tweaks
59 - 68ms avg
10Mbs

Seriously wtf Bethesda? Why not a more stable system??


  • 0

#17
GitcheGumee

GitcheGumee

    Member

  • Members
  • PipPipPip
  • 183 posts

I am completely missing the fields in my INI file. Do I have to insert the fields to make this tweak happen, or should those fields already be present?


  • 0

#18
Veladarius

Veladarius

    Mega Poster

  • Members
  • PipPipPipPipPip
  • 1,429 posts

I am completely missing the fields in my INI file. Do I have to insert the fields to make this tweak happen, or should those fields already be present?

 

They may not be there, if not just make them.


  • 0

#19
GitcheGumee

GitcheGumee

    Member

  • Members
  • PipPipPip
  • 183 posts

 

I am completely missing the fields in my INI file. Do I have to insert the fields to make this tweak happen, or should those fields already be present?

 

They may not be there, if not just make them.

 

 

Thanks


  • 0

#20
Pepper201

Pepper201

    Member

  • Members
  • PipPip
  • 17 posts

Thank you judge0 for all that information. Appreciate it.

 

 


  • 0