Skip to content

Camera ambiguity warnings shouldn't run every frame #22635

@Freyja-moth

Description

@Freyja-moth

What problem does this solve or what need does it fill?

Currently when two cameras exist on the same render layer, without explicit ordering, warnings will be printed to the console on every frame. While important to let users know about, this does make it hard for users to see their own logs, including logs that they may be using to debug the issue.

What solution would you like?

I'm not certain warn_once would work as it might confuse users into thinking that issue has been solved. Perhaps logging once per second?

What alternative(s) have you considered?

Leave it as is. This is already an uncommon issue and the only real case where the solution isn't easy is when importing scenes that have cameras which will be solved when the editor is released.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CameraUser-facing camera APIs and controllers.C-UsabilityA targeted quality-of-life change that makes Bevy easier to useD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions