Skip to content

Wasm rendering totally broken in the weirdest way #3763

@SUPERCILEX

Description

@SUPERCILEX

Bevy version

0.6.0

Operating system & version

PopOS 21.10, Chrome 99.0.4840.0

What you did

Run this project: https://github.com/SUPERCILEX/bevy-vs-pixi

Click to add some more rectangles which seems to trigger the issue sooner. Otherwise, wait long enough and rendering will break.

What you expected to happen

Correct rendering. Notice the random color flickering in the background. The frame rate also takes a sudden hit and sometimes the app irreparably freezes.

What actually happened

Video: https://youtu.be/Uu1tus3Rk3U

Note that this only happens in Wasm on the release profile.

Additional information

rustc 1.60.0-nightly (1bd4fdc94 2022-01-12)
binary: rustc
commit-hash: 1bd4fdc943513e1004f498bbf289279c9784fc6f
commit-date: 2022-01-12
host: x86_64-unknown-linux-gnu
release: 1.60.0-nightly
LLVM version: 13.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorO-WebSpecific to web (WASM) buildsS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions