Unity Game Optimization Tutorial

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

coding edge (pablos lab)

coding edge (pablos lab)

Күн бұрын

Пікірлер: 129
@ToadieBog
@ToadieBog 4 жыл бұрын
Try Unity, a next-gen graphics engine! Step 1 - Make a decent looking game Step 2 - Disable "next gen" graphics Step 3 - Try to sell your potato game
@pabloslab
@pabloslab 4 жыл бұрын
follow these steps if you want to make it playable for mobile
@prateekpanwar646
@prateekpanwar646 4 жыл бұрын
@@pabloslab Yeah mobile are no where even near to ps2's apu. Most of problem comes for mobile games
@mikethegamedev
@mikethegamedev 4 жыл бұрын
my game are not potato
@correoderecuperacion5218
@correoderecuperacion5218 4 жыл бұрын
@@mikethegamedev I am doing a game, my game's name is Nothing, has a Ugly Grapichs and is programmed by Scratch
@Xyte01
@Xyte01 4 жыл бұрын
@@prateekpanwar646 And now try mobile VR, it's a nightmare. I can make decent visuals but not if the VR headset uses all mobile hardware from 3 years ago and tries to run at 4K, I hate optimization now
@Timothymukansi
@Timothymukansi 3 жыл бұрын
Best way to improve performance without turning off post processing is to reduce poly count of the car model using Blender. 1M verts in a camera view is too high for mobile games.
@legendaryitem2815
@legendaryitem2815 4 жыл бұрын
You can cut down the verts rendered by creating various LoDs for objects. Also, a lot of performance boosts are not graphics related. You can save a ton of frames by optimizing your code, particularly anything occurring during Update(). Its amazing how you can tinker for days saving 3 or 4 frames here and there tweaking graphics yet have some unnecessarily expensive code lingering that is costing you a ton of frames.
@pabloslab
@pabloslab 4 жыл бұрын
true , but you cant explain everything in one video, there is a new video coming explaining how update affects the framerate
@samsidpradeep3114
@samsidpradeep3114 3 жыл бұрын
I would go into blender and decimate the interior to reduce the polygon count but still have the effect.
@sideways-885
@sideways-885 4 жыл бұрын
Actually occlusion culling somtimes decreases the preformance of the game, but good video keep it up bro :)
@LazyCliqueOFC
@LazyCliqueOFC 4 жыл бұрын
True
@MaggotMcFly
@MaggotMcFly 4 жыл бұрын
Has it happened to you?
@sideways-885
@sideways-885 4 жыл бұрын
@@MaggotMcFly yup
@byEVxL
@byEVxL 4 жыл бұрын
That’s wrong actually, this guy just has a bad pc, I’ve had games way bigger than this and I get like 200 FPS
@hakanviajando
@hakanviajando 4 жыл бұрын
@@euMYTHIC The reason for this is, if you game's performance is capped on cpu. Since occlusion will use more cpu, you will slow down your game. No need to use occlusion if gpu is not the bottleneck. Always profile and measure your game before deciding on any optimization path. Premature optimization is actually a bad thing, it can increase the bottleneck and also a lost of developer time.
@watercat1248
@watercat1248 4 жыл бұрын
You forgot reduced haw fur to see the camera and to add lod in your object in the order to increase the performance
@mukulkataria9128
@mukulkataria9128 4 жыл бұрын
You should try changing terrain setting height map resolution. Also try to use mesh terrain where's possible. Unity terrain has high overhead for CPU
@Meowzors
@Meowzors 4 жыл бұрын
You could also possibly bake all the different meshes and materials that are part of the car's body into one material and mesh with a modeling program. Same with all the other objects in your scene. However, you might want to do that last until you got the final look of the game down.
@joshpolman201
@joshpolman201 4 жыл бұрын
You could also optimize the landscape settings. This can save huge amounts of performance.
@pabloslab
@pabloslab 4 жыл бұрын
terrain system has built in LOD that automatically saves fps , pair that with culling and u got perfection
@joshpolman201
@joshpolman201 4 жыл бұрын
pablo Yeah it has it in built in, but you’ve got adjust the settings to optimise it: To do so, make sure “Draw Instanced” is checked, and adjust the “pixel error slider” until you have an acceptable balance between performance and quality. An example: setting the slider to 0 results in 300-400k on one of my levels in game, while setting the slider to 15 results in 30k - and this is only on one landscape. I think it defaults to 5, which is a good starting point (ends up with 80k in my scene). If you’re not adjusting that pixel error slider to suit your game, you’re throwing away FPS, trust me! Have a play, let me know how you go :)
@vasileiospgr
@vasileiospgr 4 жыл бұрын
you helped a lot, obviously ❤️
@notanamehere8355
@notanamehere8355 4 жыл бұрын
Elinas ....? LOL
@vasileiospgr
@vasileiospgr 4 жыл бұрын
@@notanamehere8355 ναι
@notanamehere8355
@notanamehere8355 4 жыл бұрын
@@vasileiospgr LOL NICE
@cptray-steam
@cptray-steam 4 жыл бұрын
Thank you, occlusion culling helped a lot!
@TAREEBITHETERRIBLE
@TAREEBITHETERRIBLE 3 жыл бұрын
why does he talk like HIDEO KUZE from Ghost In the Shell??
@o_Domo
@o_Domo 2 жыл бұрын
Thanks dude, will recommend to my friend who works at Battlestate Games, Tarkov is needing some love
@pabloslab
@pabloslab 2 жыл бұрын
@slendiv13
@slendiv13 2 жыл бұрын
I feel like chef baking that things
@kyandesutter1364
@kyandesutter1364 4 жыл бұрын
Nice tutorial, my PC runs 30 fps but now the framerate is higher!
@oozly9291
@oozly9291 3 жыл бұрын
?
@Jiry_XD
@Jiry_XD 4 жыл бұрын
Great Tutorial, Thanks!
@NadjibBait
@NadjibBait 3 жыл бұрын
Thank you for the video. But this is not real optimization. This is just disabling things and reducing quality, you basically just did what games do when you select "Low" in the game graphics options. *Optimization* is making your game run faster without *noticeable* visual quality downgrade. Anyway good luck and thank you again for the video!
@sampletext69420
@sampletext69420 3 жыл бұрын
Optimized for mobile up to 200fps Me: Why we need 200fps when the refresh rate for normal mobile devices is 60hz?
@tuncfreeman
@tuncfreeman 4 жыл бұрын
Hello, great video mate👏 👌🏼👍🏼. What do you think think abiut lowering occlusion number 5 to 3 or 2? Does it help fps too? Thank you so much
@DaniGaming333
@DaniGaming333 4 жыл бұрын
Very nice, although to optimise it, not to offend, but lowering graphics could do it?
@Shadow_Thief2000
@Shadow_Thief2000 3 жыл бұрын
Basically he took Real Racing 3 and made it Dr. Driving.
@kyandesutter1364
@kyandesutter1364 4 жыл бұрын
Im totally subbing!
@SwagWizard555
@SwagWizard555 3 жыл бұрын
My game was so badly optimized it used only bloom and color grading in post processing effects, was running on a decent computer, was low poly and the map was procedurally generated and ultra small, barely had any trees, three scripts, AND a few earlier attempts at optimization and it STILL RAN WORSE THAN THIS GAME Edit: turns out my character controller was for some reason dropping my fps SO MUCH to the point where I had to delete it. Thanks unity (:
@garyasparagus2722
@garyasparagus2722 3 жыл бұрын
fraps? YES LET'S gooo!!!!!!
@bierkules2608
@bierkules2608 4 жыл бұрын
But what is when I need Post Processing for my game.. kinda wierd video just saying disable everything.. well..
@MonkeyShark
@MonkeyShark 4 жыл бұрын
I think the video is meant for porting a game to mobile.
@bierkules2608
@bierkules2608 4 жыл бұрын
​@@MonkeyShark Still the same question. But I found a work around. Same results with post processing but with own written optimiced shaders for mobile.
@pabloslab
@pabloslab 4 жыл бұрын
you can always bake the shades , which is totally supported by unity , if u are looking for that in mobile video games , however using any sort of pp will cost alot performance wise even color grading costs enough to make the game unplayable on some devices, i hope that gave a some sort of answer to your question my friend
@bierkules2608
@bierkules2608 4 жыл бұрын
@@pabloslab yea I already noticed that pp is most likely nothing for mobile. I created a couple of computer games but nothing for mobile yet. So I thought yea pp wouldn't be that big of a deal.. fuck no, its a big deal. :D Thanks boi.
@joshpolman201
@joshpolman201 4 жыл бұрын
Ambient occlusion is the big killer. Color grading won’t be any where near as big a performance hit. DOF can slow things down too.
@aussieraver7182
@aussieraver7182 2 жыл бұрын
Thanks for the tutorial! How come the frames didn't have a big impact when you removed over 500k tris (interior car mesh)? I thought there would be a massive jump in fps.
@cinegraphics
@cinegraphics 3 жыл бұрын
Most of this can't be applied to procedurally generated terrain. Unless you wanna let the user wait for 10 minutes until the shadowmaps and occlusion data is generated.
@pabloslab
@pabloslab 3 жыл бұрын
procedural terrain in unity? i don't think thats gona work my man
@cinegraphics
@cinegraphics 3 жыл бұрын
@@pabloslab Well, I'm gonna try anyway :)
@michaelemma6605
@michaelemma6605 4 жыл бұрын
I already knew a lot of this, but it was a good refresher since I haven't been on Unity in a while.
@v.037
@v.037 4 жыл бұрын
But the game can't be maked only with small objects... After perfomance decrease for load more fast possible small objects...
@spoonixx
@spoonixx 4 жыл бұрын
besnik pc when he open unity games or any other 60+ fps my pc when i open unity or other games 13- fps me: i hate my pc life
@pabloslab
@pabloslab 4 жыл бұрын
hahaha , mine ain't that good either but it gets the job done
@firedragon5426
@firedragon5426 4 жыл бұрын
Your system spec tell me please
@omerfarukbykl6097
@omerfarukbykl6097 4 жыл бұрын
can we bake post processing effects? like color grading
@omerfarukbykl6097
@omerfarukbykl6097 4 жыл бұрын
inside unity or by changing original models
@pabloslab
@pabloslab 4 жыл бұрын
i think you can only bake in shades not sure if u can bake anything else like post processing
@joy211191
@joy211191 11 ай бұрын
I mean what you're basically doing is cutting out things. There's a fine balance between quality and performance. If you want too much quality, performance takes a hit. Cutting out let's say post processing is NOT optimization. This is not something viable. Sorry, but disabling things isn't the option. By that logic, let's remove the camera and get all the frame rate we can.
@brucetan2700
@brucetan2700 4 жыл бұрын
where i can find the "occlusion"? i can't find in my unity...
@DoctorMobius
@DoctorMobius 3 жыл бұрын
Look at 1:17 to see the menu option
@pulkit6453
@pulkit6453 3 жыл бұрын
love your content
@davekene
@davekene 4 жыл бұрын
Love this tutorial!
@gambikules
@gambikules 4 жыл бұрын
How disable post effect realy? I will make video about how disable shadows from point light lol for boost performance , or disable point lights... shit tutorail
@onlyskilledpeople9562
@onlyskilledpeople9562 4 жыл бұрын
sir i have question pls what verts is . is it verticals ?
@pabloslab
@pabloslab 4 жыл бұрын
its vertices
@onlyskilledpeople9562
@onlyskilledpeople9562 4 жыл бұрын
@@pabloslab thank you man
@EngiNetion
@EngiNetion 4 жыл бұрын
You are so underrated :(
@pabloslab
@pabloslab 4 жыл бұрын
haha , that's okay , thanks for thinking that way
@arsylgames
@arsylgames 4 жыл бұрын
@@pabloslab you are a really good KZbinr!
@pabloslab
@pabloslab 4 жыл бұрын
aww, thank you soo much for thinking that way
@wahajnasir5032
@wahajnasir5032 4 жыл бұрын
Sir if I want to upload pc game which website or other platform is good for earning
@BestProGG
@BestProGG 4 ай бұрын
На самом деле это лишь добавит пару фпс и особо не оптимизирует... есть метод о котором все молчат и почти никто незнает. Вы можете в настройках build settings сменить 32 битный буфер на 64 и отключить в other settings x86 и врубить Arm7 и сменить графический движок на Vulcan и это действительно мущевственно повысит фпс на мобилках и на компе но не так сущевственно и я этим способом на мобиле 30 фпс превратил в 60 но никто не знает об этом способе
@hazemmah3548
@hazemmah3548 4 жыл бұрын
Please make a tutos about unity Let me learn
@maduniverse839
@maduniverse839 4 жыл бұрын
how u made the road? can u please tell me
@pabloslab
@pabloslab 4 жыл бұрын
3d modeling software bro , blender
@maduniverse839
@maduniverse839 4 жыл бұрын
@@pabloslab ohhh....
@maduniverse839
@maduniverse839 4 жыл бұрын
I thought any unity add on.like road master or something.
@maduniverse839
@maduniverse839 4 жыл бұрын
Can u suggest me how to decrease game build size? My game build taking huge shader size.. shader and texture are taking most size.i have tried compressing texture.but it doesn't help that much.
@pabloslab
@pabloslab 4 жыл бұрын
use less components brother , pretty simple
@Drawing_with_Divine
@Drawing_with_Divine 4 жыл бұрын
I am your 991th subscriber
@pabloslab
@pabloslab 4 жыл бұрын
coincidence , i think not , lol just kidding
@Drawing_with_Divine
@Drawing_with_Divine 4 жыл бұрын
@@pabloslab I will like you to post more content on blender modeling
@Drawing_with_Divine
@Drawing_with_Divine 4 жыл бұрын
Pls
@pabloslab
@pabloslab 4 жыл бұрын
but i know absolutely nothing in blender , i only use cinema 4d ,
@Drawing_with_Divine
@Drawing_with_Divine 4 жыл бұрын
@@pabloslab no problem bro
@efekanpulatl8834
@efekanpulatl8834 3 жыл бұрын
Increase Pixel Error in Terrain Settings
@wahajnasir5032
@wahajnasir5032 4 жыл бұрын
Sir how I set engine curve plz make detail video on this
@pabloslab
@pabloslab 4 жыл бұрын
download the project, its in there
@wahajnasir5032
@wahajnasir5032 4 жыл бұрын
@@pabloslab were
@pabloslab
@pabloslab 4 жыл бұрын
kzbin.info/www/bejne/Z2rZhpiNmNR3bKs
@wahajnasir5032
@wahajnasir5032 4 жыл бұрын
Sir graph start form 100 and peak of graph is 800 but car speed is very I don't no y
@wahajnasir5032
@wahajnasir5032 4 жыл бұрын
If I up power like 4000 but my car always slow only my needle goes fast not my car
@deadlockgamer420
@deadlockgamer420 4 жыл бұрын
my game sometimes runs at 5FPS too 😅, will try those stuff
@rahulsbhatt
@rahulsbhatt 4 жыл бұрын
Did you manage to optimise?
@MEGA_TREE
@MEGA_TREE 3 жыл бұрын
So amazing
@general8417
@general8417 4 жыл бұрын
Hi I want to contact you
@pabloslab
@pabloslab 4 жыл бұрын
you can email me or join discord.
@shyamarama
@shyamarama 4 жыл бұрын
11:47 Thanks!
@musicteam5211
@musicteam5211 4 жыл бұрын
Bro, how can we set up graphic settings for android like "Dead Triggers 2" , the game has great graphics but there is no lag. I am afraid of using high graphic settings for android because it may cause to lag, but the game looks like cartoon although it is 3d game :)
@risyadr
@risyadr 4 жыл бұрын
i think they did a great job with graphic optimization, you can lower your object's polygon and minimize your script usage
@musicteam5211
@musicteam5211 4 жыл бұрын
@@risyadr @Risyad Athaya thank you bro, is there any tutorial about making lower object's polygon? Do you know any tutorial video about that? If you know, can you share the link with me please?
@luluskuy
@luluskuy Жыл бұрын
@@musicteam5211 maybe retopo it? If you have some 3d skill it best to retopo it
@musicteam5211
@musicteam5211 Жыл бұрын
@@luluskuy sorry but i did not understand what you mean
@wahajnasir5032
@wahajnasir5032 4 жыл бұрын
You upload this game on internat?
@gambikules
@gambikules 4 жыл бұрын
Internet
@bassemshalaby
@bassemshalaby 4 жыл бұрын
You're Awesome
@ahmadgamal9587
@ahmadgamal9587 4 жыл бұрын
for car windows there is a way to make interior mapping shader using unity 's shader graph and link for explain is here : kzbin.info/www/bejne/mobNf6J_rbaLd6M
@pabloslab
@pabloslab 4 жыл бұрын
thank you kind sir , i only found out about that a couple of days ago
@navinagarwal8906
@navinagarwal8906 4 жыл бұрын
Remove the car and place a cube and remove the mountains and place some texture photos of mountain and you will get the best performance seriously. I only liked the first one occlusion curling which I already knew... There are tones of optimisation techniques and this video talks about none.
@pabloslab
@pabloslab 4 жыл бұрын
true , but this video is mainly targeted for beginners if i can say so , im not a professional
@joshpolman201
@joshpolman201 4 жыл бұрын
Harsh man.
@jacobcass2447
@jacobcass2447 4 жыл бұрын
hehe boi. nice bro
@MegasVN69420
@MegasVN69420 4 жыл бұрын
nice
@CaptainNimo
@CaptainNimo 4 жыл бұрын
Basically you degraded your game quality.
@mnichu201
@mnichu201 3 жыл бұрын
my game actually runs at 500+ fps normally and after optimalization it was running at around 340 fps so xD
@rahulsbhatt
@rahulsbhatt 4 жыл бұрын
222 likes 😍😍😍
@pabloslab
@pabloslab 4 жыл бұрын
thanks to you all ❤
Unity Performance Tips: Draw Calls
4:24
Lofi Dev
Рет қаралды 201 М.
OPTIMIZE your Unity game using these performance tips | Tutorial
11:20
Sasquatch B Studios
Рет қаралды 24 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Top 10 Tips To Optimize Your Mobile Game - Unity 3D
8:06
CG Dealers
Рет қаралды 42 М.
Optimizing my Game so it Runs on a Potato
19:02
Blargis
Рет қаралды 700 М.
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,6 МЛН
The Art of Game Optimization
10:18
Worlds In Motion
Рет қаралды 287 М.
Динамическая оптимизация в UNITY! GPU instancing
7:40
Яковлев Илья - IT и игры
Рет қаралды 25 М.
Optimize Your Games In Unity To 60 FPS And Above!
11:18
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 35 М.
What I Did To Optimize My Game's Grass
8:13
Acerola
Рет қаралды 138 М.
I made a full GAME in 400 HOURS - this is how - in 19 minutes!
19:00