Page MenuHomeSchine - Phabricator

Starmade | entities entering boundary area of another large entity can cause client/server lag
Confirmed task for development, HighPublic

Description

This is to do with large ships docking, many ships at the same time entering a station boundry box and active turrets at a large player base station.
I have spoken with Lancake about this prior to reporting it here.

Example 1)

Player has 500m ship with 15+ turrets (deactivated) and goes to dock at their station. When the ship nears the station and enters the stations boundry box the client fps drop very low maybe 3-5 fps until the ship has docked then it returns to normal.

Example 2)

NPC pirates spawn (15+) near a player station and the station turrets are active fps drops, when the pirate NPC's enter the stations boundry box the server PING goes crazy 1000+ and is reported by other players and the clients fps dropped to 1. It was necessary to admin mass depawn MOBS to stop the server locking up.


Big vs Big is actually not really an issue. However, it does become one if you have docked entities and all of them come "close" to that other big contraption.
This could be a station you're just approaching with your big ship + its 50 turrets. Once enough of those turrets come close enough you'll see a giant impact on performance.
Or 2 big ships face hugging each other with plenty of turrets near the front.

Looks like an issue where it just scales badly, the more docked entities you have, the bigger the performance drop when you come close each other. Not entirely sure if that is caused by a bug or if it is just a physics limitation for now.

Details

Task Type
Bug
Testing Results
Affected Gamemode(s)
Multiplayer
Reproducible
Yes
Last tested (version)
0.199.144
Category
Physics
First occurrence (version)
0.15
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
AMD/ATI
Serverconfig (server.cfg)
<replace this line with the file content>
Clientconfig (settings.cfg)
<replace this line with the file content>

Event Timeline

Phocian updated the task description. (Show Details)Oct 28 2015, 4:49 PM
Phocian changed Category from none/unspecified to Physics.
Phocian changed Affected Gamemode(s) from none/unspecified to Multiplayer.
Phocian set First occurrence (version) to Last six months.
Phocian changed Reproducible from uncertain to Yes.
Phocian set Last tested (version) to 0.19431.
Phocian edited Serverconfig (server.cfg). (Show Details)
Phocian edited Clientconfig (settings.cfg). (Show Details)
Phocian added a subscriber: Phocian.
Phocian created this task.
Restricted Application added a project: Issue Navigation. · View Herald TranscriptOct 28 2015, 4:49 PM
Phocian set Task Type to Bug.Oct 28 2015, 7:33 PM
Phocian set OS-Specific to No.
Phocian set Hardware-Specific to No.
Phocian set Video Card Vendor to AMD/ATI.
Phocian renamed this task from Multiple NPC Ships entering a large stations boundry and station controlling docked ships turrets. Client FPS drop to 1-5, Server Ping 1000+ to Multiple NPC Ships entering a large stations boundry and station controlling docked ships turrets. Client FPS drop to 1-5, Server Ping 1000+.
lancake added a subscriber: lancake.Nov 3 2015, 4:27 PM
lancake claimed this task.

-Validated-

Yeah, seems physics sometimes goes haywire even though it probably shouldn't.

lancake shifted this object from the S1 Public space to the S3 Starmade space.Nov 3 2015, 4:29 PM
lancake changed the visibility from "Custom Policy" to "Public (No Login Required)".
lancake changed the edit policy from "Task Author" to "Starmade (Project)".
lancake renamed this task from Multiple NPC Ships entering a large stations boundry and station controlling docked ships turrets. Client FPS drop to 1-5, Server Ping 1000+ to entities entering boundary area of another large entity can cause client/server lag.
lancake triaged this task as High priority.
Restricted Application added a subscriber: AndyP. · View Herald TranscriptNov 3 2015, 4:29 PM
lancake changed the task status from Open to In Queue (Game).

-Confirmed-

Big vs Big is actually not really an issue. However, it does become one if you have docked entities and all of them come "close" to that other big contraption.
This could be a station you're just approaching with your big ship + its 50 turrets. Once enough of those turrets come close enough you'll see a giant impact on performance.
Or 2 big ships face hugging each other with plenty of turrets near the front.

Restricted Application edited projects, added Starmade, Game Development; removed Issue Navigation. · View Herald TranscriptDec 2 2015, 6:08 PM
lancake updated the task description. (Show Details)Dec 2 2015, 6:10 PM
lancake raised the priority of this task from High to Urgent.

This occurs with stations that are made of multiple structures with lots of space in-between, even if the ship isn't within the 'bounding box' of anything that you can collide with. I'm sure there's some way to avoid that...

This has been around since far before the rail update. However, it became most apparent with the rails, due to effectively doubling the entity count for any ship with turrets.

lancake mentioned this in Unknown Object (Maniphest Task).Apr 26 2016, 10:13 AM
schema changed the task status from In Queue (Game) to Resolved.Aug 9 2016, 6:01 PM
Restricted Application edited projects, added Quality Assurance; removed Game Development. · View Herald TranscriptAug 9 2016, 6:01 PM
lancake changed the task status from Resolved to In Queue (Game).Aug 11 2016, 3:56 PM

-QA Testing-

It's improved, but some cases still have giant performance drops + high ping.
2 big ships with 100-200 docked entities getting near each other or colliding is one of those.

Restricted Application edited projects, added Game Development; removed Quality Assurance. · View Herald TranscriptAug 11 2016, 3:56 PM
lancake changed Last tested (version) from 0.19431 to 0.199.144.Aug 11 2016, 3:57 PM
lancake changed First occurrence (version) from Last six months to 0.15.
AndyP changed the task status from In Queue (Game) to In Queue.Mar 10 2017, 5:07 PM
Restricted Application added a project: Physics. · View Herald TranscriptMar 10 2017, 5:07 PM
schema added a subscriber: schema.Mar 12 2017, 7:02 PM
schema lowered the priority of this task from Urgent to High.

Changing prio since it's already improved

AndyP moved this task from Backlog / Unclassed to Alpha on the Physics board.Mar 15 2017, 3:59 PM