Ask coding questions

← Back to all posts
Multi-threaded animation fails to start
xxpertHacker (784)

I forked a simple fire animation from https://github.com/binji/raw-wasm/tree/master/doomfire and began rewriting it, it is currently at @xxpertHacker/fire.

I realized that it could be multi-threaded instead, so I moved some of it to another thread in a new Repl: @xxpertHacker/fire-shared.

It doesn't start up at all, any clues as to why that is?

Running on the newest Chromium.

Comments
hotnewtop
Coder100 (15748)

well, here's my console for reference:

xxpertHacker (784)

@Coder100 Lmao, sorry, I have top-level await already.

I'll use an iffe for you real quick.

xxpertHacker (784)

@Coder100 Done, try again. What do you get now?

RYANTADIPARTHI (5871)

I think you need to refresh.

xxpertHacker (784)

@RYANTADIPARTHI What do you mean? Can you elaborate? Does it work for you just fine?

RYANTADIPARTHI (5871)

@xxpertHacker it probably doesn't work, because you need to refresh. Cause just because it's forked and all, it should work.

xxpertHacker (784)

@RYANTADIPARTHI I edited it, and refreshed, but I still have no clue what you're talking about. The webpage? The Repl?

Does it work for you?

RYANTADIPARTHI (5871)

@xxpertHacker well, it shows me a black background...
How about you try forking again?

xxpertHacker (784)

@RYANTADIPARTHI Forking it does nothing, do you understand what forking means or does?
I could fork it 100 times over, but that won't help at all.

RYANTADIPARTHI (5871)

@xxpertHacker well, i'm sorry but i don't know what else to do...