Morrowind Acceleration Layer?

Post » Mon May 07, 2012 6:06 pm

http://www.gamesas.com/topic/1321575-rel-tesv-acceleration-layer/

I don't understand what it does in TESV Skyrim but does anybody suppose this type of thing could be applied to Morrowind to boost frame rate and performance?

"It replaces many calls to functions that would have been inlined if the compiler optimizer settings were set to something higher than "off" with actual inline code that nicely fits in the five bytes the jump instruction was previously taking up. It also overwrites several functions, replacing them with SSE implementations instead of the very painfully slow original x87 implementations."
User avatar
Philip Lyon
 
Posts: 3297
Joined: Tue Aug 14, 2007 6:08 am

Post » Mon May 07, 2012 5:52 pm

From reading that snippet it sounds like there are types of fixes it performs:

1. Replace FPU code with SSE code in some functions.
2. Inline functions which return "this."

For the second I can't comment, but wouldn't TimeSlip's fpu2sse patcher perform similar changes as described in the first?
User avatar
Kat Ives
 
Posts: 3408
Joined: Tue Aug 28, 2007 2:11 pm

Post » Mon May 07, 2012 5:35 pm

To put it simply Skyboost/TesV Acceleration Layer provides much in FPS gains, while exe optimiser/fpu2sse provides only a minor stability boost and tiny fps boosts in some cases.

Note: Skyboost is using an asi loader which could be ported to Morrowind, in theory...
User avatar
Kat Lehmann
 
Posts: 3409
Joined: Tue Jun 27, 2006 6:24 am

Post » Tue May 08, 2012 2:01 am

For the second I can't comment, but wouldn't TimeSlip's fpu2sse patcher perform similar changes as described in the first?
Sort of, but exeopt isn't particulaly intelligent. You can generally get better results by using something like vtune to find bottlenecks and then patch them by hand. (Also, nitpick, but fpu2sse is a different program, and wasn't anything to do with me beyond me writing a GUI for it. exe optimizer was the one that was mine.)

The second point isn't important; skyrim was compiled with compiler optimizations disabled. Morrowind wasn't, so that sort of patching opertunity doesn't exist. (At least as far as I remember... I haven't touched morrowind in ages, but I'm fairly sure I would have noticed.)

Edit: Just for the fun of it, I knocked up a quick ida plugin to search for and inline all the simple functions it could find. It caught 2422 call sites to 73 different functions, but as expected didn't make any noticable difference to fps.
User avatar
ladyflames
 
Posts: 3355
Joined: Sat Nov 25, 2006 9:45 am

Post » Tue May 08, 2012 2:55 am

Meh, upload it anyway!
Anything is great!
User avatar
ILy- Forver
 
Posts: 3459
Joined: Sun Feb 04, 2007 3:18 am


Return to III - Morrowind