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

Bind NW updates to sv_playerforcedupdate #2120

Open
RaphaelIT7 opened this issue Jun 29, 2023 · 3 comments
Open

Bind NW updates to sv_playerforcedupdate #2120

RaphaelIT7 opened this issue Jun 29, 2023 · 3 comments

Comments

@RaphaelIT7
Copy link

Details

Currently, all NW Vars are renetworked every 10 seconds.
This can cause huge amounts of networking if you use a bunch of NW vars and have a bunch of players.
Baseline updates are also sent every 10 seconds, and this delay can be controlled with sv_playerforcedupdate.
I want that the delay for renetworking NWVars to be bound to this convar so that it would be possible to control when they are renetworked.

@gonzalologorg
Copy link

AFAIK NWVars gets indeed sync during that forcedupdate, atleast that explained why some players gets their nwvar data updated correctly after few seconds, but correct me if i'm wrong

@mcNuggets1
Copy link

There shouldnt be a re-networking of all entities at all lmao

@RaphaelIT7
Copy link
Author

AFAIK NWVars gets indeed sync during that forcedupdate, atleast that explained why some players gets their nwvar data
updated correctly after few seconds, but correct me if i'm wrong

NWVars have their own delay, and they won't update on forced updates as far as I know.
Somewhere in lua_networkedvars.cpp -> (Probably in this function)CLuaNetworkedVars::Cycle they get networked.

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

No branches or pull requests

3 participants