Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inexplicably low redraw rate on multiplayer server #8219

Open
FLHerne opened this issue Jun 12, 2020 · 3 comments
Open

Inexplicably low redraw rate on multiplayer server #8219

FLHerne opened this issue Jun 12, 2020 · 3 comments

Comments

@FLHerne
Copy link

@FLHerne FLHerne commented Jun 12, 2020

Version of OpenTTD

1.10.2

Expected result

When looking at an empty section of grass in a relatively empty server, the game renders at the normal rate.

Actual result

The drawing and video output rates are about 1.7fps, with frequent multi-second hangs, making the game unplayable.

Note that the actual times, in ms, look fine AIUI.

Output of fps:

Based on num data points: 64 128 512
Game loop rate: 36.27fps (expected: 33.33fps)
Drawing rate: 1.76fps (expected: 33.33fps)
Video output rate: 1.73fps (expected: 60.00fps)
Game loop times: 28.41ms 28.53ms 29.01ms
 GL station ticks times: 0.22ms 0.22ms 0.25ms
 GL train ticks times: 18.16ms 18.16ms 18.47ms
 GL road vehicle ticks times: 0.41ms 0.41ms 0.42ms
 GL ship ticks times: 0.01ms 0.01ms 0.00ms
 GL aircraft ticks times: 0.00ms 0.00ms 0.00ms
 GL landscape ticks times: 7.57ms 7.69ms 7.72ms
 GL link graph delays times: 0.02ms 0.02ms 0.02ms
Drawing times: 2.42ms 3.07ms 2.42ms
 Viewport drawing times: 1.02ms 1.51ms 0.88ms
Video output times: 4.52ms 3.42ms 1.12ms
Sound mixing times: 0.01ms 0.01ms 0.01ms

Steps to reproduce

  • Join Reddit S2 from my laptop (Arch Linux, Mesa r600g video drivers, dwm). Other computers may suffice, but presumably not all of them...
  • About half the time, the game will hang for a bit, then exit to main menu with "A protocol error was detected and the connection was closed".
  • Otherwise, the symptoms above will be presented.

This does not occur with local games (there's lag with a ton of vehicles etc., but that's normal).

EDIT: This also occurred with 1.10.1. It didn't with 1.9.x.

@erenes
Copy link

@erenes erenes commented Jun 12, 2020

On windows I don't have any problem at all on Reddit server 2
image

I wonder if it's network-related?

@giordy
Copy link

@giordy giordy commented Jun 29, 2020

In a game I was playing with some friends of mine I was experiencing the same issues.
The problem turned out to be the server not having enough memory available for the game. It was swapping and killing the performances.
It might be a similar problem in your case, perhaps.

@ldpl
Copy link
Contributor

@ldpl ldpl commented Jul 2, 2020

Server performance defining simulation speed is nothing new and totally expected but I doubt that's the case for Reddit servers. Also it seems that for some reason server is affecting rendering performance of clients in some cases which shouldn't really happen:

https://www.reddit.com/r/openttd/comments/hg9pbt/can_something_be_done_to_avoid_poor_performance/
https://www.reddit.com/r/openttd/comments/hhf5jj/bad_performance_when_moving_around_on_a_10241024/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.