Making Minecraft 100x faster (by rewriting it in Rust)

Поділитися
Вставка
  • Опубліковано 30 жов 2024

КОМЕНТАРІ • 36

  • @montytrollic
    @montytrollic 2 години тому +55

    5:42 The reason why light gets recalculated on the server is due to logic tied to spawning mobs in dark places and so on.

  • @nicolaska1761
    @nicolaska1761 45 хвилин тому +5

    Yes the benchmarks shows a 20x perf gap, but if the 3 most demanding tasks are not currently available this benchmark means nothing

  • @rokasbarasa1
    @rokasbarasa1 2 години тому +14

    I like how we all in the Rust community gravitated to minecraft for coding challenges. I myself have remade a simple minecraft single player in Rust.

    • @skellious
      @skellious 5 хвилин тому

      Gotta make your redstone computer faster. Can't speed up the Redstone? Rewrite the universe!!

  • @untitledgoose5526
    @untitledgoose5526 2 години тому +22

    another buggy minecraft version on the way

    • @gorak9000
      @gorak9000 2 години тому

      It's like standards? The greatest thing is how many there are?

  • @partykid4
    @partykid4 2 години тому +8

    The main problem for Minecraft servers isn't the RAM usage, it's actually CPU usage. The base game is still single-threaded, so the vanilla server and it's modded forms (Spigot/Paper/Sponge/Forge/Fabric) are all also still largely single-threaded. As Mojang has added stuff to the game, the demand on servers has outpaced the improvement in single-threaded performance of new CPUs, meaning servers can hold less and less people with every update.
    The solution to this of course, is to multi-thread it. However, as you pointed out in your video, with how much stuff actually runs on the server that's no small feat. Modding the base server to be multi-threaded is basically impossible (there is actually a project called Folia that is **kind of** doing this, and has had great success, but isn't ideal and causes a lot of issues), so the only real choice is a complete rewrite.
    I personally do not think we'll ever see a feature-complete rewrite of the server, at least not from the community. It's just too much work, and with the increasing frequency of updates maintaining it long term would be next to impossible.

    • @juxuanu
      @juxuanu 10 хвилин тому

      One can only hope all community efforts consolidate into one project, and at some point Microsoft starts contributing to it.

  • @StefanErwinBaumer
    @StefanErwinBaumer Годину тому +4

    I mean yea this isn't using many resources, but there's *so much* that this isn't doing, so while this is a neat project, it doesn't say much about the performance of any of the technologies involved
    also on RAM use: when you see the empty server RAM use, you need to account for the fact that the JVM preallocates a bunch of empty heap space, so it'll be vastly bigger on an empty server, but gain almost no RAM use when the first player joins

  • @ray73864
    @ray73864 2 години тому +8

    Why would you think that the light should not be calculated on the server when playing server side? The server needs to know where to spawn mobs, etc...
    Also, I don't know about the server side, but Mojang has been releasing an obfuscation map for Minecraft for about a decade now at least.

  • @salvehn
    @salvehn Годину тому +2

    for me it was Garry's mod with wiremod and Expression 2 programming language. definetly wouldn't become dev if didn't play them during school
    it was slow as well. can't wait for S&Box to add proper sandbox mode with similar stuff

  • @pwall
    @pwall Годину тому +1

    Theo, no. You are *wrong* we do have the official Java, Minecraft server source code.

  • @pigeonprotagonist6357
    @pigeonprotagonist6357 2 години тому +3

    World border has been added in the time it took to release this video

  • @andrewk2756
    @andrewk2756 Годину тому +3

    >9:58 I'm impressed, it's running and it's running well
    >% CPU: 105
    >???

  • @Meiallu
    @Meiallu 34 хвилини тому +1

    It's not actually that impressive, there is NOTHING hapenning, most of it is being used for world generation, and there is basically no world hapenning, no light (which is expensive as fuck, and also, theo, mobs depend on light so it does need to be calculated on the server) no saving, no nothing, it's just the player and a extremely basic world, for something like this i'd actually expect better performance, really, not really fair to compare that to paper, vanilla, etc.

  • @BryanLu0
    @BryanLu0 35 хвилин тому

    The server basically runs all the game logic, so it's not surprising that main game mechanics like lighting would be server side. 6:25

  • @happieplantnl
    @happieplantnl Годину тому

    This video was so interesting, please release more nerdy technical minecraft stuff :)

  • @David-gj6dc
    @David-gj6dc 25 хвилин тому

    Lights are server side because it decides whether mobs can spawn there are not, so actually not that crazy.

  • @BryanLu0
    @BryanLu0 23 хвилини тому

    6:40 Mojang has been releasing deobfuscation maps for 5 years now, although it's not everything (e.g. function arguments) it's definitely enough for deobfuscation

    • @BryanLu0
      @BryanLu0 15 хвилин тому

      11:29 ??? Even if the server code wasn't well understood, redstone and command blocks are very well understood

  • @BryanLu0
    @BryanLu0 40 хвилин тому

    While Bedrock does have some outstanding bugs (dieing of no fault of your own) you have to admit it runs pretty well

  • @SAsquirtle
    @SAsquirtle 2 години тому

    can't believe there are people who think bedrock is better than java lmfao

  • @rudrecciah
    @rudrecciah 2 години тому

    16:50 THATS OOMF 🔥🔥🔥🔥

    • @rudrecciah
      @rudrecciah 2 години тому

      oh wait their site shows up earlier too 3:15 THATS OOMF 🔥🔥🔥🔥

  • @Ratstail91
    @Ratstail91 39 хвилин тому

    Minecraft isn't just slow because of Java, it's legitimately badly coded, IMO.

  • @algj
    @algj 2 години тому +2

    Too early to be excited about

  • @siljrath
    @siljrath Годину тому +1

    Seriously? Not gonna mention Minetest? Catch up. Fully foss and fast since 2010. Vast add-on space. Many games hosted.
    I've never understood staying with minecraft since minetest.

  • @cnikolov
    @cnikolov 7 хвилин тому

    Same for me with WoW servers :D

  • @chinesesparrows
    @chinesesparrows 2 години тому

    Really interesting wow

  • @senge1337
    @senge1337 2 години тому

  • @orionh5535
    @orionh5535 2 години тому +1

    Do the devs have blue hair? Because they seem like senior rust devs.

  • @1tai_biton
    @1tai_biton 2 години тому

    🎉