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

AI Sign List slowdowns the more signs there are #7303

Closed
SamuXarick opened this issue Mar 1, 2019 · 2 comments
Closed

AI Sign List slowdowns the more signs there are #7303

SamuXarick opened this issue Mar 1, 2019 · 2 comments

Comments

@SamuXarick
Copy link
Contributor

Version of OpenTTD

1.9.0-beta3

Expected result

no stalls

Actual result

stalls each time a sign is added or removed from the sign list

Steps to reproduce

Have an AI that masses add and removal of signs, like AIAI with all debug signs options.
Open Sign list.
Experience it slowing down the more signs it creates.

Savegame has about 61700 signs created by AIAI.
Sarnton Transport, 1962-08-19.zip

@SamuXarick
Copy link
Contributor Author

sarnton transport 1961-08-26

@James103
Copy link
Contributor

James103 commented Mar 1, 2019

Based on the above image, it takes about 58 microseconds (barring all other graphics routines) to render a sign in the sign list. Also, it appears the simulation rate is capped at the graphics frame rate if the game is not in fast forward mode.

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

No branches or pull requests

3 participants