焦糖布丁 发表于 2024-3-26 17:45:10

【喵】草履虫也能直接上手的服务器优化教学 - 教程中心 - Minecraft(我的世

<br /><img onerror="study_killerrpic(this)" id="aimg_rfciM" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://klpbbs.com/static/image/hrline/2.gif" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /><br /><br /><br /><font size="5"><font color="#ff0000"><font style="background-color:red">.</font></font><font color="#ff0000"><strong>❀</strong></font><font face="微软雅黑"><strong><font color="#ff00ff">喵叫</font><font color="#ff0000">❀</font></strong></font><font color="#ff0000"><font style="background-color:rgb(255, 0, 0)">.</font></font></font><br /><input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td><br /><strong>应兔子的要求来发点什么~</strong><br /><strong>什么时候有专门的JAVA联机教程板块啊啊啊</strong><font face="&amp;quot;"><font size="2">(尖叫)(扭曲)(阴暗的爬行) (爬行)(扭动)(阴暗地蠕动)</font></font><font face="&amp;quot;"><font size="2">(翻滚)(激烈地爬动)(扭曲)(痉挛)(嘶吼)(蠕动)(阴森的低吼)(爬行)(分裂)(走上岸)(扭动)(痉挛)(蠕动)(扭曲的行走)(不分对象攻击)</font></font><br /></td></table><br /><br /><font face="微软雅黑"><font size="3">这是一个面向萌新的MOD服的优化教程,你不需要理解复杂的专业名词,只需要跟着做即可。</font></font><br /><font face="微软雅黑"><font size="3">此教程主要从<strong>配置文件</strong>及<strong>游戏内具体应用</strong>上来解决卡顿问题,对核心原生配置文件介绍较少,有需要可以<font color="#ff0000">移步其他教程</font>!</font></font><br /><font face="微软雅黑"><font size="3">前言说完了咱们就开始吧!</font></font><br /><br /><img onerror="study_killerrpic(this)" id="aimg_C5d3b" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://klpbbs.com/static/image/hrline/2.gif" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /><br /><br /><font size="4"><font color="#ff00"><font style="background-color:rgb(255, 0, 0)">.</font></font>①.</font><font size="4">关于服务器为什么会卡这件事&amp;何为TPS<strong>(可跳过)</strong></font><br /><input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td><br />我们都知道服务器中一秒分为20Tick,所以每Tick就相当于现实世界的50ms<strong>(重要,因为大多数检测插件都是以ms来计算运算速度)</strong><br />如此来看,服务器每次运算只给<strong>这个服务端</strong>提供了50毫秒的运算时间,所以对于优化来说咱们要做的就是将整个服务端的所有运算内容压缩在50ms以内即可做完;这样即可保证服务器的流畅。<br /><font color="#ff0000">反映到TPS就是TPS持续保持在19.9以上!</font><br />当然,实际操作和理论有一定差距,TPS在18~19.9这个区间时在MOD服中对实际游戏体验的影响也并不会很大,但是总体上来说按照这个思路来说即可~<br /></td></table><br /><br /><font size="4"><font color="#ff00"><font style="background-color:rgb(255, 0, 0)">.</font></font>②.具体哪些东西会造成严重卡顿呢<strong>(正文)</strong></font><br />咱们针对一些常用的MOD列出以下几项,根据这个思路做参考即可,<font color="#ff0000">如果你比较懒那直接找到对应项目抄作业吧!</font><br /><br /><br /><img onerror="study_killerrpic(this)" id="aimg_bDqez" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://klpbbs.com/static/image/hrline/line9.png" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /><br /><br /><font color="#000"><font face="&amp;quot;"><font style="font-size:18px"><font style="background-color:rgb(180, 194, 252)"><font color="#B4C2FC">.</font></font></font></font></font><font size="4"><font color="#000"><font face="&amp;quot;"><font color="Red"> </font></font></font></font><font color="#ca81e"><font face="&amp;quot;"><font size="3">植物魔法的产能花和火花(</font></font></font><font color="#ff00"><font face="&amp;quot;"><font size="3">卡服程度:★★★)</font></font></font><br /><input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td>&nbsp; &nbsp;火花和产能花单个的计算量其实并没有非常高,但是由于通常他们的数量十分庞大,并且属于常用mod,所以列在榜首。&nbsp; &nbsp; 在一个正常的服务器之中通常输入/gc可以看到服务器的 tiles 会达到2w以上,甚至有些能超过3w,如果没有分世界那么开久了以后5W以上都非常常见 &nbsp; &nbsp;tiles在MOD服里面的相当之广,世界上除了方块之外的可互动物品都是tiles。例如:MOD的所有机器,植魔的花,奇奇怪怪有奇怪功能的方块等。 &nbsp; &nbsp;通常情况下,不加载的Tiles的并不会消耗服务器性能,加载的Tiles也不会过多消耗性能。<strong><font color="#ff0000">但是!</font></strong> 植魔的花在加载的情况下会不断的进行计算:产能-传输-魔力池-方块更新等&nbsp; &nbsp;由于花的产魔方式不同,还可能设计到更加复杂的实体运动的运算(常用如叮当舞花),红石+掉落物(常用如火红莲)且玩家通常<font color="#ff0000"><strong>开了就不知道关,</strong></font><font color="#000000">相当于进行了无上限运算!</font><strong><font color="#000000">——————————————————</font></strong><strong>(注:无上限运算为喵的自创词语,代指服务器中不关闭可以持续进行运算拖累服务器性能的东西。</strong><strong>如果说普通的卡服内容扣除的是服务器的血条,那么无上限运算扣除的就是服务器的血量上限。</strong><strong>在老式的地皮服中尤为明显,即使玩家退服几个月了,只要周围有一个人在玩,</strong><strong>这些东西立刻会吃掉服务器的大量性能。</strong><strong>)</strong><strong><font color="#4169e1">解决办法:限制产能花数量</font></strong></td></table><br /><br /><br /><img onerror="study_killerrpic(this)" id="aimg_MAabH" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://klpbbs.com/static/image/hrline/line9.png" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /><br /><br /><br /><br /><font color="#000000"><font color="#000"><font face="&amp;quot;"><font size="3"> </font></font></font></font><font color="#000"><font face="&amp;quot;"><font style="font-size:18px"><font style="background-color:rgb(180, 194, 252)"><font color="#B4C2FC">.</font></font></font></font></font><font size="4"><font color="#000"><font face="&amp;quot;"><font color="Red"> </font></font></font></font><font color="#FF745E"><font face="&amp;quot;"><font size="3">AE的自动合成</font></font></font><font style="color:rgba(255, 255, 0, 0)"><font face="&amp;quot;"><font size="3"> |</font></font></font><font color="#ff00"><font face="&amp;quot;"><font size="3">卡服程度:★★★★★</font></font></font><input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td><font color="#000"><font face="&amp;quot;"><font size="2"><font color="#a8cc">&nbsp;&nbsp;</font><font color="#000000">AE储存是很方便的功能,但是AE提供了让玩家非常快乐的功能,也是AE的核心功能——自动合成</font></font></font></font><font color="#000"><font face="&amp;quot;"><font size="2"><font color="#a8cc">&nbsp; &nbsp;</font><font color="#ff0000">自动合成进行的时候,会不断加载刷新AE内物品</font><font color="#000000">,满足条件就在AE内部减去和增加相应物品,这样达成一次合成</font></font></font></font><font color="#000"><font face="&amp;quot;"><font size="2"><font color="#a8cc">&nbsp; &nbsp;</font><font color="#000000">当合成频率过高的时候-AE的更新就会相当之快,AE内部刷新也变随之变快</font></font></font></font><font color="#000"><font face="&amp;quot;"><font size="2"><font color="#a8cc">&nbsp; &nbsp;</font><font color="#000000">当合成物品过多时,AE同时进行的运算就会增加,且持续时间也会增加</font></font></font></font><font face="&amp;quot;"><font size="2"><font color="#000"><font color="#a8cc">&nbsp; &nbsp;</font><font color="#000000">这两个是后期玩家的追求,也是服务器卡服的主要元凶之一</font></font><font color="#4169e1"><strong>&nbsp;&nbsp;解决办法: 在config的AppliedEnergistics2中,将&nbsp; &nbsp; I:craftingCalculationTimePerTick设置为100即可(还可以修复利用AEtick刷物品bug</strong></font></font></font>值得一提的是,绝大多数玩家由于材料的限制,使用AE造成的性能开销仅仅只能算是短期卡顿只要不是合成光子太阳能这种需要物品按几十上百万算的超套娃机器,性能开销甚至可以忽略不计————————————————————如果你已经通过<strong>timings或spark</strong>等手段确认AE造成的卡顿服务器已经<font color="#ff0000"><strong>无法承受</strong></font>,也提供了紧急处理办法在AE的配置文件中找到tickrates段,这里设定了AE的各个机器之间的传输速度<strong>将有MAX的项目设置到300(可自定义),min的项目设置到60(可自定义)</strong>这样你应该可以看到AE的性能开销大幅降低了,但是代价就是<strong><font color="#ff0000">AE的运算速度也被大幅降低了</font></strong>,在你升级机器之前可以使用这个方法,毕竟也没得选择(<strong><font size="3">注:既然选择了AE作为服务器的玩法,那么AE造成的正常性能开销就是可接受的,即使它占用了大量性能。</font></strong><strong><font size="3">所以在这里并不会作为异常的卡</font></strong><strong><font size="3">服</font></strong><strong><font size="3">项目</font></strong></td></table><img onerror="study_killerrpic(this)" id="aimg_kMDzl" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://klpbbs.com/https://klpbbs.com/static/image/hrline/line9.png" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /><br /><font color="#000000"><font color="#000"><font face="&amp;quot;"><font size="3"> </font></font></font></font><font color="#000"><font face="&amp;quot;"><font style="font-size:18px"><font style="background-color:rgb(180, 194, 252)"><font color="#B4C2FC">.</font></font></font></font></font><font size="4"><font color="#000"><font face="&amp;quot;"><font color="Red"> </font></font></font></font><font color="#a924ff"><font face="&amp;quot;"><font size="3">加速火把</font></font></font><font color="#000"><font face="&amp;quot;"><font size="3">&nbsp;&nbsp;</font></font></font><font color="#ff0000"><font face="&amp;quot;"><font size="3">(卡服程度:★~★★★★</font></font></font><font color="#ff00"><font face="&amp;quot;"><font size="3">★</font></font></font><font style="color:rgb(255, 0, 0)"><font face="&amp;quot;"><font size="3">)</font></font></font><br /><input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td><br /><font color="#000"><font face="&amp;quot;"><font size="2"><font color="#000000">加速火把会比例放大其他MOD的卡服程度——最低的加速火把都能4倍加速</font></font></font></font><font color="#000"><font face="&amp;quot;"><font size="2"><font color="#a8cc">&nbsp; &nbsp;</font><font color="#000000">以下列举几个卡服的操作</font></font></font></font><font face="&amp;quot;"><font size="2"><font color="#a8cc"><font color="#000">&nbsp; &nbsp;</font></font><font color="#000000"><font color="#000">1.多个加速火把叠加</font></font><font color="#ff0000"><strong>无上限运算</strong></font><font color="#000000"><font color="#000">的机器(例如:中子素收集器)</font></font></font></font><font color="#000"><font face="&amp;quot;"><font size="2"><font color="#a8cc">&nbsp; &nbsp;</font><font color="#000000">2.加速火把加速作物生长,然后通过观察者采集等</font></font></font></font><font color="#000"><font face="&amp;quot;"><font size="2"><font color="#a8cc">&nbsp; &nbsp;</font><font color="#ff0000">实例:6个中子素态收集器+6个加速火把叠加加速,服务器tps从18.5降低到14.6</font></font></font></font><font color="#000"><font face="&amp;quot;"><font size="2"><font color="#a8cc">&nbsp; &nbsp;</font><font color="#000000">加速火把其本身并没有特别卡服,但是配合某些高运算的机器,就会达到卡服的效果</font></font></font></font><font color="#000"><font face="&amp;quot;"><font size="2"><font color="#a924ff"><strong>&nbsp; &nbsp;解决方法:限制加速火把的放置数量,或者干脆不要加这个mod</strong></font></font></font></font><br /></td></table><br /><img onerror="study_killerrpic(this)" id="aimg_SLtmO" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://klpbbs.com/https://klpbbs.com/static/image/hrline/line9.png" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /><br /><br /><font color="#000000"><font color="#000"><font face="&amp;quot;"><font size="3">&nbsp;&nbsp;</font></font></font></font><font color="#000"><font face="&amp;quot;"><font style="font-size:18px"><font style="background-color:rgb(180, 194, 252)"><font color="#B4C2FC">.</font></font></font></font></font><font size="4"><font color="#000"><font face="&amp;quot;"><font color="Red"> </font></font></font></font><font color="#4FC1C0"><font face="&amp;quot;"><font size="3"><strong>工业的核电以及回流导线</strong> (</font></font></font><font color="#ff00"><font face="&amp;quot;"><font size="3">卡服程度:★★★★)</font></font></font><br /><font face="&amp;quot;"><font color="#000000"><font size="3"><input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td></font></font><font size="2"><font color="#000000">多个核电叠加产生的发电量十分惊人</font></font><font size="2"><font color="#000000">&nbsp; &nbsp;同时,它体内的铀棒耐久消耗也十分惊人。当区块加载时,服务器会同时计算所有铀棒和散热的耐久(一个核电是54个格子),</font></font><font size="2"><font color="#000000">10个核电连通就是540个物品的耐久同时计算,还要同时计算导线传输电量,传输机器等</font></font><font size="2"><strong><font color="#000000">最重要的是:核电属于基本不会停机的机器,为了达到这个目标,通常会与自动传输,自动合成等一起出现,属于复合卡服项目,</font></strong></font><font size="2"><strong><font color="#ff0000">且能把相关的项目都转变为无上限运算</font></strong></font><font size="2"><font color="#ff0000"><strong>————————————————————————</strong></font></font><font size="2"><font color="#000000">&nbsp; &nbsp;2021年1.25日实测</font></font><font size="2"><font color="#000000">10个玩家的回流导线拆除服务器tps从8上升到了15,一个玩家的回流导线就讲tps从19.99降低到了18.87,<strong>非常建议加入相关限制插件!</strong></font></font><strong>&nbsp;&nbsp;解决办法:引导玩家使用更高效的发电内容,或者限制数量</strong><font color="#000000"><font size="3"></td></table></font></font><img onerror="study_killerrpic(this)" id="aimg_zATLp" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://klpbbs.com/https://klpbbs.com/static/image/hrline/line9.png" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /><font color="#000000"><font size="3"><br /></font></font><font color="#000000"><font color="#000"><font size="3">&nbsp; &nbsp;</font></font></font><font color="#000"><font style="font-size:18px"><font style="background-color:rgb(180, 194, 252)"><font color="#B4C2FC">.</font></font></font></font><font size="4"><font color="#000"><font color="Red"> </font></font></font><font color="#1836a3"><font size="3">地皮插件 (</font></font><font color="#ff00"><font size="3">卡服程度:★~</font></font><font color="#ff00"><font size="3">★</font></font><font color="#ff00"><font size="3">★</font></font><font color="#ff00"><font size="3">★</font></font><font color="#1836a3"><font size="3">)</font></font><input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td><font color="#000000"><font size="3"> </font><font size="2"> 地皮插件的性能主要都用在——当一个玩家在线或者挂机的时候,它周围的地皮都会被加载,这样耗费性能的MOD越多,服务器就会越卡。</font></font><font size="2"><font color="#000000">&nbsp; &nbsp;无论地皮主人有没有退服,都会不断加载这片地方,导致性能浪费十分的巨大。</font></font><font size="2"><font color="#000000"><strong>解决方法也很简单:地皮大于玩家的加载距离或使用家园插件</strong></font></font></td></table><img onerror="study_killerrpic(this)" id="aimg_k0qZu" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://klpbbs.com/https://klpbbs.com/static/image/hrline/line9.png" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /><br /><font color="#000000"><font color="#000"><font size="3"> </font></font></font><font color="#000"><font style="font-size:18px"><font style="background-color:rgb(180, 194, 252)"><font color="#B4C2FC">.</font></font></font></font><font size="4"><font color="#000"><font color="Red"> </font></font></font><strong>地图加载(跑图) (</strong><font color="#ff00"><font size="3">卡服程度:★</font></font><font color="#ff00"><font size="3">★</font></font><font color="#ff00"><font size="3">★)</font></font><input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td><font color="#000"><strong><font size="2">地图加载会同时消耗cpu和宽带,cpu是你后台内生存地图的消耗,宽带是玩家从后台下载地图的消耗</font></strong></font><font color="#000"><strong><font size="2">&nbsp; &nbsp;在我看来<font color="#ff0000">服务器的资源珍贵比是 CPU&gt;宽带&gt;内存&gt;硬盘</font></font></strong></font><font color="#000"><font size="2">&nbsp; &nbsp;CPU:服务器的所有活动都需要消耗</font></font><font color="#000"><font size="2">&nbsp; &nbsp;宽带:基本上只在跑图的时候才会大量消耗</font></font><font color="#000"><font size="2">&nbsp; &nbsp;内存:除去开服的必要内存意外,消耗的很少</font></font><font color="#000"><font size="2">&nbsp; &nbsp;硬盘:通常只有备份地图才会大量消耗</font></font><font color="#000"><strong><font size="2">&nbsp; &nbsp;地图加载会同时消耗CPU和宽带!</font></strong></font><font color="#000"><strong><font size="2">&nbsp; &nbsp;为了节省宝贵的CPU资源,所以推荐大家提早就使用/wb fill把地图加载好,玩家跑图的时候就只消耗宽带了</font></strong></font><font color="#000"><strong><font size="2">&nbsp; &nbsp;这样在玩家跑图的时候如果宽带够用,就会降低cpu的消耗,也就不会那么频繁卡顿了,适合新建资源世界的时候和暮色森林的加载</font></strong></font><font color="#4169e1"><strong>建议有独立机的腐竹创建专门的资源服</strong></font></td></table><img onerror="study_killerrpic(this)" id="aimg_nryQZ" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://klpbbs.com/https://klpbbs.com/static/image/hrline/line9.png" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /><br /><font color="#000000"><font color="#000"><font size="3">&nbsp;&nbsp;</font></font></font><font color="#000"><font style="font-size:18px"><font style="background-color:rgb(180, 194, 252)"><font color="#B4C2FC">.</font></font></font></font><font size="4"><font color="#000"><font color="Red"> <strong>漏斗</strong> (</font></font></font><font color="#ff00"><font size="3">卡服程度:★</font></font><font color="#ff00"><font size="3">★</font></font><font color="#ff00"><font size="3">★</font></font><font color="#ff00"><font size="3">★</font></font><font color="#ff00"><font size="3">★)</font></font><input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td><font color="#000"><strong><font size="2">一个简单的原版方块占用竟然能达到甚至超过工业AE的机器?!</font></strong><strong><font size="2">速速更改设置吧!</font></strong></font><font color="#000"><strong><font size="2">&nbsp; &nbsp;1.在spigot当中,设置&nbsp; &nbsp;&nbsp; &nbsp;</font></strong></font><font color="#000"><strong><font size="2">&nbsp; &nbsp;hopper-transfer: 40</font></strong></font><font color="#000"><strong><font size="2">&nbsp; &nbsp;hopper-check: 40</font></strong></font><font color="#000"><strong><font size="2">&nbsp; &nbsp;hopper-amount: 3</font></strong></font><font color="#000"><font size="2">&nbsp; &nbsp;默认是8tick处理一次上调为40tick</font></font><font color="#000"><font size="2">&nbsp; &nbsp;下面传输的数量可以根据自己喜好来增加</font></font><font color="#4169e1"><strong>注:如果没有加懒人AE,调整漏斗传输数量将会影响AE的自动化压印系统,不建议更改传输数量</strong></font><font color="#000"><font color="#444444"></td></table></font></font><font color="#000"><br /><img onerror="study_killerrpic(this)" id="aimg_pSc1R" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://klpbbs.com/static/image/hrline/line9.png" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /><br /><br /></font><font color="#000"><font color="#444444"><br /></font></font><font color="#000"><font color="#000000"><font size="3"> </font></font><font style="font-size:18px"><font style="background-color:rgb(180, 194, 252)"><font color="#B4C2FC">.</font></font></font><font size="4"><font color="Red"> </font></font><strong>区块加载 (</strong><font color="#ff00"><font size="3">卡服程度:★</font></font><font color="#ff00"><font size="3">★</font></font><font color="#ff00"><font size="3">★</font></font><font color="#ff00"><font size="3">★</font></font><font color="#ff00"><font size="3">★)</font></font></font><font color="#000"><input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td></font><font color="#000"><font size="2">区块加载这个东西争议一直很大很大,加载范围大了,服务器很容易就造成卡顿,加载范围小了,很容易引起玩家不满</font></font><font color="#000"><font size="2">通常的优化推荐将<font color="#000000">view-distance</font> 范设置为4~6</font></font><font color="#000"><strong><font size="2">&nbsp; &nbsp;也就是加载玩家为中心144*144格~208*208格的所有方块</font></strong></font><font color="#000"><strong><font size="2">&nbsp; &nbsp;喵:???</font></strong></font><font color="#000"><font size="2">————————————</font></font><font color="#000"><font size="2">&nbsp; &nbsp;这里给一个大家一个数值</font></font><font size="2"><font color="#ff0000">&nbsp; &nbsp;view-distance=1 加载玩家为中心48*48的方块</font></font><font size="2"><font color="#ff0000">&nbsp; &nbsp;view-distance=2 加载玩家为中心80*80的方块</font></font><font size="2"><font color="#ff0000">&nbsp; &nbsp;view-distance=3 加载玩家为中心112*112的方块</font></font><font size="2"><font color="#ff0000"><strong>&nbsp; &nbsp;可以根据自己服务器的情况来决定</strong></font></font><font size="2"><font color="#000000"><strong>有分服的腐竹建议缩小资源的加载范围,扩大玩家生存区域的加载范围同时禁止玩家在生存区域跑图</strong></font></font><font color="#000"><font size="2"><font color="#4169e1">注:服务器读取优先加载spigot里面的视距设置而不是server.properties,所以其实只更改spigot里面的即可</font></font></font><font color="#000"></td></table></font><font color="#000"><br /><img onerror="study_killerrpic(this)" id="aimg_M22I2" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://klpbbs.com/static/image/hrline/line9.png" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /><br /><br /></font><font color="#000"><font color="#000000"><font size="3">&nbsp; &nbsp;</font></font><font style="font-size:18px"><font style="background-color:rgb(180, 194, 252)"><font color="#B4C2FC">.</font></font></font><font size="4"><font color="Red"> </font><font color="#2e8b57">暮色森林</font></font><strong> (</strong><font color="#ff00"><font size="3">卡服程度:★</font></font><font color="#ff00"><font size="3">★</font></font><font color="#ff00"><font size="3">★</font></font><font color="#ff00"><font size="3">★</font></font><font color="#ff00"><font size="3">★)</font></font></font><font color="#000"><input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td></font><font color="#000"><font size="2">众所周知暮色森林会生成大量的野外建筑和树,并且玩家跑图会极大的消耗服务器资源,那么如何解决此类问题呢?</font><font size="2">首先在config中打开暮色森林配置文件(twilightforest.cfg),在其中找到</font><ul type="1" class="litype_1"><li><font size="2">performance {<br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;# Amount of canopy coverage. Lower numbers improve chunk generation speed at the cost of a thinner forest.<br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;# Min: 0.0<br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;# Max: 1.7976931348623157E308<br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;D:canopyCoverage=0.1<br /></font><li><font size="2"><br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;# Setting this true will make Twilight Glaciers generate with Packed Ice instead of regular translucent Ice, decreasing amount of light checking calculations.<br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;B:glacierPackedIce=false<br /></font><li><font size="2"><br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;# This controls the opacity of leaves, changing the amount of light blocked. Can be used to decrease complexity in some lighting checks.<br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;# Min: 0<br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;# Max: 255<br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;I:leavesLightOpacity=1<br /></font><li><font size="2"><br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;# Chance that a chunk in the Twilight Forest will contain a twilight oak tree. Higher numbers reduce the number of trees, increasing performance.<br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;# Min: 1<br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;# Max: 2147483647<br /></font><li><font size="2">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;I:twilightOakChance=600</font><br /></ul><br /><font size="2">每个选项是什么意思可以去谷歌翻译一下:) , 根据服务器情况适当调整生成的数值即可有效的降低性能消耗<br /></font><font size="2">B:skylightForest = false 这一项如果设置为TRUE,暮色森林将仅会生成必要的建筑,有想法的可以去试试</font></font><font color="#000"></td></table></font><br /><font color="#000"><br /><img onerror="study_killerrpic(this)" id="aimg_C3Z2G" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://klpbbs.com/static/image/hrline/line9.png" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /></font><font color="#000"><br /><font size="3"><strong>帖子还会不断更新(大概),如果有什么建议和意见,或者服务器有卡顿也可以找咱,喵会给予优化的建议或者帮助你优化</strong></font></font></font><br /><br>来源:<a href="https://klpbbs.com/thread-133350-1-5.html" target="_blank">https://klpbbs.com/thread-133350-1-5.html</a><br>免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
页: [1]
查看完整版本: 【喵】草履虫也能直接上手的服务器优化教学 - 教程中心 - Minecraft(我的世