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

add option to ping servers imediately, ignoring waiting for serverupdateinterval #1569

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nochinator
Copy link
Contributor

Fixes #915

Changes proposed in this request:
serverbrowser.cpp:

  • add argument "update_now" to functions updateservers and refreshservers. it defaults to 0
  • updateservers only passes it to refreshservers
  • updatefrommaster now calls refreshservers with update_now set to 1
  • in refreshservers the check for if enough time has elapsed based on serverupdateinterval now has an OR check to see if update_now is 1, if it is then it will update regardless of when the last update was

online.cfg:

  • when gameui_online_update is called it checks to see if we have pinged before in this session, if we have then call updateservers with update_now at the default value (0), if not then call it with update_now set to 1 forcing an immediate ping regardless of when the last ping was

With these changes the server list will ping servers immediately upon being opened (before the animation) making the only delay in the time it takes to ping

@nochinator nochinator changed the title add option to ping servers, ignoring waiting for serverupdateinterval add option to ping servers imediately, ignoring waiting for serverupdateinterval Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Server list takes a while before displaying server information
1 participant