-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Flaky visual test: Loading #578
Comments
Thanks past me for noting this and trying to write a test to induce this. Present us now have to debug multi-threaded code. |
Interestingly, the problem seems to be that the "target.png" is finished loading, before the three delayed images have started loading. (So surprisingly it seems that the problem does not arise due to the You could fix it by starting the threadpool later, after all AssetLoading jobs have been submitted. Or maybe better not using the total_queued in the event, but instead look at the global Also the Edit: fix typo's |
New assets can be loaded at any time. And I'd really rather that the loading scene not reach into the internals of the asset loading system. |
You could maybe register assets, that you would want to wait on in the loading screen? Also calling the Or, maybe not use the data in the AssetLoaded event, but instead in |
Gotta make sure you both reference the asset and then pre-declare it for the loading screen? And then you forget to update one of the two places.
I mean, it's never actually finished, just idle. Again, new, previously unknown assets can be referenced at any time.
How do you make that list? |
I'm just spitballing here, I don't actually know what would make most sense in this case.
It would be difficult, because asset classes are not instantiated until the scenes are instantiated.
You could use meta classes, similar to how SQLAlchemy ORM is used. But I don't know if that would work with the current syntax. |
ppb commit: b2eee07
OS Windows 10
Python 3.8.6
Output:
Some kind of race condition I think? It's the assert failing.
The text was updated successfully, but these errors were encountered: