[REL] TESV Acceleration Layer, Thread 3

Post » Sun Jun 17, 2012 2:12 pm

Thanks for the input, I'll go try out the latest version of the plugin!
User avatar
jadie kell
 
Posts: 3497
Joined: Sat Jul 29, 2006 3:54 pm

Post » Mon Jun 18, 2012 2:47 am

Just to confirm, this fixed the Helgen issues for me.



Considering my Core i7 930 @ 2.8 GHz is the Bottleneck when it comes to Skyrim and the mobile processors are much less powerful than the desktop versions, yes, it'd definately be worth trying the patch.

Ah, interesting-- I'm on a 950 with a 560TI card, the rest ist he same. So it'll probably help me considerably, too.
User avatar
Jordyn Youngman
 
Posts: 3396
Joined: Thu Mar 01, 2007 7:54 am

Post » Mon Jun 18, 2012 4:55 am

Using Silverglade's second version patch, Helgen works as intended.
User avatar
WYatt REed
 
Posts: 3409
Joined: Mon Jun 18, 2007 3:06 pm

Post » Sun Jun 17, 2012 9:21 pm

@Silverglade

Arisu popped in to the PC subforum thread and this is what he said about your hotfix:



Maybe it will help you?

I implemented the fix (changed setnz to setz) as Arisu described and it appears to be working at Helgen's still.

Here is the file. It is version 1 with just the setnz to setz fix for Patches.replace.test_bit_30

I used 4shared to host it as someone suggested.

http://www.4shared.com/zip/y9_xxsOw/TESVAL_v1_with_fix.html?

Please let us know how if you find any bugs.
User avatar
Beast Attire
 
Posts: 3456
Joined: Tue Oct 09, 2007 5:33 am

Post » Sun Jun 17, 2012 3:06 pm

Heh, was going to stop by to report the same thing. The test is reversed, that should fix the problem.
User avatar
Rude_Bitch_420
 
Posts: 3429
Joined: Wed Aug 08, 2007 2:26 pm

Post » Sun Jun 17, 2012 1:12 pm

So.... wich version should we use :biggrin:? Silverglade fixed version or GreatWalrus one? They are the same thing?


BTW I'm using silverglade 2nd fixed ver. and the game runs just fine :banana:
User avatar
{Richies Mommy}
 
Posts: 3398
Joined: Wed Jun 21, 2006 2:40 pm

Post » Sun Jun 17, 2012 4:47 pm

Yeah, kind of confused. Silverglade has 2 different ones, and now a GreatWalrus one. :shocking:
User avatar
Rob Davidson
 
Posts: 3422
Joined: Thu Aug 02, 2007 2:52 am

Post » Sun Jun 17, 2012 4:38 pm

Well mine implements the fix as suggested by Arisu and Silverglade's uses a workaround. Both may work, but mine needs testing on the bugs we initially discovered (I tested Helgen's and it works).

Here is the quote above from Arisu:

Hey guys,

as noted yesterday, I don't have much free time during Christmas. However, I can confirm that the original code for Patches.replace.test_bit_30 was flawed.

The "setnz" should've been "setz". The fixed version posted above [Silverglade's 2nd version] also solves this problem by simply inverting the wrong value (the neg transforms 0 -> 0 or 1 -> -1, the add transforms from 0 -> 1 or -1 -> 0).

So mine just changed "setnz" to "setz" as he described.
User avatar
CArla HOlbert
 
Posts: 3342
Joined: Wed Feb 21, 2007 11:35 pm

Post » Sun Jun 17, 2012 7:36 pm

I was just about to report about the invisible forge issue and saw the update, works great, thanks :)
User avatar
Alkira rose Nankivell
 
Posts: 3417
Joined: Tue Feb 27, 2007 10:56 pm

Post » Mon Jun 18, 2012 4:40 am

Okay, I have uploaded another version that tries to add back the functionality of the original code. I've added the code back into the zip so people can take a look at it. It would be nice if someone like ianpatt, Alexander, Timeslip, etc. would look over the code change and make sure I did it correctly. It works for me; everyone can try it and let me know if they have any problems.

http://www.megaupload.com/?d=9VPUID4C


Version from Silverglade works in Helgen but he has stuff code there . Use the version from GreatWalrus , he did the fix correctly - in fact test_bit_30 must be named as bit_30_not_set , as ianpatt said - func result is reversed
User avatar
Laura Shipley
 
Posts: 3564
Joined: Thu Oct 26, 2006 4:47 am

Post » Sun Jun 17, 2012 2:33 pm

Thanks for the clarification :)

I put GreatWalrus's into my public Dropbox so people don't need to use megaupload/4shared: http://dl.dropbox.com/u/1016838/TESVAL%20v1%20with%20fix.zip
User avatar
Fam Mughal
 
Posts: 3468
Joined: Sat May 26, 2007 3:18 am

Post » Sun Jun 17, 2012 11:11 pm

In order to show everyone how minimal the differences are here are the three versions of the significant code segment.
Original by Arisu:
; v1.3.10.0: $0051E340@@: Patches.replace.test_bit_30:   test     dword [ecx+152], $20000000   setnz    al   retn.size = $ - @b

2nd fix by Silverglade:
; v1.3.10.0: $0051E340@@: Patches.replace.test_bit_30:   test     dword [ecx+152], $20000000   setnz    al   movzx    eax, al   neg      eax   sbb      eax, eax   add      eax, 1   retn.size = $ - @b

