Why is unity so slow!

  Рет қаралды 72,617

Jason Storey

Jason Storey

Күн бұрын

Пікірлер: 203
@GameDevGuide
@GameDevGuide 3 жыл бұрын
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.
@thomasbrush
@thomasbrush 3 жыл бұрын
Jason Storey! You've grown so much. Perfect voice, look and skill to be a KZbin dev! nice camera and lighting too.
@InfallibleCode
@InfallibleCode 3 жыл бұрын
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 2 жыл бұрын
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 Жыл бұрын
Its been a year... Well.. We're waiting!
@karolpadiasek5461
@karolpadiasek5461 Жыл бұрын
@@googleuser4720 yup, still waiting ;)
@NicolasFrugoni1
@NicolasFrugoni1 3 жыл бұрын
Great explanations! Love that you finally have your channel and are uploading content!!
@JimBob652
@JimBob652 3 жыл бұрын
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 2 жыл бұрын
Guess there won't be a next video ahahah
@abulak3477
@abulak3477 2 жыл бұрын
feels familiar oh yes unity promises
@Meithighs
@Meithighs 2 жыл бұрын
@@Morphexe his next videos were completely unrelated.. :/
@Morphexe
@Morphexe 2 жыл бұрын
@@Meithighs sadly it seems it was all empty promises. Had potencial.
@tPlayerioT
@tPlayerioT Жыл бұрын
same lol.
@TopShelfCookieJar
@TopShelfCookieJar 3 жыл бұрын
The explanation was great, but combining it with some simple worked examples really helped cement it in my brain. Thank you!
@CG_CAKE
@CG_CAKE 3 жыл бұрын
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.
@georgeaggelopoulos7791
@georgeaggelopoulos7791 3 жыл бұрын
Great content: explaining perfectly, in 5 minutes, a simple but extremely helpful concept/tip. Thank you.
@rickloyd8208
@rickloyd8208 8 ай бұрын
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!
@mattsponholz8350
@mattsponholz8350 3 жыл бұрын
Look at you casually optimizing EVERYTHING!!! Thank you and looking forward to your next video 😄
@Immudelki
@Immudelki Жыл бұрын
Great video
@mrvastayan
@mrvastayan 2 жыл бұрын
You forgot to do the next video!
@math_music99
@math_music99 4 ай бұрын
kzbin.info/www/bejne/m6DZm5VrrdNrr5I
@MarkeMarkXYZ
@MarkeMarkXYZ 3 жыл бұрын
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.
@LackingGumption
@LackingGumption 2 жыл бұрын
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
@Rovsau
@Rovsau 2 жыл бұрын
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);
@mad_man_86
@mad_man_86 2 жыл бұрын
Short and sweet tutorial, thank you! I would love to see that "next video" though ;D
@jorhoto7064
@jorhoto7064 3 жыл бұрын
Great info, can't wait for next video! Thank you!!
@twistedliverstudio
@twistedliverstudio 3 жыл бұрын
Oh man the cliff hanger... good stuff waiting on next video. @Jason Storey keep the content coming this is great.
@OldM8
@OldM8 2 жыл бұрын
Still waiting for that next video :) :) :)
@ewwitsantonio
@ewwitsantonio 3 жыл бұрын
This is SUCH good content. Thank you, thank you, thank you!
@BigRookDigital
@BigRookDigital 3 жыл бұрын
Great info, keep it coming! This hits home as Unity inefficiencies have always been a big nightmare.
@CodemasterJamal
@CodemasterJamal 3 жыл бұрын
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.
@larryd9577
@larryd9577 2 жыл бұрын
Where is the promised video on automation of unity dll building and attaching?
@AlexBlackfrost
@AlexBlackfrost 3 жыл бұрын
Great video! Looking forward to the next one.
@jsn4591
@jsn4591 3 жыл бұрын
Stoked to see you've got your own channel!
@ZloyDinozavrik
@ZloyDinozavrik 2 жыл бұрын
This one is a cool topic scratcher video! Looking forward to check out the next one!
@Dyornos
@Dyornos 2 жыл бұрын
Where is the next video? This has been up for 6 months but no next video..?
@ceroenblanco
@ceroenblanco Жыл бұрын
Things I didn't know I needed to know after 6 years using Unity. You got my sub.
@eaglenebula2172
@eaglenebula2172 2 жыл бұрын
Coming right before the important part and not actually doing it even almost a whole year later, great.. super helpful...
@JasonStorey
@JasonStorey 2 жыл бұрын
Sorry, had some life stuff come up. Have a full refund.
@eaglenebula2172
@eaglenebula2172 2 жыл бұрын
@@JasonStorey 😂 Tbf I'm frustrated at the script change iteration time nothing more :(
@AgostinhoRenner
@AgostinhoRenner 2 жыл бұрын
Where is the second part? D=
@jauntybear
@jauntybear 3 жыл бұрын
Excellent content and production quality thanks
@MarekNijaki
@MarekNijaki 3 жыл бұрын
Pretty short but useful. Keep that good work 😃
@MarcV_IndieGameDev
@MarcV_IndieGameDev 3 жыл бұрын
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.
@Cameo221
@Cameo221 3 жыл бұрын
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 2 жыл бұрын
Thanks for covering that! Fantastic video! Every time I see one of your videos I learn something new :).
@shadowblaster124
@shadowblaster124 3 жыл бұрын
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!
@shariarpapaon5305
@shariarpapaon5305 2 жыл бұрын
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.
@rsmith6894
@rsmith6894 3 жыл бұрын
Very useful , Short and sweet. Keep the coming please.
@Jacob___THE_Jacob
@Jacob___THE_Jacob 3 жыл бұрын
Beautiful video. Explanations are great. Keeping it short helps with attention span. Great content man keep it up :)
@CCV334
@CCV334 3 жыл бұрын
Subscribed and excited for the implementation in the next video!
@BagarraoEduardo
@BagarraoEduardo 2 жыл бұрын
Awesome content Jason! When the part 2 of this video will be available?
@christinaVennegerts
@christinaVennegerts 2 жыл бұрын
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 :)
@HexPlays
@HexPlays 2 жыл бұрын
next video on this please jason!
@nocultist7050
@nocultist7050 3 жыл бұрын
Thanks Json. I'll hold my breath for next video.
@humadi2001
@humadi2001 3 жыл бұрын
We’re waiting for the next video!
@YAS-vm8ko
@YAS-vm8ko 2 жыл бұрын
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.
@81gamer81
@81gamer81 2 жыл бұрын
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
@Jerkovic74
@Jerkovic74 3 жыл бұрын
Very good stuff! Keep it up Jason.
@Morphexe
@Morphexe 2 жыл бұрын
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!
@MohammadFaizanKhanJ
@MohammadFaizanKhanJ 3 жыл бұрын
Scientific json with mind-blowing video after a long time! Thanks
@yousefal-hadhrami7853
@yousefal-hadhrami7853 2 жыл бұрын
Where is the next video?
@Danningt0n
@Danningt0n 3 жыл бұрын
Loading bar is almost as slow as your upload schedule! 🙃 Looking forward to the next tutorial! 🍿
@googleuser4720
@googleuser4720 Жыл бұрын
Wheres part 2?
@Eclipsed_Archon
@Eclipsed_Archon 2 жыл бұрын
Best channel on KZbin for this kind of content!
@veganmonter
@veganmonter 3 жыл бұрын
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.
@darryljf7215
@darryljf7215 2 жыл бұрын
This is a long loading time for the next video ... :)
@pszznm
@pszznm 3 жыл бұрын
Hype! Can we expect that if we do it ourselves, it can be much faster than the Unity way?
@axelman145
@axelman145 2 жыл бұрын
Soo looking forward to what you have to say on the DLL thing!:))
@earthinvader3517
@earthinvader3517 3 жыл бұрын
The issue is when you place you code in external DLL (not the assembly definition way), you lost the stacktrace line number information. I used this approach before and when an error occurs inside a function from the DLL, I could not know the exact line that raise the exception. The time to to track the issue in this case could exceed the compile time. ( My project is not huge so my compile time is not very long so I simply prefer to put my code in the project). It doesn't mean its not worth putting code in external dll. Some hard to change stable codes could be extracted to DLL to help a bit.
@JasonStorey
@JasonStorey 3 жыл бұрын
Did you delete the PDB file that was included with your debug build? That is what it is for. It maintains stack trace information for debugging into dlls. It also wont be created for you if you build in release mode as it assumes... you are releasing.
@earthinvader3517
@earthinvader3517 3 жыл бұрын
@@JasonStorey I did copy paste the PDB alongside the debug DLL but don't know why the stacktrace show line 0 for all stack frames. It was so frustrating and I gave up. Anyway, thanks for the reply. Really didn't expect that. Looking forward to your next video.
@philberex
@philberex Жыл бұрын
Thank you for this informative video Jason.
@ArnoVai
@ArnoVai 3 жыл бұрын
Looking forward to the next video!
@yogiwp_
@yogiwp_ Жыл бұрын
Was there a follow up on this video?
@0xF81
@0xF81 Жыл бұрын
Where is that next video? Where is the link?
@skillitronic9596
@skillitronic9596 3 жыл бұрын
Thank you for the content, you do a great job covering such topics. I hope you will make more similar videos (medium level)
@jeniferirwin
@jeniferirwin 3 жыл бұрын
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 2 жыл бұрын
man here explaining how this issue hurts iteration processes and you come up with compile times 💀💀💀
@jeffmccloud905
@jeffmccloud905 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.
@Varelze
@Varelze 2 жыл бұрын
Is the next video still coming?
@roxforgegames4548
@roxforgegames4548 Жыл бұрын
Jason, this channel has a lot of potential. Come back!
@alextreme98
@alextreme98 2 жыл бұрын
Lmao, never thought of this. Thanks for this sneak peek behind the scenes.
@flaviokonti5522
@flaviokonti5522 3 жыл бұрын
Thanks very informative, waiting for next video
@farianderson168
@farianderson168 Жыл бұрын
still looking for the next video :(
@KyranFindlater
@KyranFindlater 3 жыл бұрын
great stuff mate! keep it up!
@lewaplay
@lewaplay 3 жыл бұрын
That's a pretty clear explanation, thank you
@pliniomourao
@pliniomourao 3 жыл бұрын
Where's the next video? i'm going crazy.
@pixelart0124
@pixelart0124 11 ай бұрын
Your next video talks about Software Architecture. Did you ever end up making the assembly video, as you mentioned at the end of this video?
@zeroone8548
@zeroone8548 3 жыл бұрын
cant wait for next video ;p
@Cyberfoxxy
@Cyberfoxxy Жыл бұрын
i also noticed that versions 2019 + seem to show the compile loading bar twice.
@BillyBenz
@BillyBenz 2 жыл бұрын
After using it for few years, I concluded that You got to have a rocket science super computer in order to use Unity smoothly 😂
@hotroddd1
@hotroddd1 2 жыл бұрын
Really like this. Thank you.
@albertluna1001
@albertluna1001 3 жыл бұрын
I really hope you do the next step in the next video to learn how to do it
@Ari-ez1vj
@Ari-ez1vj 3 жыл бұрын
what a phenomenal video
@DeathxStrike18
@DeathxStrike18 2 жыл бұрын
wheres this next video lol
@midniteoilsoftware
@midniteoilsoftware 3 жыл бұрын
I tried adding assembly definitions to my game and got a ton of "type or namespace missing errors." For example, it no longer liked the TMPro using statements.
@cognos23
@cognos23 2 жыл бұрын
You have to select your assembly and add in section 'Assembly Definition References' your dependecies, for example your TextMeshPro should be named like unity.TextMeshPro.dll. Don't forget to hit apply on the bottom. Afterwards the change is active and the compiler errors should disappear.
@FileTh1rt3en
@FileTh1rt3en 2 жыл бұрын
@@cognos23 What about finding the name of an assembly definition that isn't named the same as it's namespace, like StarterAssets?
@cognos23
@cognos23 2 жыл бұрын
@@FileTh1rt3en I have not come across this particular case yet. However, if you select a C# file in Unity, you can see the DLL name under 'Assembly Information'.
@rohitaug
@rohitaug 3 жыл бұрын
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 3 жыл бұрын
Good question.
@Belliger1991
@Belliger1991 2 жыл бұрын
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 :)
@edez6177
@edez6177 8 ай бұрын
but this happened to me when i update, i mean i was in the 2019 version and i was okay, I never got this "reload script assemblies" bar, but when i update to 2021 version this bar appears to me every time i do something
@elmagnifico9667
@elmagnifico9667 Жыл бұрын
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?
@CornRecords972
@CornRecords972 2 жыл бұрын
This was incredibly educational
@3dsmaxrocks699
@3dsmaxrocks699 2 жыл бұрын
Why does unity say reload script assemblies on play every time?
@EskildAnd
@EskildAnd 3 жыл бұрын
Can't wait for the next one :)
@Hassher34985
@Hassher34985 3 жыл бұрын
I'm looking forward for the next video, my game go crazy 20 seconds after pressing play
@KinTsume
@KinTsume 2 жыл бұрын
10 minutes ago I waited 30 minutes to unity finish compiling and it doens't '-' I have to close the editor on the task manager
@supertenchoo4271
@supertenchoo4271 3 жыл бұрын
This is Expert Info Great Video
@jtmcfarland3512
@jtmcfarland3512 11 ай бұрын
Will we ever get the second half? Kinda hard to utilize at my level of inexperience only with part 1. 😅
@DeepWorksStudios
@DeepWorksStudios 11 ай бұрын
I agree
@rickloyd8208
@rickloyd8208 2 ай бұрын
I gave it a try to manually compile assemblies from Visual Studio and also I had to use Editor script, which was monitoring files for changes to make Unity reload. It was faster than auto compile in Unity but I give up because you had to disable asset reload done by Unity and there was a chance that you forget about it and spend hours, searching for a bug, while all problems was caused by cached assembly. As for now, 1-3 sec delay seems to be the best way. Also, I am thinking to split code between logic and UI. The first one can be tested within Visual Studio using test. Oh and tried JetBrains which allows you to test Unity within its own editor but it has way too much bugs, critical for my workflow.
@Gyozamang
@Gyozamang 2 жыл бұрын
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 Жыл бұрын
because he does not want to share his secret of building the game, because someone else may finish a video game before him.
@x364
@x364 2 жыл бұрын
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`.
@frederickfreund1957
@frederickfreund1957 3 жыл бұрын
Thank you for the nice explanation :D
@MoogieSRO
@MoogieSRO 2 жыл бұрын
Did he never make the follow-up video to this? Talk about bait-n-switch!
@Malicos
@Malicos 3 жыл бұрын
The juicy t-bone steak cliffhanger ending!
@micaiahstevens8840
@micaiahstevens8840 2 жыл бұрын
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.
@Asylum3D
@Asylum3D 2 жыл бұрын
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.
How to find any resource you are looking for!
12:39
Jason Storey
Рет қаралды 21 М.
Watch This Before Working on a Big Game in Unity
18:44
John Leorid
Рет қаралды 302 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
A BETTER way to setup new unity projects!
15:44
Jason Storey
Рет қаралды 57 М.
11 Things You (Probably) Didn't Know You Could Do In Unity
13:49
Game Dev Guide
Рет қаралды 157 М.
Assembly Definitions in Unity
7:56
Infallible Code
Рет қаралды 79 М.
10 Things You NEED to Be Doing in Unity
11:40
Tarodev
Рет қаралды 138 М.
Speed Up Compile Times in Unity with Assembly Definitions
9:54
Game Dev Guide
Рет қаралды 94 М.
Software Architecture in Unity
7:13
Jason Storey
Рет қаралды 123 М.
Unity Arrays? Don't Do this!
4:14
Jason Storey
Рет қаралды 32 М.
The 6 Design Patterns game devs need?
24:20
Jason Weimann (GameDev)
Рет қаралды 375 М.
I Simulated a Colony of Ant People
23:06
Lychee Game Labs
Рет қаралды 199 М.
How to make Slow Motion in Unity - Bullet Time Tutorial
11:52
Brackeys
Рет қаралды 321 М.