ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Call of Pripyat Forum » Mod discussion
New lua.JIT.1.1.4.dll for faster engine response (?)

1 2 3 4 5 6 ... 10 | Next 10 events »| All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  16:18:38  26 October 2013
profilee-mailreply Message URLTo the Top
Bangalore
Robberbaron
(Resident)

 

 
On forum: 02/17/2008
 

Message edited by:
Bangalore
10/26/2013 16:46:30
Messages: 1134
New lua.JIT.1.1.4.dll for faster engine response (?)

Hi there,

After my successful private tests, I'm throwing this dll file for a public test - put into game's /bin folder (backup the original one):

http://www.mediafire.com/download/15brgil3s1z47rs/lua.JIT.1.1.4.dll

I followed this post in CS threads by Xetrill:

http://www.gsc-game.com/index.php?t=community&s=forums&s_game_type=xr2&thm_page=46&thm_id=22757&sec_id=22&page=60

and compiled a new dll from LuaJIT-1.1.8 source code with MS Visual Studio Express 2010.

Well, and i increased the call stack values, which will abort the engine only at higher memory using (2-2.5 GB instead of 1.4 GB).

Values changed:

LUAI_MAXCALLS 20000 -> 40000
LUAI_MAXCSTACK 8000 -> 10000
LUAI_MAXCCALLS 200 -> 10000
LUAI_MAXVARS 200 -> 249
LUAI_MAXUPVALUES 60 -> 249


COP's original luajit is compiled from the older source code 1.1.4 from 2008, i compiled the new dll with the newest compatible (bugfixed and hopefully faster) 1.1.8 source code from 2012.

The result is 100% compatible with COP engine, it will not crash.
The new dll is smaller, it does not mean anything is stripped, it just means that another compiler produced different binary code. In the game's consol/log you'll get a warning message that the Lua core/lib are mismatched, but as Xetrill said too, first that's wrong, and secondly - and more important - it doesn't matter, everything works fine.

What can you expect? Faster engine response, smaller lagging in the game when switching objects online/offline, faster communication between C++ engine and LUA codes. But i'm not sure what else can we expect or gain from this, maybe the C++ experts can make "wonders".

Source files (from and above LuaJIT-2.0.0-beta1 all dll is incompatible with COP):
http://luajit.org/download.html

Source files for my specific dll:
http://www.mediafire.com/download/n8u044oa98989j2/LUAJIT.ZIP

So let's experience ppl, change values in source, and any feedback appreciated, maybe dll can solve crash problems (or maybe not), speed reports etc.
  17:29:46  26 October 2013
profilee-mailreply Message URLTo the Top
xbook
(Senior)
 
On forum: 09/27/2013
Messages: 111
makes me wonder why you people arnt the one whos making stalker right now, the vanilla looks like an unfinished product that shouldnt be out yet
  18:31:40  26 October 2013
profilee-mailreply Message URLTo the Top
nashathedog
Resident douchebag
(Resident)

 

 
On forum: 01/31/2011
Messages: 6674
I'll let you know how I get on with it.
  22:33:05  26 October 2013
