Skip to content

Inconsistent Rendering with Webassembly on lower-end hardware. Game chokes. #6363

@LarsDu

Description

@LarsDu

Bevy version

main
The release number or commit hash of the version you're using.

[dependencies.bevy]
git = "https://github.com/bevyengine/bevy.git"
rev = "543465b721048355e34eb6078923645747c1d44b"

[Optional] Relevant system information

105.0.1 (64-bit)

Mac OSX Monterrey 12.5
  Processor Name:	Quad-Core Intel Core i7
  Processor Speed:	2.6 GHz
  Number of Processors:	1
  Total Number of Cores:	4
  L2 Cache (per Core):	256 KB
  L3 Cache:	6 MB
  Hyper-Threading Technology:	Enabled
  Memory:	16 GB

Numerous reports from people I shared this game with indicated that the web assembly build is slow, stalls, or crashes.

I've tried it on 3 different machines (1 Skylake PC running Ubuntu 22.04, an M1 Mac, and on the above listed laptop). On the above listed laptop certain models do not get shaded or lit correctly. All build choke for at least 2 seconds after pressing the start button.
I suspect there is some sort of threading issue.

If you cannot get Bevy to build or run on your machine, please include:

  • the Rust version you're using (you can get this by running cargo --version)
cargo 1.63.0 (fd9c4297c 2022-07-01)

If your bug is rendering-related, copy the adapter info that appears when you run Bevy.

What you did

Play the webassembly build of the above-linked game

Describe how you arrived at the problem. If you can, consider providing a code snippet or link.

What went wrong

If it's not clear, break this out into:

  • what were you expecting?
    Significantly better performance for WASM builds given the engine and language being used.
  • what actually happened?
    Very poor performance on WASM builds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorO-WebSpecific to web (WASM) builds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions