How many Rigidbodies can Unity support?

  Рет қаралды 1,640,595

Brackeys

Brackeys

Күн бұрын

In this video we push Unity Physics to its limit. Will it crash?
● Test Spreadsheet: goo.gl/CEcRs7
● Mini Profiler: goo.gl/j8AENY
● Unity Perfomance: Editor vs. Standalone: goo.gl/cwKLsn
● Crysis Physics Test: goo.gl/sSDnrD
❤️ Donate: www.paypal.com...
Get Unity: store.unity.co...
····················································································
► Join Discord: / discord
♥ Subscribe: bit.ly/1kMekJV
● Website: brackeys.com/
● Facebook: / brackeys
● Twitter: / brackeystweet
········································­­·······································­·­····
Edited by the lovely Sofibab & LeBonques.
········································­­·······································­·­····
► All content by Brackeys is 100% free. We believe that education should be available for everyone.
❤️ Donate: www.paypal.com...
········································­­·······································­·­····
♪ Baby Plays Electro Games
teknoaxe.com/cg...

Пікірлер: 1 400
@Povilaz
@Povilaz 4 жыл бұрын
0:41 "To no surprise this scene ran smoothly" My PC: Three FPS, take it or leave it.
@CranyUnknown
@CranyUnknown 4 жыл бұрын
nice one
@aleed2764
@aleed2764 4 жыл бұрын
underrated
@axethannanth
@axethannanth 4 жыл бұрын
Ye
@polski228
@polski228 4 жыл бұрын
theres three, actually
@devvydoesstuff
@devvydoesstuff 4 жыл бұрын
Three FPS or it shuts down and you lose all progress
@AncientEntity
@AncientEntity 6 жыл бұрын
But can it run crysis?
@nax2337
@nax2337 6 жыл бұрын
Ancient Entity *Insert overused reply to overused comment here*
@maxisjo
@maxisjo 6 жыл бұрын
You need a military hardware PC to run crysis
@magnusm4
@magnusm4 6 жыл бұрын
"ba dum tss"
@esteveguineueta2328
@esteveguineueta2328 6 жыл бұрын
One does not simply run Crysis.
@Johnjohncar
@Johnjohncar 6 жыл бұрын
Ancient Entity HEY VSAUCE MICHAEL HERE
@samlovescoding
@samlovescoding 6 жыл бұрын
Well your video says : "How many Rigidbodies can Unity support?". But the title is wrong. It should have been : "How many Rigidbodies can My Computer support?"
@insanitylol
@insanitylol 4 жыл бұрын
Yep unity is a game engine and probably supports nearly inf.
@scscyou
@scscyou 4 жыл бұрын
Also this video should be updated for new ECS feature :)
@ajddavid452
@ajddavid452 4 жыл бұрын
@@insanitylol yeah run unity on a super computer and bam, 9.999E+9999999999999999999999999999 rigidbodies
@anonymoussource8705
@anonymoussource8705 4 жыл бұрын
yeah
@kommandant.357
@kommandant.357 4 жыл бұрын
I got a Intel i5 lats gen a Intel uhd 620 and 8gb ram so it definitely can't run it lol
@averageviewer5218
@averageviewer5218 5 жыл бұрын
Your pc: Handles 5000 cubes running smoothly My pc: Spawn 1 cube and dies
@jabobthegod
@jabobthegod 4 жыл бұрын
my pc: *dies when starts up*
@FredWheatFill
@FredWheatFill 4 жыл бұрын
SkyLimited my pc: dies when i think before my hand even touches the on button
@jabobthegod
@jabobthegod 4 жыл бұрын
my pc: “dies”
@craftlofer9974
@craftlofer9974 3 жыл бұрын
my laptop when i put a single light in 2D: OH NO THERE IS LIGHT DECREASE THE FPS DECREASE ITTT and then the game start glitching
@rusluck6620
@rusluck6620 Жыл бұрын
bruh my pc died during the manufacturing phase
@AlexVoxel
@AlexVoxel 6 жыл бұрын
My pc is exploding with 10 😂
@Sagedurk
@Sagedurk 6 жыл бұрын
That's not a pc, that's a potato XD
@humoroushumor544
@humoroushumor544 6 жыл бұрын
PC (Potato Computer)
@TimSlee1
@TimSlee1 6 жыл бұрын
What type of calculator did you buy?
@hleghe810
@hleghe810 6 жыл бұрын
Alex Voxel I feel like something is wrong there then
@steez8337
@steez8337 6 жыл бұрын
Tim Slee some japan selled me tablet with "mirror function". Later i realized that was just mirror.
@cryawncrow
@cryawncrow 5 жыл бұрын
"It's a pretty standard setup." >Dual Intel Xeon processors
@psycleed8120
@psycleed8120 4 жыл бұрын
ok. but why does he sound like derik zoolander
@neociber24
@neociber24 6 жыл бұрын
Do you see the video on Unity channel called "Writing High Performance C# Scripts?" I don't remember if had Rigybodies but they handle 100,000 Gameobjects at 60 fps.
@RokabiumGames
@RokabiumGames 6 жыл бұрын
Yep, that was an awesome vid! :) I would have thought that using the new Entity Component System it must help tons.
@JimGiant
@JimGiant 6 жыл бұрын
Yeah brilliant video. I used the same technique of handling each object's movement in a single script in the game I'm working on: www.newgrounds.com/portal/view/699433
@Sixxx93
@Sixxx93 6 жыл бұрын
@jim at first I was: "3D snake? Wtf.... must be boring", I started playing and as the snake was getting bigger I was feeling like: "wow it's so cool to watch and play avoiding my own tail", noice! :D
@JimGiant
@JimGiant 6 жыл бұрын
Thanks bro. It was never meant to be more than a silly experiment but it got a lot more attention than I expected so I decided to try and actually make it fun. I wish I saw the writing high performance scripts video before I started though, I think I could have had it handle 10x more objects if I did.
@ZacharyHelm
@ZacharyHelm 6 жыл бұрын
Some of the features in that video aren't even released yet or even in Unity documentation (publicly) :P
@YasserSedrati
@YasserSedrati 6 жыл бұрын
the professionalism
@ironandthread
@ironandthread 6 жыл бұрын
IT'S OVER 9000!!!!
@Sacharias1
@Sacharias1 6 жыл бұрын
buzzkill
@Kioselis
@Kioselis 6 жыл бұрын
You're very stale for thinking that "dead" memes are not viable anymore.
@hleghe810
@hleghe810 6 жыл бұрын
Eimantas Zievys how do you know they were talking about that specifically?
@Kioselis
@Kioselis 6 жыл бұрын
He deleted his comment so....
@LewisGaming99
@LewisGaming99 6 жыл бұрын
Unity pleb I personally use the far superior professional engine... Yes you guessed it Scratch.
@Ankko
@Ankko 6 жыл бұрын
pff, ur such a casual pleb, REAL pros use greenfoot
@praveensharma9893
@praveensharma9893 6 жыл бұрын
UNREAAAAAALL
@neptune2758
@neptune2758 6 жыл бұрын
Guybrush Threepwood how foolish. Hour of code games are far superior
@praveensharma9893
@praveensharma9893 6 жыл бұрын
Guybrush Threepwood lol Crytek beats Epic? Hoowwiieee
@Waff1e_
@Waff1e_ 6 жыл бұрын
Nah, the TRUE code language is Whitespace and Lolcat,
@jonyleo500
@jonyleo500 6 жыл бұрын
"Pretty standard"... has 32Gb of Ram -_-
@venusianbasil
@venusianbasil 6 жыл бұрын
i mean, its avg speed ram, and, pun unintended, size really doesn't matter
@Manny444a
@Manny444a 6 жыл бұрын
jonyleo500 He actually has 8gb
@Manny444a
@Manny444a 6 жыл бұрын
hahayesokay No he has 8gb of ram made up of 4 2gb sticks.
@magnustaarnberg3350
@magnustaarnberg3350 6 жыл бұрын
he has 32gb
@pohatunuva3771
@pohatunuva3771 6 жыл бұрын
>tfw both computers combined have 12 gigs of ram
@Chizzoide
@Chizzoide 6 жыл бұрын
How many Rigid bodies can Sasha Grey support?
@daddydangerous20
@daddydangerous20 6 жыл бұрын
Over 9000.. (yearly :D)
@helphelpimbeingrepressed9347
@helphelpimbeingrepressed9347 6 жыл бұрын
Over 9000?! I bet she doesn't go outside wearing a skirt on windy days for fear of being asked whats that clapping noise?
@JohnLoops
@JohnLoops 6 жыл бұрын
That nostalgia in the beginning of the video brought me back to me messing up with cryengine 2, and the Crysis memes, of course... Thank you Brackeys ;)
@simon.in.motion
@simon.in.motion 6 жыл бұрын
This was an incredibly interesting video ! Thank you so much for all of these years of Unity, more than just helping me, you really have entertained me :) Cheers from France.
@SixxFox
@SixxFox 6 жыл бұрын
Brackey's is back at it again! Very interesting test to watch to see what Unity can handle.
@magnusm4
@magnusm4 6 жыл бұрын
You can do better with some C# skill and some third party stuff
@SixxFox
@SixxFox 6 жыл бұрын
Interesting! :D
@albond
@albond 6 жыл бұрын
SixxFox *Brackeys
@grftaNitro
@grftaNitro 6 жыл бұрын
THERE IS SO MUCH TO LEARN ON YOUR CHANNEL ITS AMAZING
@Nickgowans
@Nickgowans 4 жыл бұрын
Never ceases to amaze me that such a powerful piece of software can be free
@pleasejustletmebeanonymous6510
@pleasejustletmebeanonymous6510 Жыл бұрын
*free-ish
@luizzeroxis
@luizzeroxis 6 жыл бұрын
Did the video just ended abruptly and was cut short?
@oakherder17
@oakherder17 6 жыл бұрын
Omar Ch.
@Nobbie248
@Nobbie248 6 жыл бұрын
Nope it just your browser
@REDJ1
@REDJ1 6 жыл бұрын
no. your grammar ended abruptly and was cut short xD (jk btw)
@PersonManManManMan
@PersonManManManMan 6 жыл бұрын
2 Chainz's 2nd Chain nice one, I like how you cut short you're comme-
@RazerBlackShark
@RazerBlackShark 6 жыл бұрын
Wait wha-
@JustJunuh
@JustJunuh 6 жыл бұрын
I felt like I was watching 9/11 simulations for the first few minutes
@avi4767
@avi4767 6 жыл бұрын
Junuh 4:51
@beansncheese9127
@beansncheese9127 6 жыл бұрын
Junuh so your joking about a terrorist attack where people died? seems fitting you’d have a ugandan knuckles profile picture.
@JustJunuh
@JustJunuh 6 жыл бұрын
i hope you have a great day :D
@beansncheese9127
@beansncheese9127 6 жыл бұрын
Junuh Toché
@JackDLong
@JackDLong 6 жыл бұрын
Thicken Strip Fuck you
@Sponcered
@Sponcered 6 жыл бұрын
imagine doing this on the worlds fastest computer
@layouty5001
@layouty5001 5 жыл бұрын
5.000.000.000 = 100 FPS
@silly_lil_guy
@silly_lil_guy 4 жыл бұрын
@@layouty5001 so 10 billion will be 50 FPS? still pretty good FPS, my pc runs roblox at 30 FPS
@synapse5791
@synapse5791 4 жыл бұрын
1 cube is 1 fps
@SunilNmb
@SunilNmb 4 жыл бұрын
@@silly_lil_guy ha, my pc cant even run Roblox
@sulfurpigeon41
@sulfurpigeon41 4 жыл бұрын
@@SunilNmb i have laptop, and he can't support picture.
@roko567
@roko567 6 жыл бұрын
you went 3kliksphilip on this one
@andris1337
@andris1337 5 жыл бұрын
To much 3kliksphilip
@sakiskid
@sakiskid 5 жыл бұрын
@@andris1337 NEVER enough kliksphilip
@GoldenD60
@GoldenD60 4 жыл бұрын
5:18 "Omar" **video ended before he could finish what he was saying**
@RandomInternetIdot
@RandomInternetIdot 4 жыл бұрын
Oh marc-
@philiphanhurst2655
@philiphanhurst2655 4 жыл бұрын
This was my first video of yours that I ever watched. After realizing you had tutorials your channel quickly became one of my favorite. Thank you so much for getting me into Unity!
@pascallohscheidt7281
@pascallohscheidt7281 6 жыл бұрын
Hey Brackeys, Maybe GPU instancing is another thing which helps when it comes to rendering multiple rendering. :) Maybe you could make a scene manager tutorial. To Save Scenes or additive loading of scenes. I really love your work since you are on youtube :) Therefore I´m supporting you on Patreon :)(not much but all i can afford at the moment)
@creationsmaxo
@creationsmaxo 6 жыл бұрын
GPU instancing only helps if you want multiple instances of the same mesh & materials, but with slight alteration to said material. Otherwise, activating it or not doesn't change much from the static or dynamic batching already in Unity. In the case of what is displayed in this video, GPU Instancing would be good if, for example, he was to randomize the colors of the cubes when instantiated. GPU Instancing makes it possible for batched assets to still have "unique attributes" stored onto their unique ID.
@RaijdanProductions
@RaijdanProductions 3 жыл бұрын
1:16 that fold in rigid bodies that looks like cloth is so satisfying
@MichaelDowns
@MichaelDowns 6 жыл бұрын
Not only 2 CPUs but 2 Intel Xeons! That's got to be pricey :D Keep up the awesome videos Asbjørn! (I hope I spelled that right)
@DecalGuy77
@DecalGuy77 6 жыл бұрын
yea youtube views pays for it, these people dont have real jobs
@Sparrow420
@Sparrow420 6 жыл бұрын
+Thug Nme, yeah, all that sweet youtube money. btw, running a youtube channel is a real and legit job, name one reason it ain't.
@MichaelDowns
@MichaelDowns 6 жыл бұрын
Sparrow I agree that it is a real job, especially what Brackeys is all about, teaching! What's the difference between someone on Udemy and Asbjørn teaching us to program? I know I'm extremely grateful that he's sharing his knowledge with everyone free of charge.
@Thulnar
@Thulnar 6 жыл бұрын
How the heck do you know he doesn't have a "real" job? And btw, good for him if he can pay the bills without doing a daily job he hates, what's the matter with that? I really don't get people... and the more I age the more I don't wish to.
@Owen3H
@Owen3H 6 жыл бұрын
But only GTX 780?
@MrRJReynolds
@MrRJReynolds 6 жыл бұрын
Hey Brackeys. In source engine they use a work around where they simulate the physics in advance, at low framerates, record it, and play it back at 60fps. If you would like, I can set up a system to do this in unity! I can integrate it with that "vertex" based support you mentioned with blender.
@Linkard
@Linkard 6 жыл бұрын
Damn, you only have a GTX 780... That's humbling. Keep up the good work man. It shows that you don't need the latest of the latest to make amazing content
@off_pudding443
@off_pudding443 6 жыл бұрын
I doubt you understand the actual differences between a 780 and a newer gpu. There aren't many. The returns on processing power of newer generation video cards are getting smaller and smaller and design has started moving towards increasing memory size and support for newer tech like 4k screens. I have a 660 ti ftw+ that has absolutely no problem running newer games at max settings(1920x1080). Also, the physics calculations have nothing to do with the gpu.
@Linkard
@Linkard 6 жыл бұрын
Congratulations sir, you are very smart. Completely misunderstood what my comment was going for, but who cares, you displayed that you were very smart
@off_pudding443
@off_pudding443 6 жыл бұрын
Ok well then how exactly is it "humbling" to get stuff done with a 780? That's not very smart material btw.
@asnaeb2
@asnaeb2 6 жыл бұрын
A 1080ti is like 3x faster than a 780. Get your head out of your ass.
@off_pudding443
@off_pudding443 6 жыл бұрын
They are most definitely slightly faster and can handle a greater workload. 3x though? That's just stupid. They're not THAT much better that I feel I need to run out and buy the newest and greatest. especially when my current card has no problem running the newest games or making content. You want to spend $700 on a video card? That's great, go waste your money. Tell everyone it's "like 3x faster than a 780" till you start to believe it.
@Fkelly21
@Fkelly21 6 жыл бұрын
That vertex to cube snippet is now my favourite thing to do in Unity
@al1ve704
@al1ve704 6 жыл бұрын
its not how many unity can handle its about how many your computer can handle
@remixtheidiot5771
@remixtheidiot5771 6 жыл бұрын
Jolan Espinal sometimes its the program that has the built in limit, where no matter how muscular and beefy and manly your computer gets it will never go past that programs limit, I've seen programs do this but I don't remember their names anymore. Don't use them.
@aaronalfer2615
@aaronalfer2615 6 жыл бұрын
You can write a horrible algorithm that does everything 100x slower than it should, no matter what hardware you're using. So yeah, it's very much about the engine. Compare different engines on the same hardware and you'll get different results.
@Argoon1981
@Argoon1981 6 жыл бұрын
No physics engine that i know has a built in limit, at lest not any professional physics engine, PhysX, Bullet and Newton Physics Engine all use to the max the CPU/cores power of your PC, they behave differently tho, for example Newton Physics Engine uses more physical accurate calculations (there the name) that makes it more CPU heavy but also much more accurate and stable, is the physics engine used on all Frictional Games, games for example. Is the game developers or the Unity engine developers that implement limits on how many physics calculations you can do in a particular game, remember a game also uses the CPU, for AI, Sound, gameplay logic and some graphic effects, you need to save CPU power for the rest of the game, not everyone has 800+€ CPU's. Also people don't think just because you have a Nvidia GPU and the game has PhysX that is the GPU calculating the physics.
@leomdk939
@leomdk939 6 жыл бұрын
It's both. It's *always* both. The more efficient the code, the less taxing it is on the cpu.
@shaunclarke04
@shaunclarke04 6 жыл бұрын
its still limited by unity though
@actually_a_sign3954
@actually_a_sign3954 3 жыл бұрын
Me: Wow cool, how many rigidbodies can I support? My computer: ...three. Me: Three hundred? Three thousand? My computer: Three. Take it or leave it.
@SunnyApples
@SunnyApples 6 жыл бұрын
Brackeys, do you know of any way to export unity animations as films, or is screen capture the only way? You could do so many cool physics based animations and it runs very fast, in real time actually, and is kind of easy to set up with scripts. Doing animations like those in a 3D software would be so slow to set up and render. Add some post processing in After Effects and you have an epic looking physics based animation.
@nochtans342
@nochtans342 6 жыл бұрын
PushMyCarr there is a recorder made by unity, saw it somewhere in their neon challenge announcement. Look there.
@MrFrostCA
@MrFrostCA 6 жыл бұрын
There is some recorders in the asset store. Also Unity have one to work with cinemachine and timelime, but its on beta. Here. github.com/Unity-Technologies/GenericFrameRecorder
@albond
@albond 6 жыл бұрын
MrFrostCA *there ARE
@LettuceBunnies
@LettuceBunnies 6 жыл бұрын
Albond STFU*
@albond
@albond 6 жыл бұрын
Skeleton Clique Why?
@dankisdank365
@dankisdank365 2 жыл бұрын
3:00 U know there's alot of rigidbodies when they start looking like a 2010 water simulation 😂
@leoingson
@leoingson 6 жыл бұрын
Thanks for the Dragonball reference :)
@dxb8086
@dxb8086 6 жыл бұрын
You are an idiot if you feel the need to be thankful for such a nonsense...
@thousandsofclowns
@thousandsofclowns 6 жыл бұрын
You are an idiot if you feel the need to insult a random person on the internet for no apparent reason.
@michaeldragon4844
@michaeldragon4844 5 жыл бұрын
@@thousandsofclowns lol
@josephstalin9194
@josephstalin9194 5 жыл бұрын
My VRChat world (a shooting range) has a large brick wall that I assembled by making each individual brick a rigidbody with a very high friction physic material. It sure is a beautiful sight ingame to shoot it with the RPG I added and watch thousands of bricks spray in all directions. And still have 90FPS WHILE IN VR mind you...
@mickeypeters502
@mickeypeters502 6 жыл бұрын
Brackeys, I'm trying to make a android game in Unity but the apk always fail to make.. Could you make a tuturial? Always get the same error (to long to enter here)
@Owen3H
@Owen3H 6 жыл бұрын
mickey peters Post the error as a pastebin link? I maybe able to help you as I had problems with this too but I fixed it
@mickeypeters502
@mickeypeters502 6 жыл бұрын
There are a 2 things that pop up very long errors: 1ste: CommandInvokationFailure: Failed to build apk. C:/Program Files (x86)/Java/jdk-9.0.1\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Program Files (x86)/Java/Sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" - stderr[ Exception in thread "main" java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at SDKMain.main(SDKMain.java:130) Caused by: java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder at com.android.sdklib.internal.build.SignedJarBuilder.(SignedJarBuilder.java:177) at com.android.sdklib.build.ApkBuilder.init(ApkBuilder.java:446) at com.android.sdklib.build.ApkBuilder.(ApkBuilder.java:422) at com.android.sdklib.build.ApkBuilder.(ApkBuilder.java:362) at UnityApkBuilder.(UnityApkBuilder.java:214) at UnityApkBuilder.main(UnityApkBuilder.java:34) ... 5 more Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:563) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496) ... 11 more ] stdout[ ] exit code: 1 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() 2e: UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x00207] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:172 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83 UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (all help is welcome I'm searching and asking on forums how to but not a single answer worked for me.)
@Owen3H
@Owen3H 6 жыл бұрын
Have you tried downgrading to JDK 8 instead of 9?
@mickeypeters502
@mickeypeters502 6 жыл бұрын
Codey Didn't tried that yet doing it tomoro I will let you know if it worked!! Thanks for the help btw !!
@TheLuigiGrimaldi
@TheLuigiGrimaldi 6 жыл бұрын
mickey peters downgrading should solve the problem like codey said. Had the same issue 2h ago :)
@eborge9711
@eborge9711 6 жыл бұрын
You can still optimize this. -Instanced materials (sends 1 cube to the gpu and the gpu copies it for all other cubes in the scene.) -Deferred rendering (Lighting is rendered based on images and not geometry) -Instanced physics (Not sure how this works exactly but I think it is similar to material instancing.) -Set materials to legacy diffuse (Simpler lighting)
@xenqor5438
@xenqor5438 4 жыл бұрын
I wonder how many people are lying about their pc breaking lol
@styxrakash4639
@styxrakash4639 2 жыл бұрын
Does increasing fixed time step allow for situations where the outcome of a physical interaction is different than if you just let it lag out and calculate everything thru all at once?
@hanifisahin4098
@hanifisahin4098 5 жыл бұрын
rigidbody.exe has stoped working. :)
@GameArtsCafe
@GameArtsCafe 5 жыл бұрын
There are many ways of optimization, you could even add Dynamic Occlusion culling which may allow double the amount of cubes. For those that don't know what this is, it's typically a method of disabling the rendering of items not seen by the camera, so for example the cubes hidden behind others. Another method is an asset on the Unity store that does real-time decimation LOD on objects that are in the distance or hidden at close range. The title as others state is a bit misleading.. it should be labeled "How many cubical rigid bodies with physics can Unity support."
@squally9149
@squally9149 4 жыл бұрын
RIP Brackeys
@Robin-bd2ox
@Robin-bd2ox 6 жыл бұрын
The video was low-key awesome, btw got a nice screenshot of your setup :)
@Ballacha
@Ballacha 6 жыл бұрын
Very misleading title. This video is about how to optimise performance, not how many rigidbodies the engine supports. If the content matches the title, this video would be 2 seconds long with the number 2^32 displaying on screen.
@olbluelips
@olbluelips 6 жыл бұрын
A lesson on powers of 2 wouldn't be as interesting.
@Ballacha
@Ballacha 6 жыл бұрын
human interaction 101: you don't lie because the truth is not "as interesting".
@olbluelips
@olbluelips 6 жыл бұрын
Peida Li Yeah that's true
@Slow_d0ge
@Slow_d0ge 6 жыл бұрын
I learnt how to optimize from this video, human interaction 101: constructive criticism works and destructive criticism hurts. All in all I rate this video rocked.
@wizardofthevalley4767
@wizardofthevalley4767 6 жыл бұрын
i felt the "its over 9000" reference was totally needed in this video
@slayer4810
@slayer4810 6 жыл бұрын
My GPU fried watching this 👌🏿
@lukasbakke6878
@lukasbakke6878 6 жыл бұрын
I dont know anything about this but, its still insteresting. Great job
@corsaircarl9582
@corsaircarl9582 6 жыл бұрын
Jaysus I need to know this kind of complicated math just to program in Unity?
@albertocalle7006
@albertocalle7006 6 жыл бұрын
Corsair Carl i see no math in this video
@LureThosePixels
@LureThosePixels 6 жыл бұрын
Alberto Calle only math is the fractions
@salvadorkda5758
@salvadorkda5758 6 жыл бұрын
Well... is like saying : "I need to learn painting to make a House" ? Depend on what type of house you gonna build. If your game has physics, this si definitively a good video explaining how things works or you can do optimization Is simply understanding on the physics engine and her limits.
@stevveLP
@stevveLP 6 жыл бұрын
No you dont have to know it. Well, you only have to know which button does what, but you dont have to understand how it works. Understanding it would help you obv, but it's not necessary.
@The28studio
@The28studio 6 жыл бұрын
Wtf?
@trippyy2767
@trippyy2767 6 жыл бұрын
Probably the most entertaining and learnable video I've seen on your channel.
@AhmadImtiaz320
@AhmadImtiaz320 6 жыл бұрын
*Make a comprehensive video on "How to implement google play services in a unity project" please. Please* (like to bring this comment on top)
@kilooneworld
@kilooneworld 6 жыл бұрын
yes.
@imanolgon
@imanolgon 6 жыл бұрын
Just search for it, I already added it to my game
@randomtube2476
@randomtube2476 6 жыл бұрын
I have a tutorial on my channel if you want to check it out
@AhmadImtiaz320
@AhmadImtiaz320 6 жыл бұрын
Thanks. I will check
@noshit1128
@noshit1128 6 жыл бұрын
Unity script kiddies
@MaeveFirstborn
@MaeveFirstborn 6 жыл бұрын
I hope to see more videos like this. Just screwing around and finding some data.
@SlantedVFX
@SlantedVFX 6 жыл бұрын
3kliksbrackeys
@kryptocake
@kryptocake 5 жыл бұрын
Why did nobody ever use cryengine? I played around w/ the crysis editor like that back in the day... made giant barrel avalanches that would flow down mountains and take out structures, enemies and vehicles who would just stand there waiting for it. Was fun back in the day. Crysis 1 was such a good game too.
@ruiccc100
@ruiccc100 6 жыл бұрын
Going to try with my gtx 1080ti and i7 7700k
@green.5268
@green.5268 6 жыл бұрын
Obvious Troll. Yet you still got baited. Congrats You got me there man. xD
@arkyun
@arkyun 6 жыл бұрын
Kombi if you written this comment then you do care
@pi5272
@pi5272 6 жыл бұрын
temmie shopkeeper Hell the fuck no? xD What kind of thinking is that.
@somnia3423
@somnia3423 6 жыл бұрын
temmie wtf xD
@lordsmorgasbord2646
@lordsmorgasbord2646 3 жыл бұрын
I remember one specific crysis physics video where the guy said "I had to turn around when the barrels exploded or else the game would crash." ah those were the days
@davidkoffi985
@davidkoffi985 6 жыл бұрын
Two Xeon CPUs : then GTX 780.... 8Gbs of DDR3 RAM...HMMMMMMMM something doesn't add upppppppp!!!!!!
@hugojeller
@hugojeller 6 жыл бұрын
hmmm why? it's 4x 8gb = 32gb of RAM, seems about right
@Lillu700
@Lillu700 6 жыл бұрын
True, a 780 in 2017?!? Goodness grace...
@flint2368
@flint2368 6 жыл бұрын
its outdated
@ambersharpe8804
@ambersharpe8804 6 жыл бұрын
So is my 770. Still runs games fine though.
@Lillu700
@Lillu700 6 жыл бұрын
"Fine" is a rather subjective concept. I'm sure it might run games at 60fps with medium settings at 1920x1080, but can it do 144fps at 2560x1440? Doubt it.
@felixp535
@felixp535 6 жыл бұрын
I want to add a quick note to that video: the slowest thing while calculating collisions is when an rigidbody is colliding with more than one other object with a rigidbody at the same time.
@unbreakablefootage
@unbreakablefootage 6 жыл бұрын
0:58 "glorious 160 frames per second" haha mate thats awful, especially if you consider that you just knocked over a bunch of cubes
@llama-berry
@llama-berry 6 жыл бұрын
4:10 LOVE THAT!! ”But Why stop there”
@MeshalDagriri
@MeshalDagriri 6 жыл бұрын
Fking math and calculations I'm quitting making games
@FdPros
@FdPros 6 жыл бұрын
nice motivation
@Alex_Dul
@Alex_Dul 6 жыл бұрын
lol. Spoilers, math is everywhere in every facet of life. Don't quit life please.
@thinkfast8662
@thinkfast8662 6 жыл бұрын
Importance of mathematics in game development (and programming in general) is usually highly overestimated.
@qwargly
@qwargly 6 жыл бұрын
Since youre saying that, did you even start?
@DamanD
@DamanD 6 жыл бұрын
im not the best at math but i still like programming and making games..you need more logic than math in programming :)
@unrealengine1enhanced
@unrealengine1enhanced 4 жыл бұрын
in game you'll be able to render the stack fall faster, you can even use obfuscation and dithering to speed up your renders. in game you would also be able to dynamically control the LOD of the falling objects, also speeding up the frame rate.
@unrealengine1enhanced
@unrealengine1enhanced 4 жыл бұрын
objects out of view would use lower LOD or obfuscation rendering (aka not seen, not there) you'd have a much faster fall rate. (also fine tuning your physics will help) you can only use so much acceleration when using so many actors :P
@4icefire96
@4icefire96 6 жыл бұрын
The brackeys exploding was really cool at the end!
@maerklinistkaize4460
@maerklinistkaize4460 5 жыл бұрын
The braking Brackeys could be a cool intro
@Kaiimei
@Kaiimei 6 жыл бұрын
I love how my most satisfying day in Unity and Blender was the day I set up a wrecking ball that smashed through a wall and looked glorious. I now feel inadequate after looking at some of these videos.
@Acoyo
@Acoyo 6 жыл бұрын
Ok, so I opened Unity, copied that script at 4:15 and instantly turned a rhino model into 100 cubes. Today is a good day.
@westingtyler1
@westingtyler1 5 жыл бұрын
this is one of the best tutorials ever. the format is great.
@SourCyanide
@SourCyanide 6 жыл бұрын
The worst case for physics spatial partitioning is all of the objects being in a giant pile. try doing this same amount of objects, except spread out across a map. you will see a massive improvement in performance.
@turbulentt297
@turbulentt297 6 жыл бұрын
This has been in my recommended off and on for like 5 months
@_jonathancollins
@_jonathancollins 6 жыл бұрын
I am not an expert, but I am curious how two tweaks would improve performance. 1. Would there be any performance enhancement from instantiating each cube based on a script, rather than placing them in the editor? 2. Is there a way to use occlusion culling to only render the parts of the cube/ the cubes visible from the camera, hiding the cubes that are hidden by the cubes in front of them?
@Alexander-dc4kf
@Alexander-dc4kf 6 жыл бұрын
For example for a video you could show us how to create a save system for one of your games like CubeThon, so that even if you quit the game and reopen it you still start at your saved loc. I have learnt how to code a game in less than 4 days thanks to you, you are a literal God!
@iinRez
@iinRez 6 жыл бұрын
This helped clarify the difference between Frames Per Second and Simulation speed. Often times it's easy to conflate degradation in Simulation Speed with lower FPS.
@GoldenGrenadier
@GoldenGrenadier 6 жыл бұрын
I like how the cubes begin to behave like a liquid when there's enough of them.
@saltyYagi_
@saltyYagi_ 6 жыл бұрын
I love the new look of the logo and thanks for the sick video!
@randallstephens959
@randallstephens959 6 жыл бұрын
The falling barrels at the beginning of the video looked so tasty they're making me want to dabble with 3d simulations and games all over again.
@SRISHIN
@SRISHIN 4 жыл бұрын
BRACKEYS: WILL UNITY BREAK ?? ME: WILL UNITY OPEN ?
@doserastalmi
@doserastalmi 4 жыл бұрын
Spelling of break... LOL
@cotaneptun
@cotaneptun 6 жыл бұрын
The Part Of The Cubes That Dont Lag Is So Satisfying
@robwiz9
@robwiz9 4 жыл бұрын
A new era of Satisfying videos on youtube? There clearly has to be more of this stuff! 😄
@1988ferry
@1988ferry 5 жыл бұрын
The last simple script is awesome, love it :D
@alternateexistence9737
@alternateexistence9737 6 жыл бұрын
There is one more thing you could try. You could design a compute shader for physics calculations and assign each cube to a separate core on the gpu. The difference should be enormous, but would also take a lot of work.
@gamergustav2632
@gamergustav2632 6 жыл бұрын
Har lige fundet din kanal. Den er virkelig god!
@AlexeyFilippenkoPlummet
@AlexeyFilippenkoPlummet 6 жыл бұрын
Air full of floating cubes looks dope. Seriously, you can make a music video / game hit with just this.
@eyli
@eyli 6 жыл бұрын
This was a really awesome video idea, keep up the good work!
@boomchacle6717
@boomchacle6717 6 жыл бұрын
its like having a 3000 part craft in kerbal space program but instead of the 1 frame per minute you'd get with KSP, its 2 frames per second
@binarypench
@binarypench 6 жыл бұрын
0:14 PERFECTLY GENERIC OBJECT SPOTTED
@magnusm4
@magnusm4 6 жыл бұрын
Wonderful tutorial as always. I love learning about new ways to optimize and use the engine itself. Knowing it runs smoother when making the game really helps when making a final product, so you can expect better performance when your game is running decent in the editor. Ever gonna do a tutorial on optimization like the LODgroup and Occlusion Culling features. Learning small things about lighting and particles helps larger games to get off the ground and at least ensure a steady framerate and gameplay instead of lagging the hell out when not staring at the ground, especially object pooling that stuff is hard a fuck
@MatheusLB2009
@MatheusLB2009 6 жыл бұрын
"Building the game took my fps from 33 to 50" wow that got my attention
@wisewind5643
@wisewind5643 6 жыл бұрын
I think I should develop an app that automatically comments "Absolute awesomeness" on every video he creates even when I am dead
@gobber121
@gobber121 6 жыл бұрын
I really liked this video. I would love to see some more benchmarking of unity if you get any ideas as a I learnt a lot from this one video as it is, thanks can't wait to see more!
@au_crimmy8319
@au_crimmy8319 2 жыл бұрын
i wonder how high this can go now that we have the 30 series cards nowadays
@muratkul7377
@muratkul7377 5 жыл бұрын
You have to do this test again with the new ECS, that would be interesting to see.
@necrondow_
@necrondow_ 6 жыл бұрын
Something else that would speed things up is using spheres rather than cubes. The Physics calculation for box colliders uses a technique called OBB, which is one of the slowest techniques, only quicker than convex hull calculations. Whereas a sphere only uses distance checks based on the radius and position of the collider, which is much much simpler than OBB and is infact the quickest calculation. If you were to compare 6000 cubes to 6000 spheres, you would see tremendously different results :)
@cannabalt5010
@cannabalt5010 6 жыл бұрын
0:04 the graphics look soo real!
@ifurkend
@ifurkend 6 жыл бұрын
Also Shuriken Particle System only uses the cheapest sphere collider for performance sake. Anyway nice video dude.
@King-Julien
@King-Julien 5 жыл бұрын
i was ingame with no graphical changes and i holded CTRL + D Until it went to 10 or under fps.. i got 8 and when i checked how meany it was 5000 odd
@industrialdonut7681
@industrialdonut7681 4 жыл бұрын
"How many rigid bodies can it handle before slowing down" I believe the answer to this would literally be zero
@PolishGigaChad180
@PolishGigaChad180 6 жыл бұрын
Hey i have Just Started Unity and you have Been a Great Help for me!
@XSpamDragonX
@XSpamDragonX 6 жыл бұрын
Of course collision interpolation would make things a lot worse. Collision interpolation is intended to be used for fast moving or complicated objects to prevent them from skipping collisions that would have otherwise happened. Without collision interpolation a bullet projectile might pass through a wall, as the game might only check for collision in the moments before and after it moves through the wall's boundaries. Interpolation is very similar to decreasing the physics timestamp, but not quite as taxing on the processor, and only for that specific object.
@thomaspribitzer5373
@thomaspribitzer5373 6 жыл бұрын
That was awesome, thanks for putting in the effort! Funny enough, you're running the exact same setup as mine.
@NappyWayz
@NappyWayz 6 жыл бұрын
Thanks for putting the CPU info, I was thinking of this through the entire video. Please consider presenting that information at the beginning.
@Catonator
@Catonator 6 жыл бұрын
Lowering graphics settings doesn't really do anything, since physics calculations are done on the CPU side usually. The only real way to allocate the maximum resources to the physics calculations would be reducing the time spent running game logic and managing the memory, neither which can really be improved on Unity and on a project like this.
@CtrlAltPhreak
@CtrlAltPhreak 6 жыл бұрын
Very satisfying to watch. I've been into game development as a hobby for around 20 years. Glad I found your channel. Subbed and liked :)
5 Years of Making Games in Unity!
13:27
xzippyzachx
Рет қаралды 2,3 МЛН
100 UNITY TIPS!!! 🔥
11:53
Brackeys
Рет қаралды 526 М.
МЕБЕЛЬ ВЫДАСТ СОТРУДНИКАМ ПОЛИЦИИ ТАБЕЛЬНУЮ МЕБЕЛЬ
00:20
He bought this so I can drive too🥹😭 #tiktok #elsarca
00:22
Elsa Arca
Рет қаралды 59 МЛН
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 5 МЛН
How many AI Agents can Unity handle?
6:18
Brackeys
Рет қаралды 1,7 МЛН
Unity vs. Godot How many Rigidbodies can each support?
7:17
Mean Gene Hacks
Рет қаралды 89 М.
Brackeys Game Jam 2020.2 - BEST GAMES!
11:31
Brackeys
Рет қаралды 546 М.
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 271 М.
Why Making Multiplayer Games SUCKS
6:46
Tom Weiland
Рет қаралды 423 М.
New way of CODING in Unity! ECS Tutorial
9:10
Brackeys
Рет қаралды 583 М.
HOW TO GAME JAM!
9:01
Brackeys
Рет қаралды 277 М.
How to make a Video Game - Godot Beginner Tutorial
1:17:12
Brackeys
Рет қаралды 1,9 МЛН
Should You Use DOTS in 2024? (plus what is Unity ECS)
30:15
Turbo Makes Games
Рет қаралды 40 М.
How to MAKE YOUR GAME LOOK GOOD!
13:02
Brackeys
Рет қаралды 594 М.
МЕБЕЛЬ ВЫДАСТ СОТРУДНИКАМ ПОЛИЦИИ ТАБЕЛЬНУЮ МЕБЕЛЬ
00:20