Change: Add separate setting for server sent commands per frame limit #11023
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation / Problem
This is the follow-on to #10913.
Currently the server and all clients are limited to 2 commands per frame by default.
However a server may be running a GS, multiple AIs, and/or have an attached user.
The GS may use GSAsyncMode from #10913.
2 commands per frame is therefore unnecessarily limiting for the server, which is in a privileged position anyway.
Server operators can't be expected to know what to do with any of these types of settings, so the defaults should be reasonable and they shouldn't need to try to change the existing commands_per_frame setting.
It is not necessary to change the commands per frame limit for clients.
Description
Add separate setting for server sent commands per frame limit
Set a higher default value for this setting.
Use the higher of this and existing commands per frame limit setting for server-originating commands.
Limitations
N/A
Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.