8000 [IR-10447] Rework image loading limits on iOS by MichaelEstes · Pull Request #2070 · ir-engine/ir-engine · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[IR-10447] Rework image loading limits on iOS #2070

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

Open
wants to merge 28 commits into
base: dev
Choose a base branch
from

Conversation

MichaelEstes
Copy link
Contributor
@MichaelEstes MichaelEstes commented Jun 11, 2025

Summary

Adds queries to Resource state around asset memory usage and budgets
Limit concurrent images being loaded
Wait for images to be discarded if over budget before loading

Subtasks Checklist

Breaking Changes

References

closes #insert number here

QA Steps

@MichaelEstes MichaelEstes marked this pull request as ready for review June 13, 2025 00:55
@@ -710,13 +810,22 @@ const getAllResourcesOfType = (type: ResourceType) => {
return result
}

const assetDiscarded = () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it necessary to have listeners? can't we just react to the discarded state in ResourceState for each resource?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no reactive context in the texture loader to listen to those changes

Copy link
Member
@HexaField HexaField Jun 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can do const reactor = startReactor(() => { ... }) to reactivify a promise, we do it in a few places already

@@ -710,13 +810,22 @@ const getAllResourcesOfType = (type: ResourceType) => {
return result
}

const assetDiscarded = () => {
Copy link
Member
@HexaField HexaField Jun 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can do const reactor = startReactor(() => { ... }) to reactivify a promise, we do it in a few places already

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.

3 participants
0