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

Prepare the next test case on another thread #146

Open
vabold opened this issue Sep 16, 2024 · 0 comments
Open

Prepare the next test case on another thread #146

vabold opened this issue Sep 16, 2024 · 0 comments
Labels
engine Code involving engine (C++) feature New code P3 Priority: Low

Comments

@vabold
Copy link
Owner

vabold commented Sep 16, 2024

Implementation should happen in GameScene::initScene. A task should start on another thread that takes the next test case, reads it for relevant information, and stores it in an accessible place for RaceScene::configure to later read.

RaceConfig should introduce a second scenario, such that RaceConfig::initRace simply copies from one scenario to the other. This is analogous to the base game's menu scenario, but we will likely refer to it as the "next" scenario.

ResourceManager should introduce the CourseCache. However, instead of it simply holding the compressed course archive, it should instead hold the decompressed archive. This allows the archive to be mounted with very little overhead on the main thread. Implementation will be similar to the base game - if the course cache's state is ready, and the course IDs match, simply load the scene archive from the cache.

@vabold vabold added engine Code involving engine (C++) P3 Priority: Low feature New code labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Code involving engine (C++) feature New code P3 Priority: Low
Projects
None yet
Development

No branches or pull requests

1 participant