Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Skyrim Optimization Mod

23 Dec 2011   #1
A Guy

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
Skyrim Optimization Mod

Tests show that the "Markath FPS Death Zone" went from ~20FPS without the plugin to ~30FPS with the plugin, framebuffer size 2560x1600, everything maxed except no AA. Not joking or trolling; that's just the worst CPU-bound case I could think of.

Things I'd like to note here:
Only a fraction of the speedup comes from using SSE2 code. The original exe also uses SSE2 code, just not in the right places where it is truly needed. This could've been prevented by using automated SSE2 vectorization and/or another math library. Interestingly, in this case, it's the dot product function that has been rewritten, which is somewhat ironically the #1 textbook example for automated vectorization in compiler demos.
Much of the speedup is gained by manually eliminating (only possible if the entire function can be reduced to 5 bytes or less), or at least simplifying calls along the critical code paths as far as possible. This doesn't even produce nearly as good results as an optimizing compiler could have because of many restrictions a compiler doesn't have to deal with in the first place, so every optimizing compiler can do and usually does an excellent job at this if told to do it. Skyrim would probably experience an execution speed gain of over 100% just by applying this single optimization, as it has drastic consequences to the amount of code that could be detected as being redundant and thus completely eliminated. I know that sounds exaggerated, and normally would be, but it isn't when you've read and profiled enough of the code to know just how bad the compiled code is.
Just 3 functions have truly been rewritten, everything else is either a variant form or an instruction-level simplification of functions consisting of things like "return *this;" which are at the very top in the profiled list because the compiler was obviously told not to inline it. So, every time a certain kind of pointer needs to be dereferenced, the game will call a lengthy function to do what can be (and is) replaced by a single instruction. Fixing this manually isn't feasible after a certain point, but the compiler can do this for the whole binary at the cost of just a few seconds extra compiling time and much better than ever possible by a human (at least at these code dimensions).
In general, the TESV code has pretty high register pressure. A huge part of this is simply due to the completely missing optimizations which would otherwise eliminate the unneeded allocations, but an x86_64 build would also definitely help improving this condition.
Jump targets are completely unaligned, including the so-called hot targets which are hit millions of times in short periods, leading to cache stress due to multiple fetches being required to execute a jump, whether correctly predicted or not. Optimizing compilers can automatically align them properly.
I guess I don't have to mention how bad the threading is; this isn't trivial to fix though. Just sad that it's almost 2012 and this thing can't even properly use two threads. Besides all the other obvious flaws, this is the main reason why the game is so strongly limited by the CPU. Single-core speed didn't grow nearly as much as the number of cores did. Everyone knew it 10 years ago, but back then they could still just wait for the hardware to provide the additional power needed to run the sloppy code - this trick doesn't work anymore.

Yeah, Skyrim is a nice game, but many obstacles we've got here have trivial fixes compared to the size of their respective payoffs (little to none extra coding required). Especially with over 10 million copies already sold, I somewhat expect that it will at least run on recent hardware without sub-30 framerates.

A Guy

My System SpecsSystem Spec
23 Dec 2011   #2

Windows 7 Ultimate x64, & Mac OS X 10.9.2

Modders and coders amaze me they can do so much and have such huge impacts on games performance, yet the people who make the game can't achieve this themselves lol.
By the sounds of it soon it will run on netbooks (joke) lol

Sent from my BlackBerry 9900 using Tapatalk
My System SpecsSystem Spec
25 Dec 2011   #3

Windows 10 64bit

im going to try this currently can only get around 30fps more fps wont hurt :P
one problem though i dont get how to install this read readme still dont get it ........
My System SpecsSystem Spec


 Skyrim Optimization Mod

Thread Tools

Similar help and support threads
Thread Forum
Need Help With Optimization. Need free Optimization programme.
I recently factory reset my pc. :party:I have it cleaned it up. C: D: are clear of unwanted stuff. Especially D: I found out it had 3 old backups on I couldnt see.:party: I dont want to have to buy avast optimizer. it works wonderfully on my phone and tablet. I know it would be awesome. But...
Performance & Maintenance
RAM Optimization
Hello there, Here I am again, seeking some good advices :P I just made a RAM upgrade from 6 to 8 GB and it feels like almost nothing happened. A few details OS Win 7 x64, Intel Core 2 Duo E6750 2.66GB, HDD 1TB (not SSD, true can be the main cause), 4 X Corsair 2GB DDR2, 800MHz, PC2-6400,...
Hardware & Devices
SSD + HDD Optimization
Hi, I just bought a MSI GS60 ghost pro running Win 8.1 64bit with a 128G SSD from Kingston and a 1TB HDD. I was wondering if I can do something to optimize their performance? From my understanding SSD + HDD can't form a RAID right? Is there any kind of good software that can do some tricks?...
Performance & Maintenance
I was told (by a software engineer trying to sell me software) that my computer should be optimized every so often (3-months) to delete unnecessary files and make it run faster, and to delete any malware that may have got past the Windows Firewall and the anti-virus software. Is this true? How do...
Performance & Maintenance
W7 Optimization
Hi i've visited this forum several times to look for clues on how to fix problems with my computer and finally decided to sign up cause it looks like a great forum anyways im having speed troubles like i guess many others are and i've actually been thinking about switching back to XP but i like...
Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 23:08.
Twitter Facebook Google+