Maximum number of zones.

For Issues, Ideas, or Subjects That Do Not Fit Elsewhere

Moderators: Moderator, DM

User avatar
Maximvs
Posts: 281
Joined: Sun May 17, 2009 3:45 pm

Maximum number of zones.

Unread post by Maximvs »

Someone mentioned that in another thread. BG is getting close to it's maximum number of zones? What is the maximum number, 255 ?
MmmmMMMMmmm, tasty humanz, hmmmmMMM!!!
User avatar
Maecius
Retired Admin
Posts: 11639
Joined: Sat May 16, 2009 4:24 pm

Re: Maximum number of zones.

Unread post by Maecius »

As I understand it there's not really a hard number.

But after a certain size, due to the way NWN2 works, the module's stability will begin to seriously suffer and we'll start to get a lot of crashes and bugs.

Someone with more Toolset savvy than I can probably correct me if and where I'm wrong.
User avatar
Maximvs
Posts: 281
Joined: Sun May 17, 2009 3:45 pm

Re: Maximum number of zones.

Unread post by Maximvs »

Sounds more server savvy than toolset savvy. Does that mean the size of each maps also counts?
MmmmMMMMmmm, tasty humanz, hmmmmMMM!!!
User avatar
Blackman D
Retired Staff
Posts: 4818
Joined: Sat Sep 12, 2009 5:43 am
Location: IL

Re: Maximum number of zones.

Unread post by Blackman D »

map size doesnt matter no, its the crap thats on the map, a large map can pull very little resources and a small map can hog a lot, it just depends on how its setup

mostly placeables vs environmental objects; placeables have actual properties and the server has to load each one which takes up more resources while environmental objects have bare minimum and take up next to nothing, but can also do nothing either
everyone is evil till proven otherwise
User avatar
Maximvs
Posts: 281
Joined: Sun May 17, 2009 3:45 pm

Re: Maximum number of zones.

Unread post by Maximvs »

Ok thanks.
MmmmMMMMmmm, tasty humanz, hmmmmMMM!!!
User avatar
Aspect of Sorrow
Custom Content
Posts: 2702
Joined: Fri Mar 28, 2014 7:11 pm
Location: Reliquary

Re: Maximum number of zones.

Unread post by Aspect of Sorrow »

For what it's worth, the actual hard limit is exactly 2,147,483,646.
User avatar
Silver_Lining
Posts: 649
Joined: Tue Jan 22, 2013 7:58 pm

Re: Maximum number of zones.

Unread post by Silver_Lining »

If there are guild halls and areas that were made with too many placables, I would be happy to do placable to environmental conversions if sent the areas by the DEV team, to lower the use of resources on the server. The only things that 'should' be placable are charis/benches/walkables/examanable items etc. If everything else is converted to environemtnal with walkmesh cutters, that too can help cut down on space used.
Retired Player
Tsidkenu

Re: Maximum number of zones.

Unread post by Tsidkenu »

Old Harper guildhall has way too many placeables. Start there pls. :mrgreen:
Karond
Posts: 2221
Joined: Sat Jan 15, 2011 10:47 am
Location: Sweden

Re: Maximum number of zones.

Unread post by Karond »

Tsidkenu wrote:Old Harper guildhall has way too many placeables. Start there pls. :mrgreen:
Too many placeables in rasta's and mrm3ntalist's character inventories. That's 2% of the lag already ;)
User avatar
Aspect of Sorrow
Custom Content
Posts: 2702
Joined: Fri Mar 28, 2014 7:11 pm
Location: Reliquary

Re: Maximum number of zones.

Unread post by Aspect of Sorrow »

Please consider the following image.

Image

1. No-walk terrain painting is preferrable to walkmesh cutting. Baking process is shortened with significant sums of cutters, in addition the polys are more uniform when calculating intersecting walkmesh and pathfinding cut trajectory.

