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

输入预发送(PreSendInputCount)不就是输入延时了吗? #6

Open
jinq0123 opened this issue Sep 23, 2020 · 1 comment
Open

Comments

@jinq0123
Copy link

当前的输入,发往服务器并本地保存时,帧号是故意延后了 PreSendInputCount, 所以本地预测执行也会延后,服务收到后也会延后发送,这样不是人为的增加了输入延时了吗?仅仅是为了避免被服务器判为过期包而丢弃?

@BUGyyc
Copy link

BUGyyc commented Jun 9, 2023

猜测一下,作者意图:PreSendInputCount 是根据 网络 ping 值波动的,特别影响在于 maxPing , 总结来说,客户端网络延迟高,意味着落后于服务器比较多,需要更大的输入窗口发送值,延迟高,maxping 大,inputTargetTick 值也就变大,可发送的输入就多了

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

2 participants