Skip to content

Excessive logging from new mesh_picking backend #16065

Closed
@rs017991

Description

@rs017991

Note: This is in regard to the new 0.15.0-rc.1 release candidate.
I understand that this is a pre-release, and considered waiting to see if the official release notes might shed light on this behaviour,
but thought you might want to know about the rough edges sooner than that.

The Issue

After updating to 0.15.0-rc.1, I get about a thousand of these every second:

ERROR bevy_picking::mesh_picking::ray_cast::intersections: Invalid intersection check: `TriangleList` is the only supported `PrimitiveTopology`

I am indeed using an alternate PrimitiveTopology, though I am not yet utilising any picking features within my code.

Each of the following is unclear to me:

  1. Why it needs to be logging this for every function call (or even every frame), vs using error_once!
  2. Why it is considered an error and not a warning (given that it is an optional feature)
  3. Why it is attempting to compute so many intersections (given that I'm not requesting such information in my systems)
  4. Why it even matters which PrimitiveTopology is used (the other variants work just fine elsewhere in Bevy)

Reproduction

You can reproduce this behaviour with the regular 3d/lines example, with one tweak:

  1. Change one or both usages of RenderAssetUsages::RENDER_WORLD to RenderAssetUsages::default()
  2. Run the example and move your mouse near the lines

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PickingPointing at and selecting objects of all sortsC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions