Unreal Engine Optimization: Hard and Soft References

Поделиться
HTML-код
  • Опубликовано: 19 дек 2024

Комментарии • 21

  • @eduard2630
    @eduard2630 6 месяцев назад +11

    Very good video to introduce ppl to hard/soft references! Great job! Getting rid of hard references is actually a must practice for commercial projects.
    One thing I'd like to point out, Async tasks are not actually slow, the problem with them, or rather a thing to take into consideration, is that the resource loading starts when the task is called, which may take a number of frames instead of immediate result. And the clock icon means exactly, that it's an Async action, so it cannot be called from inside the blueprint functions, but only from the event graph.

    • @UnrealDystopia
      @UnrealDystopia  6 месяцев назад +2

      Thank you my friend

    • @KB-kp2oz
      @KB-kp2oz 5 месяцев назад

      No. The clock doesn't specifically mean it's an async operation. Clocks exists on delays and many other nodes. Are you saying a delay node is an async operation? Of course you are, you just said the clock means it's async. No. It just means its a timed execution. Go read some more Unreal docs if you know how to read.

    • @shirotonbo6315
      @shirotonbo6315 5 дней назад

      ​@@KB-kp2oz
      Thanks for elaboration but kindly chill sir he didnt mean it

  • @doctormohamedabduls8848
    @doctormohamedabduls8848 5 месяцев назад +3

    Wow... Really fantastic.. especially for a beginner like me

  • @RomanTimm
    @RomanTimm 5 месяцев назад +2

    Thank you for showing this!
    But what I don't understand is why Async load is slow? By async to my understanding it does the operation on a different thread than the main thread correct? So it might take time but it won't affect FPS, no?
    Thank you again.

    • @UnrealDystopia
      @UnrealDystopia  4 месяца назад +1

      I won't be able to answer correctly to this question sorry 😔

    • @guilhermerover7296
      @guilhermerover7296 21 день назад

      I think it depends. It can be slow because you are doing multiple things at the same time, so it costs more processing, so can cause trobble to you if your game is not optimized. I think it is irrelevant if you are using this in a chill moment for processing things like in a single player combat with low number of enemies and low cost of AI processing, maybe can be more faster casting in async mode because is things at the same time and is not waiting a sequence of process. But its another thing if you are in a mmorpg for exemple, with massive things happening at the same time.

  • @nikwalz3429
    @nikwalz3429 7 месяцев назад +1

    This is a very good video :-) Thanks for all the information!

  • @guilhermerover7296
    @guilhermerover7296 21 день назад

    Correct me if I am wrong, with soft references you are saving RAM space using CPU processing spawning and destroying the actor, using the RAM just when the actor is spawned and in use, right?
    So, this is usefull for actor that need to exist just in "rare" moments, like a granade that you have a limited uses and don't use with frequence, that's right?

  • @elganzandere
    @elganzandere 7 месяцев назад +3

    You need to toggle the "Size to Display" option in the Size Map from *Disk* to *CPU/Memory*.
    The data you're displaying in this video is an inaccurate reference for Memory Usage.

    • @UnrealDystopia
      @UnrealDystopia  7 месяцев назад

      Thanks for you contribution

    • @KB-kp2oz
      @KB-kp2oz 5 месяцев назад

      ​@@UnrealDystopiasince the commenter didn't tell you why because they probably don't know exactly why they just know it works I'm going to tell you why they said what they said. Disk is just going to show you how large your project is on disc. How much space on disk is being used by your project assets, which can be compressed. CPU memory is showing you the memory that's actually loaded in your project. Uncompressed. Run time.
      This is why you use the CPU memory for the situation that you're displaying.

  • @Veluc1f3r
    @Veluc1f3r 16 дней назад +2

    Casting is an unhealthy practice, use interfaces instead..

  • @duffahl
    @duffahl 9 месяцев назад

    bro what version ue is this?

    • @UnrealDystopia
      @UnrealDystopia  9 месяцев назад +1

      unreal engine 4 but works fin on unreal engine 5