遗憾的是负秒的原因还未知。
查询一些相关资料,负秒的可能原因中,有一样据说是因为「高速服务器在遇到大量出兵时,会导致计算出问题」。 但是搞笑的是,这个信息是 2010 年的,当时所谓的「高速服」,据作者说是 5 倍那么高……
另外,github 上这个代码里面也说了(客观也是如此):这版代码数据库操作部分太挫了:
We *strongly* recommend using a ***dedicated hosting*** for this game. Big Travian servers used to host
thousands of players and the original servers still had about 300ms page display time. The legacy code in this
clone (which was created in 2013) is right now doing about **400 MySQL queries** (questions to the
database) per single page refresh - which is usually well beyond what most shared hostings can support with
a big enough player base.
新开服设定成了 5 倍速(之前是10倍速),其他可能需要注意的调整同步如下(相对于之前的10倍服): 仓库 100 倍 --> 50 倍 每日免费金币 100 -> 50 纳塔数量基于 10 倍服减半 新手保护 24 小时 --> 120 小时
先这么跑一期看看吧。
|