Skip to content

How to write board games with ebiten properly? #1782

Answered by hajimehoshi
lemon37564 asked this question in Q&A
Discussion options

You must be logged in to vote

The concurrent switching might not work well on Wasm. What about calling runtime.Gosched()?

In general, you should avoid a busy loop that never sleeps. I'd insert sleeping time.Sleep(time.Millisecond), or, adjust the amount of the calculation by channels.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@lemon37564
Comment options

@hajimehoshi
Comment options

@lemon37564
Comment options

@Zyko0
Comment options

Answer selected by lemon37564
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants