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

Large slowdown when building tracks #1074

Closed
DorpsGek opened this issue Jul 24, 2007 · 3 comments
Closed

Large slowdown when building tracks #1074

DorpsGek opened this issue Jul 24, 2007 · 3 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

bilbo opened the ticket and wrote:

In r10649.

Load attached savegame (2048 x 64). Zoom main view on "point 1" sign and exra view on "Point 2" sign

Build straight road by connectiong the two pieces - it is done instantly
Build straight railroad track by connection the two railroad pieces - on Athlon 3000+ it needs about 4 seconds and OpenTTD is not reasponding in the time.

Now bulldoze the road you've just build - it is done instantly
If you bulldoze the railroad segment, it needs about 2 seconds.

Seems that something is seriously slowing down operations involving railroad tracks. Building signals need also 2 secs for that distance, while convertiong between railroad types (classic <-> monorail) is instant on 2048 tiles long track segment.

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/1074
@DorpsGek
Copy link
Member Author

Rubidium wrote:

That is caused by the need for updating the signal blocks; you do not want green signals when there already might be a train in that block when you intersect other pieces of rail. For some reason that is done for every tile which might be a little too much, but I've got knowledge of the signalling system so I do not know.

Same holds for removing tracks or adding/removing signals; you do not want signal blocks have red signals when there is no train in the next block as that will cause trains to be stopped indefinitely.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1074#comment1709

@DorpsGek
Copy link
Member Author

DorpsGek commented Aug 2, 2007

peter1138 wrote:

Hmm, only one signal update is needed for placing the long track. For removing tracks a signal update is only needed if the removed track intersects a left-over piece.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1074#comment1769

@DorpsGek
Copy link
Member Author

SmatZ closed the ticket.

Reason for closing: Fixed

In r11871


This comment was imported from FlySpray: https://bugs.openttd.org/task/1074

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant