Watch This Before Working on a Big Game in Unity

preview_player
Показать описание
Making huge games in unity can quickly lead to problems - hopefully this video can help you to avoid them.

Links:

CrossScene Reference / GUID Based Reference:

Material Property Override:

NavMeshComponents:

Video Devlog by Robert Thomson:

Timestamps:

00:00 - Intro
00:39 - Hardware
01:13 - Lighting
02:09 - Pro Builder
03:16 - Editor Performance
04:45 - Runtime Performance
06:53 - Planning for Performance
07:59 - No Automatic Systems
09:01 - Finding Close Objects
09:57 - Physics
11:22 - Non Player Characters (NPCs)
13:05 - Memory Management
13:48 - Reuse Assets
14:35 - Coding
15:01 - Profiling
15:59 - Keep Things Simple
16:27 - Summary
17:42 - Outro

My Twitter:
Рекомендации по теме
Комментарии
Автор

And now i have a question, what’s a big game ?

skyfoz_
Автор

When using a game with a large open world: keep in mind the problems with float imprecision. If your camera gets away more than like 2000 units from the origin, animations can start to flicker and shake. Look up various methods of "origin shifting" to solve that problem by moving the scene dynamically closer to the origin point.

vast
Автор

I think one of the biggest hurdles (atleast for me) working with larger projects is to say "no" to things I want to have in the game. There is usually sooo much that I want to add to the game, there is a need to mash all those idéas into doable tasks.

EvilRobin
Автор

Heyho, Game Dev here for Unity. I do a lot of profiling, and we are using Renderdoc. Its an extremely important tool as you can link it to Unity and grab Frames to analyze. It is similar to the Frame Debugger, but much much more indepth.

When we started optimizing we were constantly checking our builds, and with Renderdoc we removed about 1/3 of GPU overhead already.
One important topic to mention from GPU sides are shaders, lights, shadows and texture sizes. But thats probably a whole other video as well.

Great Job otherwise.

Grüße

GamingwithRedPhoenix
Автор

Even five minutes into the video, I could barely believe how densely packed this video is with useful information. Thank you for this great video.

guitarrocks
Автор

This is quality content. Well done.

It's so hard to find topics about big projects with Unity. I hope you continue to share your knowledge.

INeatFreak
Автор

This is very good content. I would love that video on an Event system.

marceldoe
Автор

This video is amazing. On YouTube the most of the videos about Unity are good enough for beginners or intermediate, but there aren't too many videos about these complex topics. I think that if you could create some videos about coding a big game it should be fantastic! Thanks again for the video

lorenzoconsoli
Автор

I guess it goes without saying, but if you want to make a big complicated game, you need to be knowledgeable about game development, intelligent, and experienced. Too many inexperienced developers have big dreams of making big games that will be the next [insert open world game here].

I'm 36 now, and I've been doing this since I was about... 15. At this point in my life, I'm more than just a "jack of all trades, master of none, " I know most aspects of game development on a deep level. I'm a jack of all trades and master of many of those trades. When I set out to make a big complicated game, the planning phase is monumentally important. I need to plan what the game looks like structurally before I place a single cube down in Unity. I need to have an idea of what the data will be structured like, I need to figure out if I'm going to use virtual texturing, HDRP, URP, how I'm going to pack my textures, what kind of audio fidelity is needed, what the art style needs to be to suit my aesthetic and performance desires, decide how modern the game will be and how that will affect how many people will be able to run it (will I be making a game with baked lighting? Am I making a very modern game that uses no baked lighting and uses ray tracing features exclusively? Is there a level of dynamism in the game that it even warrants real time lighting?)...

There's a lot to consider, and if you're only a couple years into game development you might not even be aware of what questions to ask and what to consider, let alone how to consider it.

As far as optimization, in my experience I've come to realize that rather than "don't optimize until you need to, " time and experience will teach you what optimizations can be done in all kinds of situations, and you should carry those optimizations into EVERY project you do. Because if you optimize (and PLANNED!) your game all along, you won't have to after it's done which can lead to soul-crushing code refactors and bugs on the tail end of your development.

SkeleTonHammer
Автор

Videos like these are legendary and must saves. This talks about many things you don't often hear about in 99% Game Dev videos. And it was purely knowledge, and no bull shit.

MohanABK
Автор

Interesting topic, good to see more videos about it. I think there are more aspects to it, but these are def. some important ones. The part about the navmesh volumes was awesome, I didn't know about that!
There is something for GPU/shader analysing too, the Frame Debugger, where you can step through separate draw calls and such.

dreamisover
Автор

this is really good content, this type of information is kind of hard to find when you encounter an issue related to them, so it's really beneficial to know them before you encounter these issues, just having the knowledge that a solution exists for a certain problem will save a lot of time when you encounter them.

game devs really need someone like you, keep it up I think your the next Brackeys

fawazaljohani
Автор

Thank you for teaching about the material override. I had no idea that was a thing and makes things SO much better than having to create another material instance when I just need a slightly different material.

pikachufan
Автор

I would greatly appreciate another video on the event system you mentioned and a more in-depth look at organizing code for a complex game like that. Excellent video btw.

gotbaka
Автор

Some real helpful things to consider here, even though I personally don't intend to make a "big" project and instead focus on smaller contained maps myself, keeping all these things in mind is still important and good practice.

Will subscribe and look out for more helpful vids from you. :D

facepalmedev
Автор

That's why its best to use mixed lighting (baked on some areas & realtime on others)

styliejoker
Автор

walls arround cities is good for 2 reasons.
1)you dont have to render the city if you are distant from it, as you said.
2)you dont have to render everything outside the city if you are inside it.

igorgiuseppe
Автор

Me making a 2D tic tac toe game: "Ah yes this is relevant to me"

TheGodEmperorOfMankind_
Автор

Thanks for this content! There is a lot of content about making demos and for beginners of Unity, but really lack content like yours about how to build complex systems and larger project! Subscribed!

xiaotan
Автор

occlusion culling and static batching saved my game. Occlusion has a lot of hiccups but I'm glad I figured it out.

ebolei