Minecraft 1.12 Command Revolution! Faster Background Computation with No Lag! HD

04.05.2017
In this video, I demonstrate that in Minecraft 1.12 it is now possible to maximize command programming CPU utilization without introducing game lag. I briefly talk about the history of command block programming in Minecraft, and the prior latency barriers that prevented programmers from maximizing CPU utilization. I then demonstrate how in 1.12 I can draw the Mandelbrot set (a pretty colorful fractal) about 16x faster than before, thanks to the removal of the final latency barrier in Minecraft 1.12. The trade-off with consuming as much CPU as possible to run your commands is that you lag out the game. A general solution to this problem is to employ a pre-emptive multitasking scheduler within Minecraft. I demonstrate how a "fixed time slice" approach can allocate a percentage of the CPU to commands, and the rest to Minecraft. I then demonstrate a more flexible system where Minecraft has priority to use as much CPU as it likes, and the programmed commands just utilize the "leftover" CPU during each game tick to run. This final example shows that it is possible to utilize 100% of the computing resources, for the fastest command-programming, without introducing any "lag" into the normal Minecraft game simulation. I envision systems like this being used more frequently in the future for complex "command block mods" that folks create. Cool stuff, right? Prior videos: - 3 years ago: https://www.youtube.com/watch?v=PrcgvA5Qjfk - 1.5 years ago: https://www.youtube.com/watch?v=nfkkMFLtlUg Follow me on twitter: https://twitter.com/lorgon111 Subscribe for more videos: https://www.youtube.com/user/lorgon111

Похожие видео

Показать еще