bevyengine / bevyengine/bevy

Sync Point Event

Open
#23,236 4 comments 0 reactions 0 assignees View on GitHub
A-ECS C-Feature S-Needs-Design X-Contentious
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

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

Wanting to do something at every sync point, and Events seem like the easiest option to make that available.

## What solution would you like?

```rust
fn observer(_: On) {
//Do stuff per sync point
}
```

Could potentially be PreSync and PostSync, for before and after commands have been applied, although the naive/single approach before commands is probably fine.

## Additional context

Prior PR: [#19818](https://github.com/bevyengine/bevy/pull/19818)

Contributor guide

Open the contributing guide

Research direction

Start by reading prior PR #19818 and tracing the sync point where commands are applied. Decide whether the event is emitted before application or needs PreSync and PostSync variants; done means observers can reliably run at every sync point with the intended timing.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.