Optimizing For Quest - How & Why [Unity]

  Рет қаралды 10,603

Danger Dom

Danger Dom

Күн бұрын

Пікірлер: 36
@dangerdom904
@dangerdom904 3 жыл бұрын
If you have any questions, I'm ready to answer them! discord.gg/YHKCQP6REp
@DeLongFreelance
@DeLongFreelance 5 ай бұрын
Great video. Very succinct and to the point. I love it. Still relevant 3 years later. All of these settings still apply even for Quest 3 - with maybe a little more head room for shadows and textures.
@onerimeuse
@onerimeuse 2 жыл бұрын
I've been digging for this for so long. Thanks for putting this out!
@praveenb-xr
@praveenb-xr Жыл бұрын
Very Informative man. Subscribed!
@r1pfake521
@r1pfake521 2 жыл бұрын
Random bonus tip: Be careful when you import "art assets" from the asset store. Some of them include "demo scripts" which are usually not optimized or just bad code in general. Sure if it is a dedicated code asset then read the reviews or check the code yourself, but never use code from an "art pack". I made this mistake myself, I bought a particle effect pack and a weapon shader effect pack, both of these packs insluded "demo scripts" on their prefabs with very nasty code which caused huge allocations and framedrops. Since then im very careful which components these "art" prefabs actually include.
@aliengarden
@aliengarden Жыл бұрын
Absolute banger of a video, underrated. Instant subscribe.
@Beeshke
@Beeshke 3 жыл бұрын
Hey this video is awesome thanks for making it. Very very helpful man. Watched all of it and learned a ton
@dangerdom904
@dangerdom904 3 жыл бұрын
I'm glad it was helpful :D
@bella-rp2rw
@bella-rp2rw 2 жыл бұрын
Hi man,i am creating a unity3d project for VR,on unity3d it runs at more than 200fps,60 banches and nice ms. But when i try it on my guest 2 it runs at no more than 42/45 fps and more than 20ms,i tried all the tips in the video,and the problem is on the garbage code. My question is,i have exacly 270,3k of garbage code,is it enought to compromise at this level the performances or there is another problem? New subscribe✌
@dangerdom904
@dangerdom904 2 жыл бұрын
What do you mean 270k of garbage code?
@bella-rp2rw
@bella-rp2rw 2 жыл бұрын
@@dangerdom904 min 11.0 in that screen that shows the analysis of the app,under the “GC allocate” I have 2.2kb
@dangerdom904
@dangerdom904 2 жыл бұрын
@@bella-rp2rw 2.2kb of garbage is significant yes. Especially if you're allocating that every frame. I would try and get rid of that. You never want any garbage if you can help it.
@bella-rp2rw
@bella-rp2rw 2 жыл бұрын
I solved the problem
@dangerdom904
@dangerdom904 2 жыл бұрын
@@bella-rp2rw What was it?
@TrentSterling
@TrentSterling 3 жыл бұрын
Good list of optimizations! Have you profiled URP vs BiRP to make sure URP really performs the best on quest?
@chrissoares8062
@chrissoares8062 2 жыл бұрын
I was just looking for a video on this lol
@tzuriteshuba2704
@tzuriteshuba2704 2 жыл бұрын
great tips man, thanks a lot!
@ControllerQuickSwaps
@ControllerQuickSwaps 2 жыл бұрын
Make it like this
@ellieelias6336
@ellieelias6336 2 жыл бұрын
since this was in 2021, i wanted to ask. in your experience of how things have come so far, with the quest 3 coming etc., in your opinion, do you think they are going to improve for the use of shadows? If so, how much do you think it might be (or how would I research this - I'm interested in shadow and lighting more specifically)? I don't know anything about this stuff, but you mentioned how shadows went from 0 use to a "maybe but be carful" I'm wondering if things have changed much for vr from a dev standpoint. I just did this week start learning about this! thank you for a great video! just subbed!
@dangerdom904
@dangerdom904 2 жыл бұрын
The go to methods for creating dynamic shadows have been the same for a long time now (shadow mapping), so really barring some sort of algorithmic breakthrough, which I doubt, we'll be relying on increasing computation for shadows for a while. This means that even if the new headsets get better it is unlikely people will put those extra computational resources towards dynamic shadows as they are easy enough to just bake in (light baking/static lighting). As far as researching that kind of thing there's no better way than learning some opengl and writing your own rendering engine/playing around on shadertoy. There's a bunch of good books involving rendering as well. Realtime Rendering, Physically Based Rendering, GPU Gems, Book of Shaders. What you're talking about is called graphics engineering/programming and it's a very exciting field to be in. You would also want to work on your math knowledge or the algorithms might seem intimidating. Nothing much has changed in VR dev except different APIs as everyone tries to sort out how to write one program for all the different headsets that are coming out. Same old same old.
@ellieelias6336
@ellieelias6336 2 жыл бұрын
@@dangerdom904 wow that is all very helpful!! Thank you so much! I am going to check out this stuff and look into it. I just started watching a video series to learn about using unity and blender and some other free programs too. Thank you again!!
@lxrdwander5031
@lxrdwander5031 2 жыл бұрын
Thanks so much for this!!!
@CosplayZine
@CosplayZine 2 жыл бұрын
Hmm so even the weakest post processing settings will negatively effect VR? Im see people on Reddit say it can be used for certain effects such as bloom, ao, color grading and vignette. So maybe it depends on your other settings and object related optimization the amount of effect that post processing will have.
@dangerdom904
@dangerdom904 2 жыл бұрын
So basically you have a rendering budget, let's say 16ms if you're targeting 60 fps. And if you can get everything done in 10ms then you can really add whatever you want on top of that (like post processing), it's just that it's not normally worth it to take up a few milliseconds of the budget for post processing. It's also possible to write custom shaders that just do the post processing in the initial draw call, then it'd kind of be for free. Since the real problem on mobile systems is bandwidth (moving textures around), which post processing involves.
@ProjectThirdEyeVR
@ProjectThirdEyeVR 2 жыл бұрын
A very nice video!
@AsylumDWP
@AsylumDWP Жыл бұрын
so what happens when my batches are at 712 with 2.3m tris and 5.0m verts :D
@dangerdom904
@dangerdom904 Жыл бұрын
Lol. You play shutter mode.
@dangerdom904
@dangerdom904 Жыл бұрын
Of course if you'd like to optimize it there are options. But that would be outside the scope of this video.
@endgamedevs
@endgamedevs 2 жыл бұрын
How would you do outlines without post processing?
@dangerdom904
@dangerdom904 2 жыл бұрын
You could write a shader that checks the normal against the camera view direction in the fragment shader. This is normally how you add fresnel shading to an object. It's not going to be perfect but might be good enough. You might also be able to bake a texture that holds the pixels curvature to deal with some of the artifacts of the above strategy. You ~might~ be able to do a depth prepass and then use ddx in the fragment shader but I'm not sure about the performance implications of that.
@bugbystudios
@bugbystudios 2 жыл бұрын
Thank you for this!!
@gtipold9009
@gtipold9009 3 жыл бұрын
thanks for the video!
@capitaljay1
@capitaljay1 Жыл бұрын
I’m subscribing and going through your videos (and using metas tutorials), but where else can I find information about developing for the quest specifically?
@antisony2008
@antisony2008 2 жыл бұрын
awesome
@Thonder
@Thonder 2 жыл бұрын
thank you!
3D Noise For Unity Shadergraph
1:46
Danger Dom
Рет қаралды 8 М.
Optimize your Unity Game Settings for the Meta Quest
8:27
Fist Full of Shrimp
Рет қаралды 25 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
VR Optimization and Performance Tips for Unity
14:22
VR with Andrew
Рет қаралды 52 М.
Your VR Success Guide: Tailoring URP Settings for Peak Performance
8:38
Fist Full of Shrimp
Рет қаралды 22 М.
How to Optimize Unity Project Settings for Meta Quest 2
13:56
Ludic Worlds
Рет қаралды 25 М.
Why Solo Developers Should Use Unreal
9:51
Thomas Brush
Рет қаралды 453 М.
Watch This Before Working on a Big Game in Unity
18:44
John Leorid
Рет қаралды 301 М.
7 Ways to Optimize your Unity Project with URP
11:18
Unity
Рет қаралды 214 М.
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,5 МЛН
How to Optimize Your Unity Projects for Max Performance - P3 Optimization Framework + Example
30:41
The Gamedev Guru | Unity Performance Expertise
Рет қаралды 3,9 М.
Unity Code Optimization - Do you know them all?
15:49
Tarodev
Рет қаралды 199 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН