Unreal Engine 5 - C++ Multithreading and Async Tasks - Runtime Terrain Generation Part - 11

Project Files: / 92373352 .
This is the 11th episode of unreal engine runtime terrain generation system.
Today, we are going to learn about multithreading in unreal engine with C++. Here, we will refactor the code to run the function we have written to generate terrain as an async task in a separate thread instead of the main thread. So that we can generate the terrain infinitely as the player moves around the world with a minimum interruption to the game main thread.
CodeLikeMe Unreal Engine 5 Runtime terrain Generation series: • Unreal Engine 5 Runtim...
Jetpack Tutorial: • Unreal Engine 5 - Jetpack
► 👇 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐓𝐡𝐞 𝐂𝐡𝐚𝐧𝐧𝐞𝐥 // 𝐁𝐞𝐜𝐨𝐦𝐞 𝐀 𝐏𝐚𝐭𝐫𝐨𝐧!
/ codelikeme
►Patrons will have access to project files of all the stuff I do in the channel and other extra benefits
Join this channel to get access to perks:
/ @codelikeme
Like my facebook page for more content : / gamedevelopersclub
Follow me on twitter : / codelikeme2
Follow me on reddit : / codelikeme
#CodeLikeMe #unrealengine #ue5 #indiegamedev

Пікірлер: 20

  • @Need2pee
    @Need2pee6 ай бұрын

    You could also pass the "this" reference in those [] brackets so it goes like : AsyncTask(ENamedThreads::ThreadName, [This, InsectionX, InsectionY] () {/Your code}; and you can also pass any parameters as seen in this code example, So the initial part of this video is not required.

  • @CodeLikeMe

    @CodeLikeMe

    6 ай бұрын

    thanks for the tip

  • @kamael22
    @kamael224 ай бұрын

    Hi, do You know why async onComplete event in blueprint needs to wait one frame unless it crashes?

  • @pakoo7715
    @pakoo77156 ай бұрын

    Hi, may be it will be interesting for u to see my solutiin . I've used "parallel for" and actual threads instead of async tasks

  • @lolaswift111
    @lolaswift1113 ай бұрын

    can we generate a sphere terrain using this not using the voxel plugin?

  • @CodeLikeMe

    @CodeLikeMe

    3 ай бұрын

    I’m working on it. Check out this video Generating A Planet In Unreal Engine Using Dynamic Mesh and Geometry Scripts kzread.info/dash/bejne/hWt6xLeHgda-pNY.html

  • @lolaswift111

    @lolaswift111

    3 ай бұрын

    @@CodeLikeMe Brilliant! thanks.

  • @Saddawgbro
    @Saddawgbro6 ай бұрын

    i finished this but still whenever the tiles spawn my game still freezes for about a second do you know why?

  • @CodeLikeMe

    @CodeLikeMe

    6 ай бұрын

    I did further improvements in subsequent episodes. Keep following

  • @Saddawgbro

    @Saddawgbro

    6 ай бұрын

    @@CodeLikeMe yes i just finished and it still seems to be stuttering?

  • @CodeLikeMe

    @CodeLikeMe

    6 ай бұрын

    @@Saddawgbro finish the whole series?

  • @Saddawgbro

    @Saddawgbro

    6 ай бұрын

    @@CodeLikeMe i finished the terrain generation and all the videos on performance and i still stutter

  • @roydash5657
    @roydash56576 ай бұрын

    You have tutorial how to add virtual IK bones

  • @CodeLikeMe

    @CodeLikeMe

    6 ай бұрын

    I have many tutorials on how to use ik systems for foot placement, hand placement etc

  • @roydash5657

    @roydash5657

    6 ай бұрын

    @@CodeLikeMe you have Playlist or something like that?

  • @aloluk
    @aloluk5 ай бұрын

    I've dont game dev for years and multithreading is NOT how you should initially be fixing this. Why are you doing so much work once a second? You should be spreading this work out over multiple frames then you wont get any of these MASSIVE stalls. Also, why dont you have your debugger attached to UE so it actually just crashes in your debugger?

  • @CodeLikeMe

    @CodeLikeMe

    5 ай бұрын

    Thanks for letting me know. I will keep that in mind when I do updates

  • @JesfNwje
    @JesfNwje6 ай бұрын

    It still makes my game stutter

  • @CodeLikeMe

    @CodeLikeMe

    6 ай бұрын

    I made further improvements in subsequent episodes. Keep following

  • @JesfNwje

    @JesfNwje

    6 ай бұрын

    @@CodeLikeMe ok