Why is unity so slow!

Sdílet
Vložit
  • čas přidán 7. 07. 2024
  • Ever wonder what that loading bar is actually doing?
    Visit:
    www.ko-fi.com/jasonstorey
    To join the discord!
    ----------
    00:00 - Introduction
    00:12 - Exploring the Unity Project Directory
    00:28 - Understanding Script Assemblies
    01:16 - Examining Assembly-CSharp.dll
    02:00 - Multiple Assembly-CSharp.dll Files
    04:08 - Using Assembly Definitions
    04:51 - Improving Workflow with External Building
  • Jak na to + styl

Komentáře • 195

  • @thomasbrush
    @thomasbrush Před 2 lety +138

    Jason Storey! You've grown so much. Perfect voice, look and skill to be a CZcams dev! nice camera and lighting too.

  • @JimBob652
    @JimBob652 Před 2 lety +96

    I can't believe you left it on a cliff-hanger! I sat through this going "yes, yea the pain, yup." and I thought you was going to show the magical solution, but nope instead "catch you on the next one" lmao. Over all great video, and I'm so looking forward to the next video :)

    • @Morphexe
      @Morphexe Před rokem +17

      Guess there won't be a next video ahahah

    • @abulak3477
      @abulak3477 Před rokem +7

      feels familiar oh yes unity promises

    • @Unexplained65
      @Unexplained65 Před rokem +6

      @@Morphexe his next videos were completely unrelated.. :/

    • @Morphexe
      @Morphexe Před rokem +4

      @@Unexplained65 sadly it seems it was all empty promises. Had potencial.

    • @tPlayerioT
      @tPlayerioT Před rokem

      same lol.

  • @InfallibleCode
    @InfallibleCode Před 2 lety +92

    Using games built in Unity to demonstrate this topic is brilliant. Another great video, Jason! I'm on the edge of my seat waiting for the next one :D

    • @handleneeds3charactersormore
      @handleneeds3charactersormore Před rokem +3

      not sure you will read this but I used to love your videos, always chill + concise and to the point. but then they became poorly acted telenovelas and that made me left. It truly felt like you didn't care at all about the viewer's time but rather the view time and you were just looking for ways to pad out your video length. total opposite of old school infallible code

    • @googleuser4720
      @googleuser4720 Před rokem +6

      Its been a year... Well.. We're waiting!

    • @karolpadiasek5461
      @karolpadiasek5461 Před 11 měsíci

      @@googleuser4720 yup, still waiting ;)

  • @GameDevGuide
    @GameDevGuide Před 2 lety +18

    Great work pal! This is an excellent supplement to the Assembly Definitions video I made, and goes into more technical detail about what's ACTUALLY happening and why. Love it. Will be sharing this on the Discord.

  • @mrvastayan
    @mrvastayan Před 2 lety +13

    You forgot to do the next video!

  • @NicolasFrugoni1
    @NicolasFrugoni1 Před 2 lety +2

    Great explanations! Love that you finally have your channel and are uploading content!!

  • @georgeaggelopoulos7791
    @georgeaggelopoulos7791 Před 2 lety +7

    Great content: explaining perfectly, in 5 minutes, a simple but extremely helpful concept/tip. Thank you.

  • @MarkeMarkXYZ
    @MarkeMarkXYZ Před 2 lety +11

    While I already knew how to do this, I don't know why I didn't understand the significance of it until Jason explains it in such a clear way. Keep this content coming Jason, it is pure gold.

  • @TopShelfCookieJar
    @TopShelfCookieJar Před 2 lety +3

    The explanation was great, but combining it with some simple worked examples really helped cement it in my brain. Thank you!

  • @mattsponholz8350
    @mattsponholz8350 Před 2 lety +2

    Look at you casually optimizing EVERYTHING!!!
    Thank you and looking forward to your next video 😄

  • @BigRookDigital
    @BigRookDigital Před 2 lety +1

    Great info, keep it coming! This hits home as Unity inefficiencies have always been a big nightmare.

  • @AlexBlackfrost
    @AlexBlackfrost Před 2 lety +1

    Great video! Looking forward to the next one.

  • @rsmith6894
    @rsmith6894 Před 2 lety

    Very useful , Short and sweet. Keep the coming please.

  • @ZloyDinozavrik
    @ZloyDinozavrik Před 2 lety

    This one is a cool topic scratcher video! Looking forward to check out the next one!

  • @jorhoto7064
    @jorhoto7064 Před 2 lety +1

    Great info, can't wait for next video!
    Thank you!!

  • @christinaVennegerts
    @christinaVennegerts Před 2 lety

    Great Video. You have an amazing style to explain concepts so even I as a beginner don't feel lost. Great Timing and thank you for not hurrying along. I'm hoping to see many more Videos :)

  • @jsn4591
    @jsn4591 Před 2 lety

    Stoked to see you've got your own channel!

  • @twistedliverstudio
    @twistedliverstudio Před 2 lety

    Oh man the cliff hanger... good stuff waiting on next video. @Jason Storey keep the content coming this is great.

  • @Cameo221
    @Cameo221 Před 2 lety +4

    Awesome video; I've always used assembly definition assets, but this video reinforces my motivation to use them and gained a deeper understanding. Very cool :D

  • @PitiITNet
    @PitiITNet Před 2 lety

    Thanks for covering that! Fantastic video! Every time I see one of your videos I learn something new :).

  • @MarekNijaki
    @MarekNijaki Před 2 lety +1

    Pretty short but useful. Keep that good work 😃

  • @ewwitsantonio
    @ewwitsantonio Před 2 lety +4

    This is SUCH good content. Thank you, thank you, thank you!

  • @mad_man_86
    @mad_man_86 Před rokem +1

    Short and sweet tutorial, thank you! I would love to see that "next video" though ;D

  • @Jerkovic74
    @Jerkovic74 Před 2 lety

    Very good stuff! Keep it up Jason.

  • @jauntybear
    @jauntybear Před 2 lety +1

    Excellent content and production quality thanks

  • @CCV334
    @CCV334 Před 2 lety

    Subscribed and excited for the implementation in the next video!

  • @jacobboyce7687
    @jacobboyce7687 Před 2 lety

    Beautiful video. Explanations are great. Keeping it short helps with attention span. Great content man keep it up :)

  • @CodemasterJamal
    @CodemasterJamal Před 2 lety +1

    I definitely need to re-arrange some things in my project. This tutorial was awesome. I think this is why it takes my game so long to compile itself.

  • @Immudelki
    @Immudelki Před rokem +3

    Great video

  • @Rovsau
    @Rovsau Před 2 lety +1

    This is exactly what I didn't know I needed.
    Been searching for something like this for a long time.
    From the depths of my brackets, I.Thank(You);

  • @CG_CAKE
    @CG_CAKE Před 2 lety

    Jason Great video , I saw you on the stream of Jason Weimann , and we met inside the arena Giveaway as well that day haha Thx again for great tutos and advises.

  • @ArnoVai
    @ArnoVai Před 2 lety

    Looking forward to the next video!

  • @shadowblaster124
    @shadowblaster124 Před 2 lety

    I never would have known this. I wouldn't have known it was a problem, nor how to look online for a solution. Thank you!

  • @philberex
    @philberex Před rokem

    Thank you for this informative video Jason.

  • @farahzehra8952
    @farahzehra8952 Před 10 měsíci

    Thank you for creating this video and improving our knowledge!

  • @MarcV_IndieGameDev
    @MarcV_IndieGameDev Před 2 lety +2

    I'll be waiting for the next one! This may help all newbs(myself included) out there save hours and hours of waiting to recompile, cheers for this! Much appreciated.

  • @KyranFindlater
    @KyranFindlater Před 2 lety

    great stuff mate! keep it up!

  • @LackingGumption
    @LackingGumption Před 2 lety +1

    you are the best. I was talking to a friend the other day complaining about my slow computer needing to refresh the assemblies everytime before testing my games. I had no idea this was possible. thank you so much for being a god at what you do :D

  • @rickloyd8208
    @rickloyd8208 Před 2 měsíci +1

    OMG and you have never created a video explaining how to compile it and put it in Unity directory. I am using separate assemblies but your solution seems to be even faster than that. At least you mentioned few keywords and I know in which direction to continue research! THANK YOU!

  • @skillitronic9596
    @skillitronic9596 Před 2 lety

    Thank you for the content, you do a great job covering such topics. I hope you will make more similar videos (medium level)

  • @flaviokonti5522
    @flaviokonti5522 Před 2 lety

    Thanks very informative, waiting for next video

  • @hotroddd1
    @hotroddd1 Před 2 lety

    Really like this. Thank you.

  • @Stagg86
    @Stagg86 Před 8 měsíci

    Great video! Thank you!

  • @humadi2001
    @humadi2001 Před 2 lety +1

    We’re waiting for the next video!

  • @Morphexe
    @Morphexe Před 2 lety +1

    Just found this gem of a channell! Nice job covering some real pain points of unity! When is the next video coming ? :) I find that topic quite interesting and would love to see how you do it!
    Good Job!

  • @ceroenblanco
    @ceroenblanco Před rokem

    Things I didn't know I needed to know after 6 years using Unity. You got my sub.

  • @lewaplay
    @lewaplay Před 2 lety

    That's a pretty clear explanation, thank you

  • @MohammadFaizanKhanJ
    @MohammadFaizanKhanJ Před 2 lety

    Scientific json with mind-blowing video after a long time! Thanks

  • @zeroone8548
    @zeroone8548 Před 2 lety +1

    cant wait for next video ;p

  • @axelman145
    @axelman145 Před 2 lety

    Soo looking forward to what you have to say on the DLL thing!:))

  • @EskildAnd
    @EskildAnd Před 2 lety

    Can't wait for the next one :)

  • @Ari-ez1vj
    @Ari-ez1vj Před 2 lety

    what a phenomenal video

  • @Eclipsed_Archon
    @Eclipsed_Archon Před 2 lety

    Best channel on CZcams for this kind of content!

  • @nocultist7050
    @nocultist7050 Před 2 lety +1

    Thanks Json. I'll hold my breath for next video.

  • @Danningt0n
    @Danningt0n Před 2 lety +3

    Loading bar is almost as slow as your upload schedule! 🙃
    Looking forward to the next tutorial! 🍿

  • @shariarpapaon5305
    @shariarpapaon5305 Před 2 lety

    for some reason I just feel like this knowledge just instantly made my unity skills go up significantly.. This adds so much flexibility and actually the fact I know what really goes on behind my scripts.

  • @filipathtc
    @filipathtc Před 2 lety

    Thank you Jason!

  • @BagarraoEduardo
    @BagarraoEduardo Před rokem +6

    Awesome content Jason! When the part 2 of this video will be available?

  • @allanmacdonald2943
    @allanmacdonald2943 Před 2 lety

    awesome stuff, thanks!

  • @CornRecords972
    @CornRecords972 Před 2 lety

    This was incredibly educational

  • @RichardTongeman
    @RichardTongeman Před 2 lety

    Thanks! this is such good knoweldge

  • @frederickfreund1957
    @frederickfreund1957 Před 2 lety

    Thank you for the nice explanation :D

  • @eaglenebula2172
    @eaglenebula2172 Před 2 lety +1

    Coming right before the important part and not actually doing it even almost a whole year later, great.. super helpful...

    • @JasonStorey
      @JasonStorey  Před 2 lety +1

      Sorry, had some life stuff come up. Have a full refund.

    • @eaglenebula2172
      @eaglenebula2172 Před 2 lety

      @@JasonStorey 😂
      Tbf I'm frustrated at the script change iteration time nothing more :(

  • @supertenchoo4271
    @supertenchoo4271 Před 2 lety

    This is Expert Info Great Video

  • @81gamer81
    @81gamer81 Před rokem +3

    We need the next video!
    Think you said it once in other Jasons stream a while back how to make your own dll the proper way.
    Though it was just my computer being old, but even on my new NVME SSD unity is slow to build even when usng assembly defenition

  • @OldM8
    @OldM8 Před rokem +5

    Still waiting for that next video :) :) :)

  • @veganmonter
    @veganmonter Před 2 lety +5

    I admit, I should be looking under the hood more than I do. I treat Unity like a tool, don't care what engine it has, as long as it gets me to my goal. However, I know if I learned more on how it works, I would improve my overall results.
    Also, thanks again Storey! Love what you're adding to the community.

  • @pixelb0i255
    @pixelb0i255 Před 2 lety

    OMFG! Thank you.

  • @jeniferirwin
    @jeniferirwin Před 2 lety +6

    I love assembly definitions. I've been using them since IC covered them and I find it to be a really pleasing way to organize things. I haven't yet built a project that is big enough to really have a noticeable change in compile times, but I'm glad to know that I'll be easily taking advantage of the shorter compile times when I *do* make a big project, because I'm already in the habit of making assembly definitions.
    It's kinda cool that we can pretty easily identify what games were built in Unity because of the Assembly-CSharp thing! I always love learning that a game has been made in Unity because that means I can look at it and say 'I can make something like this happen if I put my mind to it.'

    • @handleneeds3charactersormore
      @handleneeds3charactersormore Před rokem

      man here explaining how this issue hurts iteration processes and you come up with compile times 💀💀💀

  • @alextreme98
    @alextreme98 Před 2 lety

    Lmao, never thought of this. Thanks for this sneak peek behind the scenes.

  • @syedzainulabedin93
    @syedzainulabedin93 Před rokem

    Thank you!

  • @jeffmccloud905
    @jeffmccloud905 Před 2 lety +3

    great video. been using C# and VS for 20 years, so separate DLLs, references, namespaces, etc. are second nature to me. but when I got into Unity, it seemed confusing and limited. this is a strange little method to make separate DLLs but this practice should be much more common. Example: if you need to patch the network code in your game. If your network logic is in its own assembly, your patch might only need to distribute that one small DLL.

  • @YAS-vm8ko
    @YAS-vm8ko Před 2 lety +1

    You save our time! I am a newbie dev, I don't know doing this could break unity or not, but I will try it. You are such an amazing developer.
    Edit: Looking for the next video.

  • @The-devllopperBlogspot

    Thank you

  • @newf_gg1230
    @newf_gg1230 Před 2 lety

    Yo nice follow up video man, real fuckin sick.

  • @darryljf7215
    @darryljf7215 Před 2 lety +5

    This is a long loading time for the next video ... :)

  • @HexPlays
    @HexPlays Před rokem +3

    next video on this please jason!

  • @yusuferoglu9287
    @yusuferoglu9287 Před 2 lety

    Perfect!!!

  • @micaiahstevens8840
    @micaiahstevens8840 Před 2 lety

    I finished that dll process months ago, but CAN"T wait to see how you do it. Great series of videos so far. I don't remember if I saw you anywhere else, but your solo videos are working out soo much better.
    I would LOVE a video on Marvin, and that other project manager one. Obsidian. I think I get obsidian, since its free'ish. BUt 'amazing' Marvin, the one I found was paid. So WOULD love a break down and more real life how you do it vs their help project. AND how you setup windows desktops. I think I could do the desktops, but a quick overview would rock!
    AND do you have a better work flow for your tags, html, mark up code for Obsidian. LIKE how you built that, HOW to replace default unity scripts. I need that level of documentation, but easy to look up. Was looking like a nice html webpage, but was in Obsidian I gather.

  • @x364
    @x364 Před 2 lety

    Very informative! Thank you!
    Had a bit of trouble with with importing Cinemachine but that's easily fixable by adding an Assembly Definition Reference for `com.unity.cinemachine`.

  • @karelmarek5984
    @karelmarek5984 Před 2 lety +2

    Hype! Can we expect that if we do it ourselves, it can be much faster than the Unity way?

  • @Hassher34985
    @Hassher34985 Před 2 lety

    I'm looking forward for the next video, my game go crazy 20 seconds after pressing play

  • @paulehigie9879
    @paulehigie9879 Před 2 měsíci

    Amazing

  • @MoogieSRO
    @MoogieSRO Před 2 lety +5

    Did he never make the follow-up video to this? Talk about bait-n-switch!

  • @maroso_
    @maroso_ Před 2 lety

    Nice videos

  • @rohitaug
    @rohitaug Před 2 lety +30

    This seems really cool. If I understand correctly, creating assembly definitions allows you to compile scripts into separate DLLs so that when a change is made to a script only the associated DLL needs to be recompiled instead of the entire Unity project. If that is the case, I'm confused as to why you would need to build the DLLs manually instead of letting Unity handle it. Does Unity rebuild all DLLs in the project by default each time? That seems like it would defeat the purpose of assembly definitions.

    • @pliniomourao
      @pliniomourao Před 2 lety +2

      Good question.

    • @Belliger1991
      @Belliger1991 Před 2 lety +1

      Depends on what is the default assembly definition, it seams to automaticly create a new unique assembly so nothing breaks, most likely with a hash as name and afterwards links it in.
      If you write you own it is fixed as well so it should partly resolve the issue. (Plugins will not adhere and still clutter it up over time)
      But if you build external you can make shure all changes are covered in this newway with no leftovers cluttering it up :)

  • @homemacai
    @homemacai Před 2 lety

    Cool!

  • @roxforgegames4548
    @roxforgegames4548 Před 11 měsíci

    Jason, this channel has a lot of potential. Come back!

  • @Gyozamang
    @Gyozamang Před rokem +7

    it's sad he just stopped this channel had crazy good potential and he had a really good view count too. I don't know why you'd dump a channel doing so well

    • @karpai5427
      @karpai5427 Před 10 měsíci

      because he does not want to share his secret of building the game, because someone else may finish a video game before him.

  • @albertmontagutcasero2129
    @albertmontagutcasero2129 Před 2 lety +1

    Awesome video, Jason, I'm following your videos. I am trying to work similar, decoupling the business logic from the technologies like unity. I would appreciate a video explaining how to separate this layers correctly. For example, when we are programming a Mario game, the Mario model can't have vectors or use the engine tools like physics checks. Also, are x and y coordinates part of the business part? If they are used to calculate things, maybe yes. But if it's just for rendering in the screen, maybe not. How do you decide it?. My approach would be having a unity class (MarioUnity) and then the Model (that is testable, etc). Works fine, but the logic is split into the infrastructure layer and the business layer. It has benefits, but it's not perfect. It would mean the world if you could answer this. Thank you. :)

  • @albertluna1001
    @albertluna1001 Před 2 lety +2

    I really hope you do the next step in the next video to learn how to do it

  • @nicholasricher8840
    @nicholasricher8840 Před 2 lety +1

    Woah! Cliffhanger!!

  • @ROCKSMASHER
    @ROCKSMASHER Před měsícem

    Thanks

  • @Asylum3D
    @Asylum3D Před rokem

    Agreed. I have been making a huge game for a few years. Assembly Def's are a life saver. It takes to long to recompile everything every time. More time coding, less time waiting.

  • @akioasakura3624
    @akioasakura3624 Před rokem

    Goat channel, when 100k subs?

  • @loizosrr
    @loizosrr Před rokem

    Bro wtf you discovered ! Very nice tip!

    • @useijin
      @useijin Před rokem +1

      Assemblies have always existed in Unity, but I believe that assembly definition exists since Unity 2017.3. The thing is that it is a recent feature and nowadays is a must to know. Assembly definition is extremely powerful in any type of projects. The important mindset is to achieve greater efficiency and reusable code in less time. Keep bless.

  • @elmagnifico9667
    @elmagnifico9667 Před rokem +1

    I installed unity 2 days ago and it takes 10+ minutes to load a core 2D project, anyway to speed it up? My pc is i5, 8gb ram, 2gb nvidia 820m any suggestions?

  • @Cyberfoxxy
    @Cyberfoxxy Před rokem

    i also noticed that versions 2019 + seem to show the compile loading bar twice.

  • @Arab_GameDev
    @Arab_GameDev Před rokem

    thanks a looooot

  • @krishnansubramoni7801
    @krishnansubramoni7801 Před 2 lety

    Literally waiting for my Unity to finish importing stuff for the 3rd time, while watching this. 😂🧡