Skip to content

Rollback snapshot restore performance optimisations - #641

Open
albertok wants to merge 2 commits into
foxssake:mainfrom
albertok:rollback-snapshot-restore-perf
Open

Rollback snapshot restore performance optimisations#641
albertok wants to merge 2 commits into
foxssake:mainfrom
albertok:rollback-snapshot-restore-perf

Conversation

@albertok

@albertok albertok commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Found some simple but meaningful performance wins in the hotpath that is recording and restoring in rollback.

Mostly by avoiding copying and type checking functions.

Found a way to offload the dict iteration to Godots internal functions.

Consolidated a duplicate property read.

Perf comparison of 16 Nodes with 4 properties.

Test    Before (it/s)    After (it/s)    Gain
record()    5,388        6,829          +26.7%
restore()   11,961       14,573         +21.8%

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