bevyengine / bevyengine/bevy

(wasm) buggy rendering after main app was run without the rendering app

Open
#17,860 2 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Bug O-Web S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

hello !

## Bevy version

0.15.2

## \[Optional\] Relevant system information

`AdapterInfo { name: "Radeon R9 200 Series, or similar", vendor: 4098, device: 0, device_type: Other, driver: "", driver_info: "WebGL 2.0", backend: Gl }`

## What you did

put the web app in the background. it can be when launching the app (like in the video) or even after the app is running it will also trigger the problem but less severely. i guess its if the app is in background when spawning the sprite or text component.

## What went wrong

for sprites, some or all are not visible from the start. But I didn't observe any sprites that were visible, then disappeared.
for text, they can be invisible from the start, or some chars are invisible if the app is in the background (we can see that at 0:38s, the first good app text's become bugged)

to best show the problem, here is a 1min screen recording.
the first tab is the "good" tab where the app was launched and sprites spawned when the tab was in focus.
the second tab, was launched (refreshed) in the background.
https://youtu.be/ujuca0LR63U

## Additional information

im using https://github.com/Nul-led/bevy_web_keepalive plugin, to keep the app working in the background.
without the plugin, the app is not running in the background, which is not possible for multiplayer game.
an issue has been opened for this problem https://github.com/Nul-led/bevy_web_keepalive/issues/18
i dont know where is the best place for this issue.

thanks !

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.