For us redstoners lag is something that limits the game to such a degree that is unfathomable this game has gotten increasingly more intensive over the years without external mods like lithium and starlight so with that I introduced something that is incredibly important lag efficiency before getting started I Must talk about some general terms like TVs and mspt TPS is the speed of which your game is running if the TPS is less than 20 then your server is lagging msbt is the main measure of server-side lag if the msbt exceeds 50 then your server Is lagging and then your TPS will go down alright so we must talk about how to Benchmark your machines normally people will use carpet mod after installing this mod you can do slash log TPS and you can see the msbt and TPS counter when you hold down tab then you Can turn on your machine and start to use it then do slash tick warp in a given time for example here I’m going to do 72 000 which is one hour after a little bit you’ll get your msbt rate back the lower the better it is also Important to get your background like to get that just turn off everything in your world and then do the same tick warp command after getting your mspt rate back for the test you must have track the background leg from the actual machine slag to get an accurate measurement like so that final number Will be how laggy your Contraption is unfortunately testing a Contraption for just an hour isn’t good practice whatsoever at least for General Farm testing preferably you test it as long as possible 24 hours is my normal length however for more complex Contraptions you should do much longer preferably Around 400 hours if not more alright now that you know how to test your machines it’s time to get into optimizing them unfortunately this changes with versions but I’ll mainly focus on 1.18.2 because that’s the latest full release at the time of recording anyway let’s get started each Redstone component has its Own weird lag properties with certain habits I’ve composed a chart of a few Redstone components and how laggy they are measured in the unit of how lucky observers are so for example 10 Pistons are around eight times as laggy as observers and Redstone dots are around five times as laggy some of these Components like the ones marked in red are tile entities and are extremely laggy when trying to load or unload large amounts of them at once there are also ticking tile entities like Hoppers that get updated every 1 20th of a second which makes them lack passively Pistons can also be tile entities when They are placed regularly they aren’t but when they extend their retract they turn into tile entities for a very short period of time which means the large quantities of Pistons powering and de-powering are extremely Lackey as you are essentially loading and unloading a lot of tile entities very quickly now Some components get even worse than this if you’ve been into technical Minecraft for longer than a year you must have heard of the term dustless this refers to no Redstone Dust updates while a farm is running ever wonder why that exists well it’s because Redstone Dust is extremely laggy Now let’s look back at the graph I made you can see that Redstone dots are around five times as laggy as observers but it specifies Redstone dots what I didn’t include was Redstone lines which are 32 times as laggy’s observers now the reason for this is quite ridiculous When Redstone lines change power level it sends out a lot of block updates roughly 42 and dust is very well made so when it turns from power level 15 down to zero it’ll go from parallel 15 to 13 to 11 then 9 all the way down to zero And every time it changes power level it sends out all those block updates which means when a redstone line powers and D Powers it sends a 336 block updates alone thankfully Redstone dots are better they go from parallel 15 straight down to zero meaning they only send 42 block updates The funny thing is dusk can actually get worse both dots and lines check themselves up to seven times every time they change power level meaning not only do they get hundreds of block updates but also a lot of useless checks thankfully some people have created mods That have helped the dust quite a lot and some of those are in the description let’s stop talking about how bad Mojang is at making Redstone components and now talk about how bad they are making lighting engines light is managed on a different thread of your CPU so it Doesn’t really affect mspt unless you’re in 1.13 and below however it does heavily affect your client FPS for example placing a block at height limit creates a massive lag Spike and pretty much anything else that has a lot of light updates kills your client light updates can also cause a Light subtraction where the lighting thread Falls far behind the main thread of the game light suppression can be useful but it is incredibly lucky FPS wise to remove any sort of FPS lag I just recommend putting a roof on your Contraptions and removing any light sources in there as well including Redstone torches if you want to learn more about how the lighting engine works I recommend watching a video by VK deck which is linked in the description now to recap really really quickly avoid tile entities in areas that get loaded pretty often and just avoid ticking title entities in general Redstone Dust Is extremely laggy although you can use mods to get rid of most of the lag just avoid it when possible light updates are very laggy FPS wise but can be useful for certain things so honestly just keep your mspt low and your TPS High I want to give a special Thanks to floppy donkey spacewalker Fallen breath and VK tech for giving information for this video and of course pineapple cake for helping with the script and with that I want to say thank you so much for watching and have a good day bye Foreign Video Information
This video, titled ‘Minecraft is laggy. Let’s Fix it.’, was uploaded by Activation on 2022-07-17 19:00:04. It has garnered 17520 views and 804 likes. The duration of the video is 00:06:04 or 364 seconds.
o/ Long time no see! I was editing for awhile but the video is done! Basics of Lag is done! It took awhile to make, but I’m Pretty happy with how it turned out!. Anyway, on to credits and things of that sort. ==========
Vktecs video about light suppression and what not https://www.youtube.com/watch?v=JtoTAkjpuHA
Graphics by @activated5730 (my second channel lmao, aka i did the graphics) ========== Special Thanks to These Folks.
FloppydonkeyNi (Script & everything checks) https://www.youtube.com/channel/UCfAtbEnmJ6aRrM3DemzbEfw
Spacewalker (Redstone dust stuff) https://www.youtube.com/c/SpaceWalkerChannel
Fallen Breath (Tile entity Stuff) https://www.youtube.com/c/FallenBreath
vktec (Light update stuff) https://www.youtube.com/c/vktec
Pineapplecake (Script Help) https://www.youtube.com/channel/UCuwYM35LOPetL5Y-BFoUhOA ==========
Background Music Mark Hutsons Ancient Trials https://www.youtube.com/watch?v=gDe2lPA2jfI
Mark also made “The Kings Grand Ball”
Last song Is “The Dead” By John Trasoulas https://www.youtube.com/watch?v=2l71EN_STVI
Redstone Modifcaitons vvvv
Theosibs “Fast redstone dust.” which is integrated into Carpet Mod https://www.curseforge.com/minecraft/mc-mods/carpet
Space walker’s “Alternate Current” https://github.com/SpaceWalkerRS/alternate-current ==========
Social links!
My Youtube https://www.youtube.com/c/activation123
My Twitch https://www.twitch.tv/activation1234
My Discord https://discord.gg/MKvUjMb
My Second Channel For stream vods https://www.youtube.com/channel/UCXLMJIzepYEumDUIWSxK8iQ
My twitter https://twitter.com/acitvation1234