AsyncComputeTaskPool - help - freeze frame when spawning many entities. #17154
Unanswered
miketwenty1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting to have some filler animation or interface while my game loads in the background. However when I try to load my game, it seems that frame freezes the game.
2025-01-03.14-10-51.mp4
I've tried using AsyncComputeTaskPool in a variety of ways.
Look at
main.rs
in these branches:I've tried both wasm and native, both resulting in something similar to the video posted.
Ideally I'd like this to work for WASM, but I see I'm having this issue regardless of the target build.
I've tried some method of
block_on(future::poll_once(&mut task.0))
andnow_or_never(&mut task.0);
with no difference noticeable.Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions