 |
 |
 |
|
|
 |
 |
 |
|
|
 |
 |
| New lua.JIT.1.1.4.dll for faster engine response (?) |
|
1 2 3 4 5 6 ... 10 | Next 10 events »| All Messages |
| |
|
|
16:18:38 26 October 2013 |
|
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.
I left GSC forums. You can find me here:
http://forum.epicstalker.com
Call of Chernobyl - a mod for Call of Pripyat{{WIP}}
http://www.moddb.com/mods/call-of-chernobyl
Tutorial - creating AI map and graph:
http://www.moddb.com/members/bangalore/tutorials/creating-ai-map-and-graph
Tutorial - Editing SOC's all.spawn with level editor:
http://stalkermod.wiki-site.com/index.php/Working_on_all.spawn_with_SOC_level_editor
http://www.moddb.com/members/bangalore/tutorials/working-on-allspawn-with-soc-level-editor
"I have a dream that one day this community will rise up and live out the true meaning of its creed: We hold these truths to be self-evident; that all mods are created equal."
|
17:29:46 26 October 2013 |
|
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 |
09:59:57 27 October 2013 |
|
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 |
|
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
I left GSC forums. You can find me here:
http://forum.epicstalker.com
Call of Chernobyl - a mod for Call of Pripyat{{WIP}}
http://www.moddb.com/mods/call-of-chernobyl
Tutorial - creating AI map and graph:
http://www.moddb.com/members/bangalore/tutorials/creating-ai-map-and-graph
Tutorial - Editing SOC's all.spawn with level editor:
http://stalkermod.wiki-site.com/index.php/Working_on_all.spawn_with_SOC_level_editor
http://www.moddb.com/members/bangalore/tutorials/working-on-allspawn-with-soc-level-editor
"I have a dream that one day this community will rise up and live out the true meaning of its creed: We hold these truths to be self-evident; that all mods are created equal."
|
|
1 2 3 4 5 6 ... 10 | Next 10 events »| All Messages |
| |
|
| |
| » » |
| |
All short dates are in Month-Day-Year format. |
 |
|
 |
|
|
|
 |
 |
 |