<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Faldon Forums - Server lag]]></title>
		<link>https://www.faldon.org/topic/7569/</link>
		<description><![CDATA[The most recent posts in Server lag.]]></description>
		<lastBuildDate>Sat, 14 Sep 2024 16:55:31 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73268/#p73268</link>
			<description><![CDATA[<p>Yeah, this was all Spy&#039;s fault! Let&#039;s get mad because the server vulnerability wasn&#039;t fixed within 24 hours! And why didn&#039;t the offenders get instant banned, and other imperfect ways this was handled!&nbsp; <img src="https://www.faldon.org/img/smilies/roll.png" width="15" height="15" alt="roll" /> </p><p><span class="postimg"><img src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftv-fanatic-res.cloudinary.com%2Fiu%2Fs--02uNV0Fd--%2Ft_xlarge_l%2Ff_auto%2Cfl_lossy%2Cq_75%2Fv1490231460%2Fattachment%2Fgot-shame.gif&amp;f=1&amp;nofb=1&amp;ipt=f02b1e1d437ace6f6ba7120095d62ef8a2d1d3b8b4c9633fde34de35e65edad8&amp;ipo=images" alt="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftv-fanatic-res.cloudinary.com%2Fiu%2Fs--02uNV0Fd--%2Ft_xlarge_l%2Ff_auto%2Cfl_lossy%2Cq_75%2Fv1490231460%2Fattachment%2Fgot-shame.gif&amp;amp;f=1&amp;amp;nofb=1&amp;amp;ipt=f02b1e1d437ace6f6ba7120095d62ef8a2d1d3b8b4c9633fde34de35e65edad8&amp;amp;ipo=images" /></span></p>]]></description>
			<author><![CDATA[dummy@example.com (Master Wu)]]></author>
			<pubDate>Sat, 14 Sep 2024 16:55:31 +0000</pubDate>
			<guid>https://www.faldon.org/post/73268/#p73268</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73267/#p73267</link>
			<description><![CDATA[<div class="quotebox"><cite>Mr Spy wrote:</cite><blockquote><p>It does seem to be related to the automatic item pickup thingy people are using. I booted the ones using it/asked them to turn it off. Lag seems to be gone according to the players.</p></blockquote></div><br /><p>Why you say people when you know exactly who did it and make it look like all of us was causing it? <br />i even dmed you in discord about exactly what caused the lag and your reply was &quot;idc tell james&quot; no?</p>]]></description>
			<author><![CDATA[dummy@example.com (Salazzar(HM))]]></author>
			<pubDate>Sat, 14 Sep 2024 07:01:40 +0000</pubDate>
			<guid>https://www.faldon.org/post/73267/#p73267</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73266/#p73266</link>
			<description><![CDATA[<div class="quotebox"><cite>James wrote:</cite><blockquote><p>Turns out 25 players use 20% server CPU.<br />1 player using the macro increases it to 50%. So, 3 players causes 100%, and then everyone gets lag.<br />The main problem is it sends a ton of packets for objects that aren&#039;t even there.</p><p>I am going to change the pick-up packet to use object ID instead of location next week. That will solve the problem permanently. This is great. I thought the problem would be more difficult to solve.</p><p>Thanks for finding the problem Mr Spy, and thanks for revealing the problem bullethead123. I want to make the server resilient to all kinds of packets, and clearly, object pick-up is an area that is very inefficient.</p></blockquote></div><p>It turns out everyone gets punished because 3 peoples mistakes</p>]]></description>
			<author><![CDATA[dummy@example.com (Salazzar(HM))]]></author>
			<pubDate>Sat, 14 Sep 2024 06:59:42 +0000</pubDate>
			<guid>https://www.faldon.org/post/73266/#p73266</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73265/#p73265</link>
			<description><![CDATA[<p>who&#039;s online using it now?.</p><p>Nvm i know who it is. Keep an eye on anthonyrules, i believe it should not be an issue now but please do let me know if it is still causing problems. When other users restart they&#039;ll be moved onto same version anthonyrules is on.</p>]]></description>
			<author><![CDATA[dummy@example.com (bullethead123)]]></author>
			<pubDate>Fri, 13 Sep 2024 16:29:01 +0000</pubDate>
			<guid>https://www.faldon.org/post/73265/#p73265</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73264/#p73264</link>
			<description><![CDATA[<p>Ah, so it was only limited by the bandwidth of the player. I&#039;m surprised the effect was only 30% CPU per player. Radius of 3 will not work at any rate -- anything over 1 tile X and 1 tile Y from the player is ignored.</p><p>Judging by CPU usage, we have one person online using your macro, and the server bandwidth over 30 seconds is<br />RX to server: 9547362 bytes (318KB/s)<br />TX from server: 873424 bytes (29KB/s)<br />As it&#039;s typically 1KB/s both ways per player, I think it&#039;s safe to say the macro is DOSing the server. Enough packets per macroer for 200 players. This is doubly funny actually, because the server is only on a 10 megabit (1.25MB/s) line, so not only are you maxing the CPU but also probably running me out of bandwidth.</p><p>Thinking of it now, the best way to solve this is a general bandwidth limit per player. No wonder it was lagging.</p>]]></description>
			<author><![CDATA[dummy@example.com (James)]]></author>
			<pubDate>Fri, 13 Sep 2024 16:19:22 +0000</pubDate>
			<guid>https://www.faldon.org/post/73264/#p73264</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73263/#p73263</link>
			<description><![CDATA[<p>How many depends on the radius</p><p>for (int dx = -collectionRadius; dx &lt;= collectionRadius; ++dx) {<br />&nbsp; &nbsp; &nbsp; &nbsp; for (int dy = -collectionRadius; dy &lt;= collectionRadius; ++dy) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int targetX = currentX + dx;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int targetY = currentYDecoded + dy;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendCollectionPacket(targetX, targetY);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p><p>IT was spamming the above function with no delay. SO probably like hundreds a second.</p>]]></description>
			<author><![CDATA[dummy@example.com (bullethead123)]]></author>
			<pubDate>Fri, 13 Sep 2024 16:16:05 +0000</pubDate>
			<guid>https://www.faldon.org/post/73263/#p73263</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73262/#p73262</link>
			<description><![CDATA[<p>ITs funny you ask, I was just looking over my code and i realised i made a mistake. It&#039;s supposed to be periodically sending collect packets out in a radius around the player, but I had called it from 2 different areas, 1 in a back-ground thread which spammed it continually with no delay. So not only was it sending them infinitely without delay but it was calling it an additional time every 1second.</p><p>I&#039;ve corrected it now, I think that should solve the issue. I also reduced the radius from 3 tiles to 1.</p>]]></description>
			<author><![CDATA[dummy@example.com (bullethead123)]]></author>
			<pubDate>Fri, 13 Sep 2024 16:09:52 +0000</pubDate>
			<guid>https://www.faldon.org/post/73262/#p73262</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73261/#p73261</link>
			<description><![CDATA[<p>Out of curiosity, though, how many pick-up packets per second are you sending? I imagine it&#039;s 9 at a time all around the player for starters.</p>]]></description>
			<author><![CDATA[dummy@example.com (James)]]></author>
			<pubDate>Fri, 13 Sep 2024 16:00:32 +0000</pubDate>
			<guid>https://www.faldon.org/post/73261/#p73261</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73260/#p73260</link>
			<description><![CDATA[<div class="quotebox"><cite>James wrote:</cite><blockquote><p>Turns out 25 players use 20% server CPU.<br />1 player using the macro increases it to 50%. So, 3 players causes 100%, and then everyone gets lag.<br />The main problem is it sends a ton of packets for objects that aren&#039;t even there.</p><p>I am going to change the pick-up packet to use object ID instead of location next week. That will solve the problem permanently. This is great. I thought the problem would be more difficult to solve.</p><p>Thanks for finding the problem Mr Spy, and thanks for revealing the problem bullethead123. I want to make the server resilient to all kinds of packets, and clearly, object pick-up is an area that is very inefficient.</p></blockquote></div><p>I love your mindset as a developer. Rather than crying about the problem (or people doing it) you look to implement a solution.</p>]]></description>
			<author><![CDATA[dummy@example.com (bullethead123)]]></author>
			<pubDate>Fri, 13 Sep 2024 15:33:00 +0000</pubDate>
			<guid>https://www.faldon.org/post/73260/#p73260</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73259/#p73259</link>
			<description><![CDATA[<p>Turns out 25 players use 20% server CPU.<br />1 player using the macro increases it to 50%. So, 3 players causes 100%, and then everyone gets lag.<br />The main problem is it sends a ton of packets for objects that aren&#039;t even there.</p><p>I am going to change the pick-up packet to use object ID instead of location next week. That will solve the problem permanently. This is great. I thought the problem would be more difficult to solve.</p><p>Thanks for finding the problem Mr Spy, and thanks for revealing the problem bullethead123. I want to make the server resilient to all kinds of packets, and clearly, object pick-up is an area that is very inefficient.</p>]]></description>
			<author><![CDATA[dummy@example.com (James)]]></author>
			<pubDate>Fri, 13 Sep 2024 14:56:31 +0000</pubDate>
			<guid>https://www.faldon.org/post/73259/#p73259</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73258/#p73258</link>
			<description><![CDATA[<p>Hello,</p><p>Yes that is mine. I apologize it was not my intention to cause issues for players. I&#039;m disabling that feature for anyone using at this time.</p><p>Thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (bullethead123)]]></author>
			<pubDate>Fri, 13 Sep 2024 14:43:04 +0000</pubDate>
			<guid>https://www.faldon.org/post/73258/#p73258</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73257/#p73257</link>
			<description><![CDATA[<p>It does seem to be related to the automatic item pickup thingy people are using. I booted the ones using it/asked them to turn it off. Lag seems to be gone according to the players.</p>]]></description>
			<author><![CDATA[dummy@example.com (Mr Spy)]]></author>
			<pubDate>Fri, 13 Sep 2024 14:33:09 +0000</pubDate>
			<guid>https://www.faldon.org/post/73257/#p73257</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73256/#p73256</link>
			<description><![CDATA[<div class="quotebox"><cite>Mister Rob wrote:</cite><blockquote><div class="quotebox"><cite>pennywise wrote:</cite><blockquote><p>They&#039;re injecting an old.dll hack called Maldon.&nbsp; It hooks on faldon and spams auto attack and auto pick up commands...looks like api calls, not packet editing.&nbsp; The commands should work seperate from one another, so I dunno why the auto pickup was on.&nbsp; It also only works on old client.</p></blockquote></div><p>Its not Maldon what theyre using but &#039;&#039;Faldron&#039;&#039; its been advertised on the game and discord. But its the same thing except the auto loot is probably always on.</p></blockquote></div><p>Well, i think there are only 2 ppl using that, and current lag is older than that program. Plus that is not the same as Maldon (almost a complete trash). James is right, people who use it crashes multiple times when injecting its dll, i&#039;ve seen that with my eyes too, but i dont think lag is related to that.</p>]]></description>
			<author><![CDATA[dummy@example.com (Supla)]]></author>
			<pubDate>Thu, 12 Sep 2024 22:06:28 +0000</pubDate>
			<guid>https://www.faldon.org/post/73256/#p73256</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73255/#p73255</link>
			<description><![CDATA[<div class="quotebox"><cite>pennywise wrote:</cite><blockquote><p>They&#039;re injecting an old.dll hack called Maldon.&nbsp; It hooks on faldon and spams auto attack and auto pick up commands...looks like api calls, not packet editing.&nbsp; The commands should work seperate from one another, so I dunno why the auto pickup was on.&nbsp; It also only works on old client.</p></blockquote></div><p>Its not Maldon what theyre using but &#039;&#039;Faldron&#039;&#039; its been advertised on the game and discord. But its the same thing except the auto loot is probably always on.</p>]]></description>
			<author><![CDATA[dummy@example.com (Mister Rob)]]></author>
			<pubDate>Thu, 12 Sep 2024 21:35:57 +0000</pubDate>
			<guid>https://www.faldon.org/post/73255/#p73255</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lag]]></title>
			<link>https://www.faldon.org/post/73254/#p73254</link>
			<description><![CDATA[<p>The 2024/09/10 update did not change the server. It loaded art more slowly, which 2024/09/12 fixed.</p><p>Not a given that no one is using that type of program. I get crash reports from a guy using &quot;FaldonInject.dll&quot; all the time.<br />*That said*, the server needs to be tolerant of whatever comes its way.</p><p>2024/08/23 did also add script caching. It&#039;s possible that doesn&#039;t work as well as it should. I&#039;m going to try and figure out a way to run a profiler on the server code this coming week.</p>]]></description>
			<author><![CDATA[dummy@example.com (James)]]></author>
			<pubDate>Thu, 12 Sep 2024 21:35:44 +0000</pubDate>
			<guid>https://www.faldon.org/post/73254/#p73254</guid>
		</item>
	</channel>
</rss>
