bevyengine / bevyengine/bevy

Gizmos circle_2d does not appear for the first few times it is requested after bevy startup

Open
#14,701 2 comments 0 reactions 0 assignees View on GitHub
A-Gizmos C-Bug S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
4d 8m
Merged PRs (30d)
147

Description

## Bevy version

v0.14.1

## What you did

Called gizmos.circle_2d and auto-captured screenshots for every frame for debugging a timing issue.

## What went wrong

The circle_2d command (and potentially others, I only tried the one) did not draw for the first few frames I requested it. It looks like there is some sort of async initialization delay. If you warm start the gizmo by drawing an invisible circle_2d in a zero-alpha color immediately upon running, before requesting a circle in earnest, this problem seems to go away.

Without gizmo warm start:

![badcircle](https://github.com/user-attachments/assets/8c638b00-1db3-4e99-98a4-223488fcad7e)

With gizmo warm start:

![goodcircle](https://github.com/user-attachments/assets/39ae0f4b-33b6-4b33-a0f9-3b2d85ffa9b7)

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.