Natural Selection 2
Login Now >
Click here to create a new account
Unknown Worlds Entertainment
Home
Game Guide
Community
Media
Forums
Store
Twitter
Facebook
YouTube
Latest Developer Posts
Promoted Content
matso
Master of Patches
May 22
Do the "Performance-Jam"!!!
SteveRock wrote: » CrazyEddie wrote: » Steve, Cory - as long as you're answering performance and technology questions: Are you doing any work around splitting up the game logic code so that it could be handled in multiple lua threads? I know that's not easy (and I know that's an understatement) but it seems like the payoff could be huge. We do this for prediction already, which resulted in huge gains, but that's literally running two separate Lua worlds. Doing it within the same world is more complex, and much more risky (in terms of bugs, code maintainability, whether or not it would even work, etc. etc.). So, it's less likely we'll pursue this avenue. The extra Lua VM running the Predict world is very much a special case; it it responsible for taking the server network updates and merge it with any missing client moves, then deliver that to the main thread. It reduced an O(fps^2) problem in the main thread to an O(network rate) in a secondary thread - a very good thing. Also increased fps so much that Max had to add move rate limiters to avoid servers imploding under the load ... oh, fun times, good times (http://forums.unknownworlds.com/discussion/122189/224-tech-changes-part-1 for those interested in more details ) Lua does not support true multithreading (yet), so if you want to split the logic work you would probably go for using multiple Lua VMs running in their own threads, and then have a merge phase in between... doable, but adding lots of complexity. So going for LuaJIT first is the right way ... hopefully, it will be fast enough to tide Spark over until Lua supports true multithreading.
SteveRock
May 22
Do the "Performance-Jam"!!!
CrazyEddie wrote: » Steve, Cory - as long as you're answering performance and technology questions: Are you doing any work around splitting up the game logic code so that it could be handled in multiple lua threads? I know that's not easy (and I know that's an understatement) but it seems like the payoff could be huge. We do this for prediction already, which resulted in huge gains, but that's literally running two separate Lua worlds. Doing it within the same world is more complex, and much more risky (in terms of bugs, code maintainability, whether or not it would even work, etc. etc.). So, it's less likely we'll pursue this avenue.
matso
Master of Patches
May 22
Do the "Performance-Jam"!!!
CrazyEddie wrote: » Steve, Cory - as long as you're answering performance and technology questions: Are you doing any work around splitting up the game logic code so that it could be handled in multiple lua threads? I know that's not easy (and I know that's an understatement) but it seems like the payoff could be huge. Right now the client uses slightly more than 2 cores at peak load, so further MT would not benefit 2-core machines much. Better to go for LuaJIT, which uses the CPU more efficiently.
MurphyIdiot
NS2 programmer
May 22
time to make the mods - problem
Your problem is in the game_setup.xml file. If you open the console with ~ in game, you will see this being spammed: Error: Error reading end tag. Error: Couldn't load 'game_setup.xml' It failed to parse the file due to this line having a typo: <predeict>lua/ModPredict.lua</predict> The console and log file are your friend
SteveRock
May 22
Do the "Performance-Jam"!!!
moultano wrote: » SteveRock wrote: » And since you seem to be fairly technically minded, the major challenge we face with LuaJIT is the Lua->C++ API. For LuaJIT to be performant, you have to architect that API in some pretty specific ways, otherwise you will always break the JIT compiles and get almost no benefit from it. Completely changing the API is not an attractive option (rewrite a lot of code..break all the mods..), so we're currently investigating ways of avoiding this. Tell us more! Reading about things like this gives me a "break out the profiler" itch. It's exciting. Is there a performance sensitive subset you could rewrite, and assume the remainder will fall back to being interpreted? One challenge is even identifying the hotspots, so Dushan has been working on a sample-based Lua profiler to help with this. Think of it as Intel VTune for Lua scripts (cuz otherwise, VTune just tells us...Lua is slow). Once that is done, we can better assess if it's possible to address just that subset.
Squeal_Like_A_Pig
Janitor
May 22
UWE to replace Vanilla NS2 with Sewlek's balance mod in the near future
thelawenforcer wrote: » ironhorse - im saying that characterizing all criticism or questioning of the mod in general as no more than "omg this mod suxxxxX!!1!!!" is a serious misrepresentation of what people were actually saying and that by doing so, it enables him to ignore said criticism or questions. i find that intellectually dishonest and would expect better from a serious games developer. Nowhere did I state this. Not...at...all. There is plenty of valid criticisms of the mod being carried out in thoughtful discussions in the main BT mod thread, in game, and by the official balance mod testing team, and I was not referring to those arguments, merely requesting people who want to give further feedback to frame it in a manner that is respectful and constructive. And, I see that there were several posts made after my comment that did exactly what I requested, giving their opinions in a non inflammatory way, and listing out the reasons why they disagree with certain features in the mod. However, I would like to request that people leave their feedback in the other current BT thread, so that we have it all in one place, and it doesn't get lost in this thread.
Squeal_Like_A_Pig
Janitor
May 22
Do the "Performance-Jam"!!!
ezekel wrote: » But what about the openGL/DX11 things, what exactly does this do? (besides openGL possibly making it playable or mac or linux or something?) and dx11? No complaints as I'm running a card with dx11 though The primary reason this is being done right now is to be able to port the game over to other platforms, like MAC and Linux. However, we are also hoping there will be some additional performance boost on the GPU side as well, though exactly how much is unknown at the moment. Between this and the LuaJITstuff that is being worked on, which will help out on the CPU side, there should be noticeable performance improvements coming.
matso
Master of Patches
May 22
Location Relevancy; get around max-relevancy distance by location based relevancy
UWE has a bit too much on their platter right now to commit to supporting it, so they prefer it to be a mod. It may be included in mainline if it shows itself to be stable and popular.
Squeal_Like_A_Pig
Janitor
May 22
UWE to replace Vanilla NS2 with Sewlek's balance mod in the near future
thelawenforcer wrote: » how do you intend to quantify this outcry? will it be before or after? will it be based purely on these forums, or will you run a poll ingame to try and reach the maximum amount of players? I ask because you cannot possibly measure the outcry or lack of until you inform the entire player base of said changes. Seeing as even now we only have a 'confirmed denial' i wouldnt say that these plans have been effectively communicated to the community. to assume there is little or no outcry on these pretences seems to be a bit premature. We have plans to promote the mod through the official channels, soon. Sewlek has been working towards finalizing the features, and then we can put it into the final phase of testing and get the word out to more people through blog posts, twitter feed, in game news, etc, to let them know that this could be the future of NS2 and to start playing and giving feedback if they want to have a say. Feedback can be given on the forums - Sewlek has been reading every single post in those threads. It can be given in game - Sewlek is constantly playing on BT mod servers and watching and listening to player experiences. There is an upcoming BT tournament that teams are participating in, and we will be watching those and listening to the players opinions. There are and will be plenty of arguments for and against various features in the mod, and of course we won't please everyone with the changes. But we will listen, and, based on all the feedback we receive from all areas of the community, as well as our own judgement about what we feel is best for the future of NS2, we will make the final decisions about which elements to carry over from the mod into the game. But people need to remember that how you present your opinions is as important as what they are. "OMG this mod sux and is going to kill NS2" is the kind of presentation of an opinion that does little to contribute to the ongoing discussion, and will likely result in those opinions being ignored. "I don't like ___ feature , because of ____ and ____ " is the sort of feedback we are looking for and that will matter.
Forums
Recent Threads
Activity
Best of...
Unknown Worlds Entertainment
Getting Started
Server Browser bug
11
views
1
comment
0
points
Most recent by
IronHorse
5:43AM
Technical Support
Couldn't drop skylights
1
view
0
comments
0
points
Started by
RedSword
5:33AM
Technical Support
Your game files do not match the servers....
251
views
16
comments
0
points
Most recent by
BlueEyedDragon
4:53AM
Technical Support
Game lags for about a minute since update.
311
views
39
comments
0
points
Most recent by
IronHorse
3:48AM
Technical Support
CRITICAL BUG Unable to play NS2 as of build 248
71
views
4
comments
0
points
Most recent by
IronHorse
3:36AM
Technical Support
More Discussions
General
Build 247 is now live on Steam! - Natural Selection 2
6.9K
views
115
comments
0
points
Most recent by
FLuX
6:24AM
General Discussion
Please lower shotgun power
1.5K
views
87
comments
1
point
Most recent by
Imbalanxd
6:20AM
General Discussion
NA Div 2 FINALS AtroX v. CiB @ 6:30pm PDT/9:30pm EDT/3:30am CEST!
41
views
3
comments
1
point
Most recent by
RedDog
6:05AM
General Discussion
Longest game ever
We've broke the record !!!!!!!!
1.3K
views
34
comments
0
points
Most recent by
Zaggy
5:58AM
General Discussion
Hilarious but dumb non the less
131
views
5
comments
0
points
Most recent by
sumo0
5:58AM
General Discussion
More Discussions
Veteran
Custom HUD mod
301
views
9
comments
0
points
Most recent by
Gliss
May 22
Competitive Play
ESL
Opening tournament
Webbed
2.7K
views
49
comments
0
points
Most recent by
fanatic
May 22
Competitive Play
Australian Cyber Gamer Tournament Season 1 comes to a close
201
views
8
comments
0
points
Most recent by
sebastianoswell
May 22
Competitive Play
Quoth Gaming recruiting for ENSL
141
views
2
comments
0
points
Most recent by
SammyG
May 21
Competitive Play
Pro players - Competitive play Vs Pub Play
1.4K
views
39
comments
0
points
Most recent by
joshhh
May 21
Competitive Play
More Discussions
Creation
[WIP] co_portals - Community Made Fun Map!
1.9K
views
111
comments
0
points
Most recent by
Flaterectomy
4:46AM
Mapping
ns2_caged
remake
14K
views
226
comments
0
points
Most recent by
Jekt
1:38AM
Mapping
Marine vs Marine - Released
New gametype mod
13.3K
views
198
comments
5
points
Most recent by
CyberKun
12:52AM
Modding
Custom map playtest sessions
mappers and env. artists wanted for weekly playtests
2.9K
views
177
comments
3
points
Most recent by
troops
May 22
Mapping
ns_mamba
121
views
5
comments
0
points
Most recent by
troops
May 22
Mapping
More Discussions
Other
Xbox One (1)
341
views
24
comments
0
points
Most recent by
Koruyo
6:23AM
Off-Topic
Do all dating websites suck?
71
views
2
comments
0
points
Most recent by
baconbits
May 22
Off-Topic
Ns2 gorge
Ns style
42.4K
views
88
comments
0
points
Most recent by
Naz
May 22
NS Customization
Missing Constie Status
181
views
24
comments
0
points
Most recent by
Comprox
May 22
Web Site Feedback
Editing A Post / Thread Bug
251
views
16
comments
0
points
Most recent by
Comprox
May 22
Web Site Feedback
More Discussions
Community
Copyright
Developer
Terms of Use
Privacy
Unknown Worlds Entertainment Logo
© 2013,
Unknown Worlds Entertainment
. All rights reserved.
Visual Design by
Fully Illustrated