SeriousProton
SeriousProton copied to clipboard
Initial draft for reducing CPU usage on the server
This works by having configuration values use a different method to check for changes.
Example usage, just replace a member this way: Old:
int32_t parent_id = 0;
New:
MultiplayerStaticReplication<int32_t> parent_id = 0;
This makes the parent_id into a facade towards an int32_t, and any writes to it will mark it as update required.
Note, I only checked if this compiled, didn't check if it functions correctly. The MultiplayerStaticReplication template most likely will need a few more operators and stuff for a better facade.