FakeFishGames / Barotrauma

A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
http://www.barotraumagame.com/
1.74k stars 405 forks source link

[Factions] Performance Issues #10493

Closed Wheatley1001 closed 1 year ago

Wheatley1001 commented 1 year ago

Disclaimers

What happened?

NOTE: I am aware of the mega-ticket relating to performance issues. I am making this ticket separate because I did not want to muddy the ticket with faction related issues and stable issues. From a personal perspective, I've never had any performance issues with Barotrauma at any point in my time playing the game, so the crippling issues experienced in the faction branch are a cause for concern for me.

During the testing session, several players experienced game-ruining FPS issues. From input delays up to 10 seconds, to 4 FPS encounters, the session would occasionally be riddled with performance problems. Here are the notes gathered from these issues:

Additionally, performance issues seemed to completely vanish once we entered the Great Sea. The biome before it was incredibly taxing on FPS rates, whilst the Great Sea was much easier for the game to handle.

Below is a series of images captured by myself and other users in the session. I profusely apologise for the lack of the FPS counter in the top left, I didn't know it existed until much later on. I tried to captured the performance readings as soon as performance dipped to the lowest points. I hope they are helpful in finding some of the causes.

image image image image image image

Reproduction steps

No response

Bug prevalence

Happens regularly

Version

Faction/endgame test branch

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

No response

Wheatley1001 commented 1 year ago

PERFORMANCE UPDATE AS OF 100.6.0.0

NOTES: -Spinelings absolutely destroy performance. They, in no exaggerated terms, make the game completely unplayable. Constant 5 FPS and input lag of up to four seconds in some cases. Inputs would be held for longer than they were given, meaning players were swimming in directions they were actively telling the game to avoid. -Threshers as a whole also absolutely tank performance. Anywhere between 6 - 17 FPS. Not as bad as Spinelings but still devastating. -Water floods have remained impactful for performance issues. There have been no noticed changes in that area,

Things that generally cause performance issues (thanks to WorkingJoe for compiling this): -Water movement -Character rendering -Character pathfinding -Character spawning -Many active physics objects -Having many items in general

-Wrecks somehow provide high FPS rates of up to constant 100 FPS. This was in a Thalamus as well, although a dead one. Not entirely sure what's going on there.

Performance screenshots from taken from tonight's session:

image image image image image image image image image image image image image image image image

From this point onward, screenshots only show FPS as Rokvach informed us that showperf lowered performance.

image image image image image image image image image

Regalis11 commented 1 year ago

Thank you for the report and the pics!

To me it seems like this is the same kind of "mystery FPS drop" with no clear cause that we've been trying to diagnose for a long time. I wrote a bit more about that here. Basically, according to the performance statistics in your pics, there doesn't seem to be any clear cause for such a low framerate. I also gave this a quick test myself, testing the campaign map and spawning a dozen or so spinelings and threshers around the sub, and the FPS stayed around 120-144. Need to do more testing, could be that a large number of players for example makes the issues worse.

Regalis11 commented 1 year ago

Addressed in https://github.com/Regalis11/Barotrauma-development/pull/3813, closing