And finally GreatWalrus' fix as suggested by Arisu (notice the setz):
; v1.3.10.0: $0051E340@@: Patches.replace.test_bit_30:   test     dword [ecx+152], $20000000   setz    al   retn.size = $ - @b

You won't get any of the two fixes at Nexus at the moment, but here in this thread.
User avatar
Peetay
 
Posts: 3303
Joined: Sun Jul 22, 2007 10:33 am

Post » Sun Jun 17, 2012 6:04 pm

Yes, that is all there is, Telegraf. I won't bother renaming the function as I don't want to confuse people with even more files :X
User avatar
Darren Chandler
 
Posts: 3361
Joined: Mon Jun 25, 2007 9:03 am

Post » Sun Jun 17, 2012 3:51 pm

I don't really care which one you publish; they effectively do the same thing. The setz version will save a few clock cycles. But as was noted earlier, the name should probably be changed to test_bit_30_not_set.
User avatar
Hairul Hafis
 
Posts: 3516
Joined: Mon Oct 29, 2007 12:22 am

Post » Sun Jun 17, 2012 3:13 pm

Ok, then renaming the function could be done when this gets a dedicated page at skse.silverlock.org. ;) I wonder if setz fixes all broken scripts now.
Anyway since other bottlenecks have been found already, this is going to be an interesting project. Thanks to you all guys, especially Arisu!
User avatar
Anthony Diaz
 
Posts: 3474
Joined: Thu Aug 09, 2007 11:24 pm

Post » Sun Jun 17, 2012 4:03 pm

Thank you very much for your work earlier, Silverglade. You got it working for all of us while we waited to hear from Arisu.
User avatar
Philip Lyon
 
Posts: 3297
Joined: Tue Aug 14, 2007 6:08 am

Post » Mon Jun 18, 2012 4:57 am

Just chucking in the general "works for me, too". (Using GreatWalrus' fix)

Got a Phenom II BE Clocked at 3,4 GHz and had about 35% increase (from 21 to 29 FPS in Whiterun looking down onto the town) - took me by surprise so to speak - installed the SKSE/plugins folder wrong the first time (I put it into the same directory as the skse_launcher instead of the data folder - duh! )

Thanks a lot, I'm also looking forward what (and if) further optimizations will be made.
User avatar
Anthony Diaz
 
Posts: 3474
Joined: Thu Aug 09, 2007 11:24 pm

Post » Sun Jun 17, 2012 8:46 pm

Gonna join in on the kudos :D
I've just installed the latest nVidia beta driver (290.53) which for my increased outdoor fps by at least 20 but it still didn't feel right and I kinda thought that my Phenom X4 975 might be the bottleneck so that tweak/fix finally got my rig to run Skyrim on 1920, decent AF + AA and Ultra presets. You guys are my heroes :D
User avatar
Melis Hristina
 
Posts: 3509
Joined: Sat Jun 17, 2006 10:36 pm

Post » Mon Jun 18, 2012 5:22 am

for those that is not having any increase in their performance,check again if you guys are using any ENB patch (any version) that has .dll and enbpatch.ini in the patch..if you are,try to remove the enbpatch files and the start the game again with skse_loader.exe

it works for me after i delete the files...

NOTE:it seems enb's overide the TESV accel code even when the enb was there before you put the skse and the plugin...hope it works for you guys..
User avatar
Sabrina Steige
 
Posts: 3396
Joined: Mon Aug 20, 2007 9:51 pm

Post » Sun Jun 17, 2012 5:58 pm

So are we ready to upload a version on to Nexus? It sounds like both Silver's fix and Walrus' fixes take different approaches. Would it be better to combine them or would that break everything?
User avatar
Nicole Elocin
 
Posts: 3390
Joined: Sun Apr 15, 2007 9:12 am

Post » Mon Jun 18, 2012 4:48 am

Go with GreatWalrus' version. It's a proper fix instead of a workaround fix.
User avatar
Emmi Coolahan
 
Posts: 3335
Joined: Wed Jan 24, 2007 9:14 pm

Post » Mon Jun 18, 2012 12:44 am

Someone should post up a version with the test_bit_30_not_set change... I am clueless how to compile the dll using the src files.
User avatar
renee Duhamel
 
Posts: 3371
Joined: Thu Dec 14, 2006 9:12 am

Post » Sun Jun 17, 2012 7:50 pm

So are we ready to upload a version on to Nexus? It sounds like both Silver's fix and Walrus' fixes take different approaches. Would it be better to combine them or would that break everything?

According to the responses so far, it seems to work fine, so I'd say yes. The fix by GreatWalrus is actually how it was intended by me; it removes the "n" from setnz instead of working around it by a value transformation of the wrong value, which war the earlier approach to fix it.
User avatar
Ann Church
 
Posts: 3450
Joined: Sat Jul 29, 2006 7:41 pm

Post » Sun Jun 17, 2012 5:59 pm

I don't really care which one you publish; they effectively do the same thing. The setz version will save a few clock cycles. But as was noted earlier, the name should probably be changed to test_bit_30_not_set.

What exactly is the deal with switching to "test_bit_30_not_set"? Is it just a proper naming convention thing, or does it actually impact function?
User avatar
u gone see
 
Posts: 3388
Joined: Tue Oct 02, 2007 2:53 pm

Post » Sun Jun 17, 2012 2:28 pm

I gained 20 fps in cities after installing this! It's like magic! =D

Though after reading through this thread i understand that the mod is causing some kind of problem? What exactly?
User avatar
kelly thomson
 
Posts: 3380
Joined: Thu Jun 22, 2006 12:18 pm

PreviousNext

Return to V - Skyrim