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

ResourceLoader: Fixup management of thread-specific status #93928

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

RandomShaper
Copy link
Member

@RandomShaper RandomShaper commented Jul 4, 2024

  • Allows the message queue override to flush after loading each resource, which was the original intent.
    UPDATE: The effect of this is that external resources that could be successfully loaded have their deferred setup calls run regardless the load will be reported as failed. This is important because if another simultaneous load will get them from cache while they still exist, they will be guaranteedly "complete." Moreover, such behavior was also the case before those calls were flushed in loader threads. Formerly, they were flushed on the main thread so if some resource would survive an overall failed load, they'd still get that "completeness" guarantee.
  • Removes a redundant call to mark the thread as safe-for-nodes.

@RandomShaper RandomShaper added this to the 4.3 milestone Jul 4, 2024
@RandomShaper RandomShaper requested a review from a team as a code owner July 4, 2024 08:38
@RandomShaper RandomShaper marked this pull request as draft July 4, 2024 08:40
@RandomShaper RandomShaper marked this pull request as ready for review July 4, 2024 11:31
- Allows the message queue override to flush after loading each resource, which was the original intent.
- Removes a redundant call to mark the thread as safe-for-nodes.
@RandomShaper RandomShaper requested a review from akien-mga July 8, 2024 08:38
@akien-mga akien-mga merged commit ca42afd into godotengine:master Jul 8, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@RandomShaper RandomShaper deleted the fix_res_load_flush branch July 8, 2024 09:57
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