profilee-mailreply Message URLTo the Top
gobbiner
Senior Resident
 

 
On forum: 03/30/2009
Messages: 266
Giving this a try wih Misery mod installed and have definately noticed a decrease of stutter when entering the Skardorsk or any heavly npc populated areas. Will keep using it and let you know what happens. ( hope this isn't a case on my part of cleaning the car and it seems to go faster)
  22:43:22  26 October 2013
profilee-mailreply Message URLTo the Top
Bangalore
Robberbaron
(Resident)

 

 
On forum: 02/17/2008
 

Message edited by:
Bangalore
10/26/2013 22:56:29
Messages: 1134

---QUOTATION---
hope this isn't a case on my part of cleaning the car and it seems to go faster
---END QUOTATION---




Ok guys, exactly this is the purpose of the public test, i didn't measure in (milli)seconds the difference, i just FELT that the game stuttering (with my mod) is much better. So i need confirmation, it's not just a placebo effect on my side. I don't play so engine heavy stuff like Misery 2 or some russian mods, but if the dll has a positive faster response effect, it can be remarkable with these mods.
  04:17:31  27 October 2013
profilee-mailreply Message URLTo the Top
playdough
Senior Resident
 

 
On forum: 04/20/2011
Messages: 892
I assume that this will only work with the X-ray engine used in CoP .... not SoC and/or CS?
  09:59:57  27 October 2013
profilee-mailreply Message URLTo the Top
cdr
(Novice)
 
On forum: 07/06/2010
Messages: 10
i test it in sgm 2 and even when the procces xr engine reqouesting more than 3.0 g the game run smother and no crash .( in 4.1 total mem usage )
even in heavy load area 30-40 npcs in jupiter plant
(clear the area of zombies ) is much much better.

for the moment you get my vote !

and thanks anyone again moders

my rig in case you want to make compares
i5 750
hd 7950 3g
8g mem
win 7 64bit
  10:20:22  27 October 2013
profilee-mailreply Message URLTo the Top
Bangalore
Robberbaron
(Resident)

 

 
On forum: 02/17/2008
 

Message edited by:
Bangalore
10/27/2013 10:40:01
Messages: 1134

---QUOTATION---
I assume that this will only work with the X-ray engine used in CoP .... not SoC and/or CS?
---END QUOTATION---



I'm sure it will work with CS too. I could use CS's luajit.dll for COP, but it was just as slow like COP's luajit, as it is based on 1.1.4.

Xetrill posted some new dll for CS here (experimental versions don't work for me, just the largecallstack version):
http://www.gsc-game.com/index.php?t=community&s=forums&s_game_type=xr2&thm_page=54&thm_id=23321&sec_id=22&page=1
http://pastebin.com/u/Xetrill
https://skydrive.live.com/?cid=7a97f583cb87b743&id=7A97F583CB87B743!13306
(on skydrive see largecallstack version)

You can't use it for SOC, it's not good for xrLUA.dll, devs used different solution.

@cdr

Good news. It should not crash, 1.1.8 luajit has some lua fixes compared to 1.1.4, so it should be more stable, or even not crash where the older dll crashes.

Changelist of luajit source code, see the "fixed bad assertions while compiling table.insert() and table.remove()" since 1.1.4, and added fixes for the currently known bugs:
http://luajit.org/changes.html

The best would be to make work the 2.0.2, as it has very significant speed enhance compared to 1.1.x series, but it was written from scratch, and i couldn't start a new game with it. But if someone could make it compatible with COP... the engine would have wings.
Compare here Luajit 1.1.6 and 2.0.0, speed increase multiplier is between 2x-60x

http://luajit.org/performance_x86.html
  12:23:11  27 October 2013
profilee-mailreply Message URLTo the Top
Cromm Cruac
Сделано в Чернобыле
(Resident)

 

 
On forum: 11/19/2009
Messages: 1143
First of all thanks for your effort Mr. B.

I tested it briefly with Misery 2 and I can't tell if there is a definitive difference. The stuttering still occur but may be lesser. Hard to say as the stutters were very short before anyway (around 1/2 sec). But it may be less of them now. It might ba a 'placebo' effect you've mentioned.

I think that good benchmark would be SGM 2.2 which is very heavy on LUA scripts. There is a huge FPS drop around the bases. For instance in Skadowsk playing vanilla I had 60fps. In SGM 12fps.
If this dll does the magic there should be an increase of FPS when in Skadovsk.
  22:30:49  27 October 2013
profilee-mailreply Message URLTo the Top
nashathedog
Resident douchebag
(Resident)

 

 
On forum: 01/31/2011
 

Message edited by:
nashathedog
10/27/2013 22:42:23
Messages: 6674
Testing with SGM

After what Cromm Cruac said I tried SGM Geonezis for about an hour, so this is based on that. I made numerous trips to and from the Skadovsk to make sure it kept acting the same and it seems the pauses I suffer as I get close are all but gone, I still get a reduction in fps but I seem to be averaging around 50-60 at the Skadovsk where as I was looking at 40-50 before, The most noticable difference is where I would sometimes get 2 or 3 or even 4 pauses one after the other as I approach the barge sometimes each one could last a second or two (that's why I never called them stutter) and they were very noticable and annoying I got none of that playing today which was a big shock and very nice.

So it must be the file making the difference as I have nothing else changed.

EDIT
After writing the bit above I decided to switch back to the other file and verify this and it is making a noticable difference that ties in with what I explained.

SGM runs better with this file rather than the vanilla one.
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Call of Pripyat Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2007 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.