Nanite Forest Optimisation in Unreal Engine 5

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

КОМЕНТАРІ •

  • @starscream2092
    @starscream2092 3 місяці тому +5

    I like how you explain things, you introduce change and problems that come along with their solution

  • @InfinaWorks
    @InfinaWorks 4 місяці тому +3

    Great video and really nice looking forest!
    Just a tip regarding shadows on grass and other small foliage/assets for those who are not aware of it.
    Try using contact shadows instead of dynamic shadows. It is enabled per default on meshes, but the contact shadow length on directional lights are set to 0.0 per default. (I usually set it to 0.1 or 0.2)

  • @ImeCoulter
    @ImeCoulter 3 місяці тому +15

    Great video with a lot of useful tips.
    Crossing my fingers that Epic finds a way to limit overdraw on Nanite foliage...

    • @gouroux8791
      @gouroux8791 2 місяці тому

      That would be great

    • @atnfn
      @atnfn 13 днів тому

      Perhaps nVidia is paying them not to, in their interest games run like shit so people must upgrade.

  • @themadgamer4571
    @themadgamer4571 4 місяці тому +13

    Thank you! I was trying figure out why I was going from 100 to 30fps. My landscape auto material brings to 72. Then the tessellation would bring me to the 40s add in trees and grass... Im sitting in the 30s or even as low as 28 in dense forests. This is am excellent video to pop up the next day to follow up and help with with figuring out my performance.

  • @jrp1021
    @jrp1021 Місяць тому +2

    Can't thank you enough for putting this together. I've spent hours and hours trying to figure out why my performance on even the simplest of scenes is so bad. It's crazy that Epic basically gives you the worst possible performance settings as the default and then buries all of the important features under mountains of config.

  • @Switchpoppy
    @Switchpoppy 2 місяці тому +1

    I think this video covers everything really well. I did some tests with Nanite Foliage with modelled leaves, and performance is gained when you have 300-400 trees on screen. These modelled leaves are using unmasked materials, each tree was about 200K triangles. This optimization is quite a small gain though, a non masked nanite forest would perhaps net you something in the +5fps range for that number of trees.

    • @Filgeck
      @Filgeck  2 місяці тому +1

      Thank you for sharing! I played around recently with modelling grass with no opacity mask (the exact same shape) and didn’t see much improvement (although the overdraw was significantly better). One thing I noticed is that it looked different - it’s as if the grass at a distance wasn’t as dense. I would have never noticed it if I didn’t see how the old grass looked. It’s very minor and I guess shows what Nanite does to small objects behind the scenes

  • @peterallely5417
    @peterallely5417 2 місяці тому

    Holy moley, I’ve been trying to make distant foliage not drop its shadows for months. Thanks dude

  • @Wyano
    @Wyano 16 днів тому

    Amazing tips! Thank you very much for sharing the knowledge!

  • @etienneman
    @etienneman 4 місяці тому +1

    this video is amazing. thank you so much for this. i went from 18fps to 70 lmao.. its amazing. sidenote: i started converting textures. texture by texture. after some time i replayed your video to see that you can select multiple textures :D fml

  • @tonylai6702
    @tonylai6702 6 днів тому

    Which tree packs are you using? They look really great and I want to use for my forest as well

  • @drlorddoom_gaming
    @drlorddoom_gaming 2 місяці тому

    Great way of explaining! Good stuff!

  • @MrZyprez
    @MrZyprez 5 днів тому

    Are you using in your project?

  • @Junior_64_
    @Junior_64_ 4 місяці тому

    Thank you so much, the video is great, just what I needed. You saved me, new subscriber, keep it up.

  • @catherinekondr4740
    @catherinekondr4740 5 місяців тому

    wow, I'm glad I've found your channel! Please do more videos!

  • @Cloroqx
    @Cloroqx 4 місяці тому +3

    Great job!
    Scalability High targets 60FPS, Epic 30FPS on consoles.
    So using High as a basis is the best choice for hitting 60FPS, regardless of platform.
    Lumen Global Tracing uses the Global Mesh Distance Field, while the Detail Tracing also traces against per-mesh Distance Fields.
    For more complex mesh shapes, it can make a big difference.
    The Nanite landscape splitting you were seeing was a bug in 5.4. It is fixed in UE5-main, no idea if it made it into 5.4.4 as well.

    • @alyasVictorio
      @alyasVictorio 2 місяці тому +2

      Oh! Now I get it which graphic type I had to choose (whether be Epic or High); so I'll choose High graphic instead of Epic since my future UE5.5 indie game's art direction will be inspired by Smash Ultimate's cinematics instead of photorealistic

  • @StudioVacant
    @StudioVacant 4 місяці тому

    Excellent video man. Thank you!

  • @gouroux8791
    @gouroux8791 2 місяці тому

    I would only set the shadow cache invalidation behaviour to rigid for small foliage

  • @Josh_Alfaro
    @Josh_Alfaro Місяць тому

    Did you mess around or change your shadow settings in the Ultra Dynamic Sky volume?

  • @MikAlexander
    @MikAlexander 4 місяці тому

    When u enable tessellation you need to make sure its properly set up in shader.

  • @astralstormgamestudios1259
    @astralstormgamestudios1259 Місяць тому

    Can you explain the new pool size system also?

  • @Navhkrin
    @Navhkrin 5 місяців тому +1

    Thanks a lot for sharing!

  • @yashkhd1100
    @yashkhd1100 23 дні тому +1

    Nice..just to clarify you mention you have older 2700x Ryzen but u didn't mention Graphics card you are using...or am I missing something here?

    • @yashkhd1100
      @yashkhd1100 23 дні тому

      My bad..as I go through video I understood u r running 4060. Just wondering by any chance you tested on lower spec graphic cards on say 1080p resolution?

  • @dvogiatzis
    @dvogiatzis 4 місяці тому +1

    Thanks for sharing! I see you are using oceanology as well. Why not Sky Creator instead of UDS? I have both and I was wondering if SC is more optimized than UDS and results to better better fps.

  • @suraj.1889
    @suraj.1889 3 місяці тому

    Would you please consider making a tutorial on weather changes, specially snow?

  • @DarkResidence
    @DarkResidence 4 місяці тому

    Отличный гайд, давно искал эту информацию. Большое спасибо

  • @procentpisz
    @procentpisz Місяць тому

    Thank you for this video, Ive learned few things! Whats the command to increase raytraced shadow distance ?

  • @GamesStudio313
    @GamesStudio313 2 місяці тому +1

    thanks, since my 32GB RAM wasn't enough, I used a 500GB SSD empty hard drive for virtual memory so that I can activate Nanite, that's how it worked for me 😁

    • @diegodegu_yt
      @diegodegu_yt 9 днів тому +1

      how can I enable the ue5 to use the ssd's memory?

    • @GamesStudio313
      @GamesStudio313 8 днів тому

      @diegodegu_yt hi, you first have to go to your windows and click on advanced system settings and then on (Advanced) Then at the bottom click on Visual effects, processor scheduling, memory usage and virtual memory on (Settings) Then click on (Advanced) again then at the bottom click on Change then select a hard drive that is empty preferably then at the bottom click on Custom size: I have set both to 465000 MB

  • @ilyaovtsyn1980
    @ilyaovtsyn1980 5 місяців тому

    thank you, very informative, learned a lot!

  • @pv8685
    @pv8685 3 місяці тому

    insanely helpful!

  • @Artsavel
    @Artsavel Місяць тому

    Hi! Thanks for the great work you've done
    Can you give advice for non-rtx cards?

  • @SurviveOnlyStrong
    @SurviveOnlyStrong 19 днів тому

    Strange that rigid shadows still dynamic for you - for me it makes them completely static for all foliage
    Anyway it doesn't improve performance at all for me if I set WPO culling distance to smaller values

  • @dra6o0n
    @dra6o0n 3 місяці тому +3

    You can turn off nanites and manually set LOD in a few minutes.

  • @graecus33
    @graecus33 4 місяці тому

    Are those speedtree trees?

  • @AA-ev2gz
    @AA-ev2gz 3 місяці тому

    Hi! How did you do the ocean?

  • @jacekb4057
    @jacekb4057 3 місяці тому

    Amazing thank you for that!!

  • @gladiyit6771
    @gladiyit6771 4 місяці тому

    Thank you so much, very interesting video!!!

  • @Jimmy-z6g
    @Jimmy-z6g 2 місяці тому

    How to add is disabling cast shadows on your landscape?

  • @GarfSnacks
    @GarfSnacks 4 місяці тому +1

    I know you mentioned you saw no perf gain from the virtual shadow map distance command, but I'm curious what the command was?

    • @GreenleafVision
      @GreenleafVision 3 місяці тому

      I'm also interested in this command?! Thx

    • @GreenleafVision
      @GreenleafVision 3 місяці тому

      Maybe it's 'r.RayTracing.Culling 0' but I'm not sure...

    • @Filgeck
      @Filgeck  3 місяці тому +1

      @@GreenleafVision FOUND IT! It is r.Shadow.Virtual.Clipmap.LastLevel It goes up to 22, so try setting it to 17-20 depending on your project. Let me know if it improves the performance) The documentation for VSM also mentions this command in case you need more info.

  • @jarnine-d9n
    @jarnine-d9n 4 місяці тому

    This is what turns me of making big amazing looking projects. Is that I'm working with heater for the day, and I feel like it's not doing good for my pc for the long run. Do you think the water body plugin has much of an impact on fps? I notice that it gets my gpu fan running when I drop one in. Thank you for the video.

    • @Fafhrd42
      @Fafhrd42 4 місяці тому +2

      Water plug-in is super expensive in-editor because it creates a whole bunch of rendertargets that it's writing to, but once packaged those textures get saved out and the performance hit isn't as large.

  • @RiverFox_YT
    @RiverFox_YT 3 місяці тому

    Hmm, i have a couple of issue since following this video and changing the project settings. My fps has gone down from 40fps on cinematic settings to 14fps on high settings and i now have a constant message popping up telling me the change the virtual texture pool from transient pools to fixed pools. and no matter what i do the trees in the distance loose all their leaves even though i set it to preserve area. im using world partition by the way

    • @adarshwhynot
      @adarshwhynot 3 місяці тому

      May i know why you are specifically using Cinematic settings mode? It is not intended for games. Even 4090/4080 will struggle when using cinematic settings.Try using Epic settings.

    • @RiverFox_YT
      @RiverFox_YT 3 місяці тому +1

      @@adarshwhynot epic settings was about the same. But I had to revert the changes I made from this video as it made my performance worse

  • @rahulnmahajan7224
    @rahulnmahajan7224 3 місяці тому

    Is that weather blueprint related to ultra dynamic sky?

    • @Filgeck
      @Filgeck  3 місяці тому

      Hey! It's my own blueprint that I use to control UDS/UDW, material parameters (for snow) and wind strength.

  • @eligijuspranskunas3509
    @eligijuspranskunas3509 4 місяці тому

    awesome video

  • @schmutzxD
    @schmutzxD 3 місяці тому

    Hey buddy, I think I've noticed a problem here. It should be the same for you, I think I could see it at some parts of your video. The problem is that the shadows do funky stuff when you get up close to them, this is especially notable when you walk through the scene with a character. Only the very closest shadows are displayed properly, those that are like 5 meters away from you look much different than those that are right below you. When walking through the shadows you can kinda see the zones around you and the shadow updating in a very unclean way, also you can very clearly see the tiles in which the shadow map is generated (I think that is what you see? I'm not sure), resulting in some sort of different, sharp "loading zones" around the player. You can see those "loading zones" when you turn on the view "virtual shadowmaps -> cached page" in the editor (instead of lit/unlit or whatever) very clearly.
    The problem doesn't occur when you disable the World Position Offset of the master material of those trees or whatever is causing the issue. So the movement of the leaves and stuff seems to play a role in this?
    I've followed tons of ChatGPTs suggestions and tried many other things to fix this, but nothing seems to work. Do you have a fix for this? Help would be greatly appreciated!
    Edit: I've uploaded a video of this problem here: imgur.com/a/PlJuPZv
    Edit2: The issue also doesn't appear when you select "Auto" or "Always" for the "Shadow Cache invalidation Behavior". "Always" seems to be slightly more performance friendly than "Auto", but I guess the idea here was to avoid both of those options.

    • @Filgeck
      @Filgeck  3 місяці тому

      Hey! Thats a weird issue. I think mine is not as obvious as yours and when the trees are moving - pages update correctly. Not sure what this is caused by but try looking into increasing VSM pages pool size and texture pool size. If that doesn't help try disabling nanite, lumen and virtual shadow maps to see which one breaks it. Also try different trees from quixel in a new project.

  • @SpicyAl3000
    @SpicyAl3000 4 місяці тому

    Great! Thanks :)

  • @Josh_Alfaro
    @Josh_Alfaro 4 місяці тому

    Awesome! Any chance we could get a tutorial on the forest?

    • @Filgeck
      @Filgeck  4 місяці тому +1

      Thank you! I posted a follow up video showing how I made my forest

    • @Josh_Alfaro
      @Josh_Alfaro 4 місяці тому

      Sweet! Thanks bro! Rare to see all the optimization tips in one video. Very useful

  • @electronscape
    @electronscape 4 місяці тому

    the weather BluePrint!! nice work!

  • @gouroux8791
    @gouroux8791 2 місяці тому

    Great video tho

  • @gladiyit6771
    @gladiyit6771 4 місяці тому

    ty

  • @paytoncool2585
    @paytoncool2585 3 місяці тому

    turn on hardware ray tracing lower my fps a lot ..

  • @gouroux8791
    @gouroux8791 2 місяці тому +1

    Nanite landscape performs worse for most landscape. Don’t use it unless you want tesselation.

  • @Bloodlinedev
    @Bloodlinedev 3 місяці тому +2

    I'd bet a lot that the scene would run much much better with LODs/impostors/instancing...

  • @marci1270
    @marci1270 2 місяці тому +2

    Just disable Nanite and use LODs, then you have the best performance.

  • @chapacubraelderscrollsonli3491
    @chapacubraelderscrollsonli3491 Місяць тому +2

    LOL meanwhile without the crappy nanite technology, the same forest with LOD meshes would perform at 200fps! HAHAHA

    • @benhebert2322
      @benhebert2322 Місяць тому +2

      While true, LODS take time to create and dont do as good of a job as nanite when it comes to blending high to low poly

  • @Shooha_Babe
    @Shooha_Babe 3 місяці тому +3

    ''Ran into problems with optimization''
    Yeah using Nanite thinking its any good for video games. That's the trap...

  • @panjak323
    @panjak323 10 днів тому

    Woah, it still runs and looks worse than modded skyrim.

  • @PostHuman_11
    @PostHuman_11 Місяць тому

    Thank you, this was very helpful!