Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common - Synced Lists Functions #10764

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Common - Synced Lists Functions #10764

wants to merge 1 commit into from

Conversation

PabstMirror
Copy link
Contributor

@PabstMirror PabstMirror commented Mar 1, 2025

Handles potentially extremely large lists that need to be network synced and only get added to
Breaks the list into multiple smaller bucket/chuncks
So we don't have to re-sync the entire list when pushing the 50th element, just the last bucket

e.g.

[player, "var", "a", 3] call ace_common_fnc_syncedListPush;
[player, "var", "b", 3] call ace_common_fnc_syncedListPush;
[player, "var", "c", 3] call ace_common_fnc_syncedListPush;
[player, "var", "d", 3] call ace_common_fnc_syncedListPush;

player:var_0 will contain [abc]
player:var_1 will contain [d]
syncedListGet will recombine

@PabstMirror PabstMirror added the ignore-changelog Release Notes: Excluded label Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-changelog Release Notes: Excluded
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant