Skip to content

[DO NOT MERGE] experiment: rollback effects instead of RewindableAction#601

Closed
aromancev wants to merge 1 commit into
foxssake:mainfrom
aromancev:andrey/experiment/rollback-effects
Closed

[DO NOT MERGE] experiment: rollback effects instead of RewindableAction#601
aromancev wants to merge 1 commit into
foxssake:mainfrom
aromancev:andrey/experiment/rollback-effects

Conversation

@aromancev

@aromancev aromancev commented May 20, 2026

Copy link
Copy Markdown
Contributor

An experiment to see if it's possible to implement rollbackable effects without using RewindableAction or adding any additional network synchronization primitives.

Idea: gameplay state drives the weapon, and effects are recorded separately so resimulation can keep or revert them. This is conceptually the same as https://react.dev/reference/react/useEffect.

Straightforward apply and revert of events. Zero network cost. Low complexity.

The main change is in examples/rollback-fps/scripts/player-weapon.gd.

@aromancev aromancev closed this May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant