Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

WASM build time not implemented #19188

Answered by rparrett
Lailatova asked this question in Q&A
Discussion options

I was making something for a gamejam and tried making a wasm build for web but I keep running into the following error about time not being implemented.

image

I found some previous issues mentioning std::time being broken on web and mention of replacing all occurrences in bevy. #881
#895

But as far as i can tell it seems to have changed again since then. I tried everything I could think of to replace/remove imports of std::time but it didn't seem to help. Only thing I haven't tried was removing all timers or uses of Time entirely and tracking time some other way instead, as I wanted to ask if that's the culprit before potentially wasting time.

You must be logged in to vote

You can see where the error is originating from by inspecting it closely. It looks like big-brain is using std::time::Instant.

You'll need to patch big-brain to usebevy::platform::time::Instant instead.

I filed an issue upstream: zkat/big-brain#117

Replies: 1 comment · 1 reply

Comment options

You can see where the error is originating from by inspecting it closely. It looks like big-brain is using std::time::Instant.

You'll need to patch big-brain to usebevy::platform::time::Instant instead.

I filed an issue upstream: zkat/big-brain#117

You must be logged in to vote
1 reply
@Lailatova
Comment options

Oh thank you! I read it many times but I entirely missed the mention of big brain

Answer selected by Lailatova
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.