We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前BCP的所有性能参数都在 https://github.com/qifun/scala-bcp/blob/master/src/main/scala/com/qifun/bcp/Bcp.scala 中作为全局常量存在,所以BCP的用户无法修改性能参数。
这些性能参数应当改为BcpSession中的protected def,供不同需求的游戏以及测试用例修改。
BcpSession
protected def
例如:
protected def heartBeatDelay = 3.seconds
The text was updated successfully, but these errors were encountered:
主要原因是在评测中发现心跳包占用开销比例较大。如果某个游戏对实时性要求不高,应增加心跳包的发送间隔。
Sorry, something went wrong.
增加了一条例外规则,以允许给这种非final属性提供默认值。
final
https://bitbucket.org/qforce/qforce.bitbucket.org/wiki/%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83#markdown-header-_2
chank
No branches or pull requests
目前BCP的所有性能参数都在 https://github.com/qifun/scala-bcp/blob/master/src/main/scala/com/qifun/bcp/Bcp.scala 中作为全局常量存在,所以BCP的用户无法修改性能参数。
这些性能参数应当改为
BcpSession
中的protected def
,供不同需求的游戏以及测试用例修改。例如:
The text was updated successfully, but these errors were encountered: