Improve startup time - #1374
Open
adfriz wants to merge 2 commits into
Open
Conversation
- Record the elapsed startup time for named phases in OpenBVE, the Route Viewer and the Object Viewer, separated by program - Write the timings to the log file once the startup phases have completed
- Load language files in parallel, with en-US loaded first as the fallback - Load input device plugins asynchronously after the main menu is shown - Defer enumerating installed fonts until the options page is opened - Populate the route and train lists on background threads, with generation counters to discard stale results - Sniff only the start of CSV route files instead of reading them entirely - Serialise plugin loading with a lock, as it may now be requested from multiple threads at the same time
Contributor
Author
|
this should make the window appear faster for player that use HDD. idk how much faster, i dont have any HDD laying around... |
leezer3
added a commit
that referenced
this pull request
Aug 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trying to make the startup faster, especially the cold start.
from my personal test, cold start down to 4~ second. after the JIT and cache done by the OS, could make the second time app startup to be less than 2 second.
it logged to the log txt in C:\Users\username\AppData\Roaming\OpenBve\Settings
some log will be writen after the app close.
need more test on mac and linux and other non latin system locale e.g CJK...
and make sure all plugin loaded and working as usual...