Unity 101 - Using the Unity Profiler to optimize performance

  Рет қаралды 108,883

Jason Weimann

Jason Weimann

Күн бұрын

Check out the Course: bit.ly/3i7lLtH
-------
Learn how to use the amazing Unity3D profiler in just a few minutes. We'll go over a sample project built to show the profiler at it's best, then start profiling and tuning a real project.
More Info: unity3d.college
Join the FB Group: unity3d.group

Пікірлер: 64
@jonavuka
@jonavuka 6 жыл бұрын
Never knew logs had such a big impact thanks for the tip
@Unity3dCollege
@Unity3dCollege 6 жыл бұрын
You're very welcome !:)
@chlasma
@chlasma 3 жыл бұрын
@@Unity3dCollege do the logs even effect the build? developing for oculus quest and am curious. Thanks
@DANLi_
@DANLi_ 4 жыл бұрын
To anyone wondering, Profiler window has been moved to Window > Analysis > Profiler
@kapkoder4009
@kapkoder4009 4 жыл бұрын
Its safe to say Jason Weihmann is such an amazing teacher, very relaxed, understands what he's talking about, very good at explaining leaving out useless fancy words, always using amazing examples, now im using the profiler to get some get amazing information.. thanks!
@biscotttii
@biscotttii Жыл бұрын
Loved the tutorial. Everything is concise. A small suggestion, I think you should add a seizure warning or something similar at the start of the video for the rapid changing cubes.
@TuneForgeMusic
@TuneForgeMusic 6 жыл бұрын
You can add: #if UNITY_EDITOR Debug.Log("Debug message"); #endif and debug messages will only play in the editor. Still a good idea to delete them before a final build though. :D It's also important to note that the Profiler itself will drop your framerate a lot, so if you're watching frames and can't find what the issue is, try running without the profiler!
@Desoxi90
@Desoxi90 6 жыл бұрын
In most projects which use the logger to create custom bug reports that would not be an option as it completely cuts it out of the project once its built. Thats why its better to use some kind of global bool via scriptable objects or whichever controller you like in your project to check that bool and determine if a log should be written or not. For example: if(logEnabled) { Debug.Log("SomeMessage"); } With Applocation.logMessageReceived its then pretty handy to create bug reports for the devs.
@TuneForgeMusic
@TuneForgeMusic 6 жыл бұрын
Good to know -- I've only ever done solo dev and me + artists, so I've always just turned debugging stuff off and on!
@sssncodesstuff3364
@sssncodesstuff3364 6 жыл бұрын
just create simple logger class and log thru that, you check some bool or compile constant there and when you will later need more control you can just add some parameter (like "level") to decide what will be logged where (dev build, release build, editor) etc, you can even keep lot of different logs in the game and swicthing them on/off like that during gameplay in editor depending on what you need to see.
@shubhamshetkar4406
@shubhamshetkar4406 6 жыл бұрын
can you create video on optimizing and reducing the apk size of Tower Defense Template by Unity?
@BinaryAbyssinia
@BinaryAbyssinia 3 жыл бұрын
Thanks a lot you are a Unique teacher and What is Editor loop? is like 99% when i check my code?
@Fireball_Roberts
@Fireball_Roberts 3 жыл бұрын
Thanks man. This was really helpful.
@Max-mn1yx
@Max-mn1yx 3 жыл бұрын
this was so helpful, thanks!
@piotrw3366
@piotrw3366 5 жыл бұрын
Great video. I really like the way you present an example in every video.
@balancecenter5924
@balancecenter5924 5 жыл бұрын
Thanks for the tips M8, much appreciated
@glowurms4822
@glowurms4822 6 жыл бұрын
Very Nice! The profiler was a big help for my project, but I didn't know about the deep profliling option. I had to guess at was taking up the most time. I was able to improve performance by guessing, but I'm gonna have to go back and check to make sure I was correct :D
@originalvirgo1
@originalvirgo1 4 жыл бұрын
Such good info. This will help a lot, thanks.
@muzboz
@muzboz 3 жыл бұрын
Excellent, thanks. :)
@deivid-01
@deivid-01 Жыл бұрын
This video is just focus in code profiling It would be nice see another aspects like rendering to check out
@kimeiga
@kimeiga 6 жыл бұрын
amazingly useful walkthrough!!
@TunaynaGab
@TunaynaGab 7 ай бұрын
thank you for the video - altho please give a content warning or any of the sort to warn regarding the flashing colors. I don't have any epileptic issues but it was a little visually irritating (like a bit headache inducing). Overall tho thank you for the insights
@YAS-vm8ko
@YAS-vm8ko 3 жыл бұрын
I wonder what are these "others" part in CPU. My game's 80% is losing time with "others"
@marcosssocram
@marcosssocram 6 жыл бұрын
Thank you very much, good sir. These are very helpful :D
@sagonsachetan1295
@sagonsachetan1295 2 жыл бұрын
but on 2020 how to increase it's memory allocation
@nishchhalbakshi2723
@nishchhalbakshi2723 6 жыл бұрын
Can you please make a video explaining the snake vs blocks game snake movement, there is no post on the Internet to help!!!!!
@TW-bh2mi
@TW-bh2mi 2 жыл бұрын
Can you say what the other is in the profiler. it hogs up more resources than anything else
@IRONREBELLION
@IRONREBELLION 5 жыл бұрын
Perfect man! is there anything deeper you van learn about this boy that we dont know? I would LOOOOVE a deeeper longer video of this thing
@aussieraver7182
@aussieraver7182 3 жыл бұрын
Amazing!
@ashtwenty12
@ashtwenty12 4 жыл бұрын
Useful thank you
@CanalDojogames
@CanalDojogames 5 жыл бұрын
do you have an video testing on Android/apple mobile?
@DanPos
@DanPos 3 жыл бұрын
This could have really done with an epilepsy warning before the cubes started flashing.
@fabiencrescent6503
@fabiencrescent6503 Жыл бұрын
I was searching for that comment
@ChickenSkit
@ChickenSkit Ай бұрын
i bet you dont even have epilepsy
@TheZCGamer
@TheZCGamer 4 жыл бұрын
Didn't know Dan Harmon did Unity tutorials.
@ajusay74
@ajusay74 6 жыл бұрын
Is Debug.Log affects memory?
@glowurms4822
@glowurms4822 6 жыл бұрын
I'm not sure about memory, but it definitely performs slowly. The more you output to Debug.Log the slower your game will go. It's better and much faster in my experience to create a UI and output your debug data to it if you're just looking for quick stats and don't need a log history.
@Unity3dCollege
@Unity3dCollege 6 жыл бұрын
It will add to the GC alloc.
@Sky_4ai
@Sky_4ai 4 жыл бұрын
nice
@Suyaashchavann
@Suyaashchavann 6 жыл бұрын
what is the Gfx.wait for present in profiler ?? it is causing spikes lag in the rendering panel!
@ariluft9774
@ariluft9774 5 жыл бұрын
Get Component in Update function, are you crazy?
@eugkra33
@eugkra33 4 жыл бұрын
They must have revised it all. Mine looks nothing like this.
@Unity3dCollege
@Unity3dCollege 4 жыл бұрын
They changed the default view to timeliness. Its a drop down in the profiler
@logan4179
@logan4179 4 жыл бұрын
Has the overview window disappeared? I can't find it on 2019.
@alijumc
@alijumc 4 жыл бұрын
Not all categories have these options in the overview window. Choose CPU Usage and you see it. It takes me 10 minutes to figure out.
@sahilhadke
@sahilhadke 5 жыл бұрын
Why are candle sticks in the thumbnail?
@ridhawritescode
@ridhawritescode 3 жыл бұрын
FLASH WARNING THE CUBES CHANGE COLORS QUICKLY BE AWARE. Nice tutorial though.
@epicrelaxingambientmusic8342
@epicrelaxingambientmusic8342 4 жыл бұрын
could you help me fix mine
@FeelingShred
@FeelingShred 6 жыл бұрын
Anything similar for Cities Skylines? Awful memory management there... I managed to run the game in a fan-less laptop from 2009 with minimum specs for the game, keeping temperatures low with the help of the parameter "-limitfps 10" and keeping CPU fixed at the lowest frequency. But now I stumbled across this "out of memory" problem, and I wanna figure out if I can downgrade the assets used by the game, because according to the developers a single road vehicle can have a few hundred polygons. For a game of such big scope as a city builder, I find this beyond reckless and unnaceptable. People with 32 GB of memory are having problems with this game, this is insane! I'm glad I didn't spend a buck upgrading hardware to play a game that crashes no matter what.
@michaelberna987
@michaelberna987 3 жыл бұрын
Seizure cubes. ;D
@haithammahmoud6825
@haithammahmoud6825 6 жыл бұрын
it's not same as 2018
@friedunicorn
@friedunicorn 6 жыл бұрын
thank you for making such helpful, clear, in-depth yet concise videos. my favorite unity channel on youtube!!!
@Unity3dCollege
@Unity3dCollege 6 жыл бұрын
thank you for the kind words :)
@adventuresingamedevelopment
@adventuresingamedevelopment 3 жыл бұрын
Please add epilespy warning
@muzboz
@muzboz 3 жыл бұрын
This video really gave me the abilities to optimise my project super effectively. I just went from "Not knowing how to use the Profiler at all" to "Wow, I just completely fixed the 3 most naughty uses of time and memory allocation in my project". THANKS!
@FarazKhanDev
@FarazKhanDev 5 жыл бұрын
Very helpful and informative video, as always. Thank you
@macleodgordon
@macleodgordon 3 жыл бұрын
Jason, how did you get that bottom panel called 'Overview' to display. I don't see it by default when I bring up the Profiler.
@rajmishra6769
@rajmishra6769 5 жыл бұрын
I never knew there was a tool such as profiler and how important it is for game development.I know shame on me, but thanks for the great video,you got yourself a subscriber today.Keep making such insightful videos.
@despondentbosco
@despondentbosco 5 жыл бұрын
So incredibly useful! Thanks for sharing.
@acemoistman
@acemoistman 3 жыл бұрын
Awesome!!
5 ways to make your unity3d code faster
20:14
Jason Weimann
Рет қаралды 58 М.
Unity Performance Tips: Draw Calls
4:24
Lofi Dev
Рет қаралды 191 М.
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 15 МЛН
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,9 МЛН
The 6 Design Patterns game devs need?
24:20
Jason Weimann
Рет қаралды 368 М.
Not using a profiler can KILL your game
10:55
Jason Weimann
Рет қаралды 8 М.
7 Ways to Optimize your Unity Project with URP
11:18
Unity
Рет қаралды 208 М.
Top 10 Tips To Optimize Your Mobile Game - Unity 3D
8:06
CG Dealers
Рет қаралды 39 М.
Why Solo Developers Should Use Unreal
9:51
Thomas Brush
Рет қаралды 384 М.
20 Advanced Coding Tips For Big Unity Projects
22:23
Tesseract
Рет қаралды 185 М.
Better Coding in Unity With Just a Few Lines of Code
15:27
Firemind
Рет қаралды 311 М.
Оптимизация игры на Unity, часть 3 - Код. Profiler
6:37
Insane One - Разработка игр
Рет қаралды 36 М.
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17