Skip to content

embedded_watcher makes AssetPlugin very slow in workspace packages #17430

Open
@UkoeHB

Description

@UkoeHB

Bevy version

v0.15.1

[Optional] Relevant system information

MacOS

What you did

  • Using a workspace. The asset dir is at the root level and binaries are in a bins directory.
  • Set the BEVY_ASSET_ROOT env variable to {CARGO_MANIFEST_DIR}/../../assets.
  • Enabled the embedded_watcher feature.
  • Ran the binary with cargo run -p <my_binary>.

What went wrong

Building the AssetPlugin takes ~5-10 seconds. Profiling exposed EmbeddedWatcher::new -> notify_debouncer_full::Debouncer::watch as the culprit.

My guess is the debouncer doesn't like it when the root path passed in has /../. Possibly related to #17265

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AssetsLoad files from disk to use for things like images, models, and soundsC-PerformanceA change motivated by improving speed, memory usage or compile timesS-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