Skip to content

renderer init: create a detached task only on wasm, block otherwise#9830

Merged
mockersf merged 1 commit into
bevyengine:mainfrom
mockersf:renderer-init-blocking-on-native
Sep 19, 2023
Merged

renderer init: create a detached task only on wasm, block otherwise#9830
mockersf merged 1 commit into
bevyengine:mainfrom
mockersf:renderer-init-blocking-on-native

Conversation

@mockersf

Copy link
Copy Markdown
Member

Objective

  • When initializing the renderer, Bevy currently create a detached task
  • This is needed on wasm but not on native

Solution

  • Don't create a detached task on native but block on the future

@mockersf mockersf added the A-Rendering Drawing game state to the screen label Sep 17, 2023
@mockersf mockersf added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Sep 19, 2023
@mockersf mockersf added this pull request to the merge queue Sep 19, 2023
Merged via the queue into bevyengine:main with commit 401b2e7 Sep 19, 2023
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
…evyengine#9830)

# Objective

- When initializing the renderer, Bevy currently create a detached task
- This is needed on wasm but not on native


## Solution

- Don't create a detached task on native but block on the future
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants