Skip to content

Support for Unity WebGL builds #278

@jdetter

Description

@jdetter

Currently WebGL builds are not supported because SpacetimeDB uses threads to process incoming network messages. I think there are several solutions here:

  1. We could use Task everywhere instead of threads - we have to determine the performance impact of doing this. It needs to be tested against BitCraft.
  2. We could use #ifdef to only use threads for non-webgl platforms and then use Task instead when we are building for WebGL.

First let's just try #1 and then if that doesn't work well then let's go with #2.

Steps to move this forward

  • Try getting this working with a webgl build in blackholio Add support for browser platform #274
  • ^ If that works, then try getting it working with BitCraft (not in webgl, just standalone) - then determine the performance impact of this.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions