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

Low framerate in editor with many tracks #40

Open
t0stiman opened this issue Nov 16, 2023 · 0 comments · May be fixed by #78
Open

Low framerate in editor with many tracks #40

t0stiman opened this issue Nov 16, 2023 · 0 comments · May be fixed by #78
Assignees
Labels
bug Something isn't working

Comments

@t0stiman
Copy link
Collaborator

When you have lots of tracks in the Railway scene, the framerate of the Unity Editor 'Scene' window drops so much that the window isn't really useable anymore. For example, on my test map, the framerate drops from 220 to 3 FPS when I load the Railway scene.

afbeelding

@WhistleWiz said on Discord:

About the track drawing, I tried implementing a certain optimisation, but unfortunately it seems the lines themselves are to blame. You'd need to change the library itself. I recommend disabling each yard after being done with it, just so they don't hog performance.
As for the rest, I already added a tool that can merge multiple tracks into a single one, which improves performance a bit. The game uses a single track object for everything between 2 switches basically.

@Insprill Insprill moved this to Backlog in DV Mapify Dec 24, 2023
@Insprill Insprill moved this from Backlog to Todo in DV Mapify Jul 9, 2024
@Insprill Insprill added the bug Something isn't working label Jul 9, 2024
@t0stiman t0stiman self-assigned this Oct 22, 2024
@t0stiman t0stiman linked a pull request Oct 22, 2024 that will close this issue
@t0stiman t0stiman moved this from Todo to In progress in DV Mapify Nov 29, 2024
@t0stiman t0stiman moved this from In progress to Waiting for review in DV Mapify Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Waiting for review
Development

Successfully merging a pull request may close this issue.

2 participants