2. Objects taking up less than a single human phenotype's space is better off not requiring walkmesh cuts, nor no-walks as it would lessen at minimum 2 additional calculated pathfinding points, which adds to overall server calculated travel. Something that should be considered especially between PC and NPC alike and is performed by the server, not the client.

The green represents octogonal boundaries within the area boundary determined by walkmesh and the red represents the slicing formality incurred. The more points on non-uniformed polygonal draws increases additional pathfinding calculation along the traversed path to the next node. In this example, blue's pathfinding from O to X has a calculated 3 points of travel. If the octogon were a Triangle, only two would be required. The length of the shape also is taken into consideration for the timing involved. This calculation is not only determined by the baked process but dynamic as well (npcs, pcs), which adds to the ordeal. Fourty players moving actively across the planes is trivial in comparison to the amount of NPCs whose pathfinding is determined the same way, it adds up. If multiple objects are encountered which requires pathing to adjust repeatedly, say, a group of colliding barrels, you'll see upwards of 10+ nodes to be calculated. In some places it can become extreme, such as the Batari cavern tileset. If left to C2 boundary / collision data, models can consume significant amounts of nodes just by the simple curvature of one corner.

40 players performing approximately 20 move actions approximately every ~5 seconds.
At minimum 100 NPCs at any given point in time performing 1 move action at a similar approximation, 24 pathfinding requests alone across potentially cumbersome walkmesh/terrains adds up, even before taking into consideration any scripts firing, or combat.

We as players take the simple matter of clicking in a digital space for granted on a very optimization-lacking engine.

nwserver is a single threaded process.
chad878262
Posts: 9332
Joined: Thu Sep 18, 2014 6:55 pm

Re: Maximum number of zones.

Unread post by chad878262 »

very informative post AoS. Interesting stuff!
Chord Silverstrings - Bard and OSR Squire / Tarent Nefzen - Arcane Wand Merchant and Master Alchemist / Irrace Arkentlar - Drow Adventurer / Finneaus Du'Veil - Gem Merchant and Executive Officer of SCCE

Tarent's Wands and Elixirs

A Wand Crafter's guide to using wands
Storm Munin
Posts: 1355
Joined: Sun Nov 07, 2010 5:03 am
Location: Sweden, Alfheimar expat

Re: Maximum number of zones.

Unread post by Storm Munin »

:o

I should cut down on the numbers in my server vault.
"Drojal zhah obdoluth dorb'd streeak, Lueth dro zhah zhaunau dorb'd ogglin."
"Existence is empty without chaos, Life is boring without enemies." So sayeth Lady Lolth, Queen of Chaos.

PC: Natalya, wandering enchantress.
DM Pun Pun
Posts: 1424
Joined: Tue Nov 11, 2014 4:52 pm

Re: Maximum number of zones.

Unread post by DM Pun Pun »

There is no limit to how many areas you can have in a module. However, every area makes the module size bigger, and when you hit a certain size, performance will suffer.
User avatar
LISA100595
Retired Staff
Posts: 5203
Joined: Mon Aug 22, 2011 12:23 pm

Re: Maximum number of zones.

Unread post by LISA100595 »

Also Exterior Areas take up a Ton of more resources than Interiors. Thanks for the technical infor AOS. :)
Lady Elvina Aira-S'efarro - The Order of the Silver Rose
Nai'KaBael Oakenshadow - EDE former ArchDruidess and Wife and Mate of Mendel
Salaria - Bounty Hunter half-sister of Darius Brothers
Angelina Northstar - Holy Warrior of Tyr / Knight of the Silver Rose
User avatar
Maximvs
Posts: 281
Joined: Sun May 17, 2009 3:45 pm

Re: Maximum number of zones.

Unread post by Maximvs »

Very interesting information... While we're at it, what's the least taxing on a server host, between a placeable converted as environmental and a special effect that looks exactly the same?
MmmmMMMMmmm, tasty humanz, hmmmmMMM!!!

Return to “General Discussion”