Skip to content

Replacement: Read files only within time budget#15884

Merged
hrydgard merged 2 commits intohrydgard:masterfrom
unknownbrackets:texreplace-io-async
Aug 22, 2022
Merged

Replacement: Read files only within time budget#15884
hrydgard merged 2 commits intohrydgard:masterfrom
unknownbrackets:texreplace-io-async

Conversation

@unknownbrackets
Copy link
Collaborator

This could use more testing.

Basically, this should help #15787. It doesn't actually load the file data on a thread (could, would require a bit more refactoring.) Instead, it just respects the budget time when loading initial file data. So if we've already used up this frame's budget, it won't even try file exist checks or reading the header.

This should reduce the performance impact on Android scoped storage when there's lots of new textures in a frame.

-[Unknown]

When delayed texture load is enabled.  Intended to reduce IO delays on
Android.
@unknownbrackets unknownbrackets added this to the v1.14.0 milestone Aug 22, 2022
@hrydgard
Copy link
Owner

nice!

@hrydgard hrydgard enabled auto-merge August 22, 2022 09:10
@hrydgard hrydgard merged commit 3c307c9 into hrydgard:master Aug 22, 2022
@unknownbrackets unknownbrackets deleted the texreplace-io-async branch August 22, 2022 13:54
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

Successfully merging this pull request may close these issues.

2 participants