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

Add background loading #1257

Merged
merged 9 commits into from
Jul 20, 2024
Merged

Add background loading #1257

merged 9 commits into from
Jul 20, 2024

Conversation

chreden
Copy link
Owner

@chreden chreden commented Jul 17, 2024

Load the next level in the background. Show progress at the top of the screen and switch to the next level once loading is complete. This stops the program from hanging during level loading which is particularly noticeable with custom levels.

Texture loading is also changed so that levels now output the textures as they are loaded (where possible - can't be done with TR4 at the moment due to the compressed data). This should cut down on the peak memory usage when loading a level as the raw data is discarded once the D3D texture has been created.

#1186

First step of asynchronous loading - no feedback for the user yet.
#1186
First step towards better feedback on loading
Pin window to bottom right of viewer
#1186
Move psx texture calls to after palette is available
Don't call function if empty
@chreden chreden marked this pull request as ready for review July 18, 2024 19:54
@chreden chreden changed the title Issue/1186 2 Add background loading Jul 18, 2024
@chreden chreden self-assigned this Jul 18, 2024
@chreden chreden added this to the Next milestone Jul 18, 2024
@chreden chreden merged commit f5c6e8e into master Jul 20, 2024
1 check passed
@chreden chreden deleted the issue/1186-2 branch July 20, 2024 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants