Unity Multiplayer Game Development - Crouching & Optimization
Vložit
- čas přidán 11. 06. 2024
- Unity Multiplayer Game Development - Crouching & Optimization. Hello guys, this is my 7th update video showing the progress on my current Unity multiplayer game project.
I am making a multiplayer first person game with multiple game modes. Currently I’m implementing common multiplayer features but it's fairly playable and almost ready for its first playtest. I hope to add many unique game modes that can be played in a variety of team sizes. Hopefully that will be fun but, we'll have to see.
----------------------
My Multiplayer Development Updates Playlist: • Multiplayer Game Updates
Tom’s Unity Multiplayer Networking Series: • Connecting Unity Clien...
Unity Billboarding Asset (Winterbolt): assetstore.unity.com/packages...
Discord: / discord
My Website: zxgames.net
----------------------
Time stamps:
0:00 - Intro
0:27 - Valley Map
1:54 - Crouching
2:54 - LOD Optimization
5:18 - Cloud Optimization
6:03 - Settings System
6:41 - Outro
----------------------
Music:
Title: Kubbi Cascade
Source: • Kubbi / Cascade
Title: Kubbi / Juggernaut
Source: • Kubbi / Juggernaut
My Specs:
GTX 970
Intel i7 6700k
32 GB Ram
#Devlog #GameDev #Multiplayer #Unity3D #Unity #IndieDev #LowPoly #GameDevelopment - Zábava
Dude, You are super underrated! The Game looks really awesome! I am currently making a 2.5d platformer in unity, and I look up a bunch of yt tuts and yt recommended me this video! :D CZcams recommendation system is really improving! :D
Thanks!
Finally a new devlog and a really good one, I really like the new models.
Thanks for sharing the billboard asset with us, it seems pretty useful! :)
Glad you like them! Yes Winterbolt's billboard asset is very useful and still being developed so the features will only get better :p
Keep going with this series, it's really inspiring for beginner devs!
Thanks, will do!
finallyyyyy ive been waiting forever im so fucking excitedddd
i have big hope for this game
i really like the artstyle and simplicty of it
I will try my best to make it live up to your hopes! Thanks :p
Just binged the whole series! highly underrated and i'm looking forward to the next devlog!
Glad you enjoy it! Thanks!
These devlogs make my day!
Glad they do! :p
I’m really enjoying this series! Watching them all rn
Awesome! Thanks for the binge watch!
Of course! Really inspired me to make my own game!
Same I’m also watching them all rn
Finaly im waiting for your upload
Its here! See you again in a month or so lol!
@@xzippyzachx Ok ok okkkkkk
It's great you can manage to make this great game simultaneously with university work!
Yeah progress is slow but steady
Thanks a lot for the promotion! Also nice project you got going there! Good luck!
No problem, its the least I can do for your help.
Looking brilliant dude!
Thanks! :p
Have watched the whole series now, great work! I am really exited to see more!
Glad you like them! Thanks for the support! See you in the next update video! :p
Dude, you have tons of talent
Thanks mate! :p
No prob bob :)
Man this videos are super interesting thank you !!!!!!!!
Glad you like them! :p
well video👍
Next map suggestion: rocket launch station
Thanks for the idea!
Brrrrrr great 👍
This world is looking awesome! Nice to hear you discuss your optimisation issues too.
Thanks! And yeah optimization is a struggle.
@@xzippyzachx I tried making a small game by downloading assets but since my map had lots of hi res grass and my computer is bad I used occlusion culling and it helped a lot.
@@xmaxcy5306 I am currently using occlusion culling :)
That’s awesome I still remember your first games lol I was in grade 8 with u I think
What's your name? I don't remember a batman :p
Looks good!
Thanks! :p
Great video, haven't seen many videos showing optimization so thanks for that. The crouch is also very nice although it must be pretty difficult with the characters small legs.
Glad you liked it! And yes 75% of the body is above the waist with my character so yeah its a little weird. :p
Little hint in regards to the saving settings - You can use the Unity playerprefs, which is a great solution for saving in game settings in all kinds.
Yep I have used playerprefs before. For this project I want my settings to be easily edited out of the application as well. That's why I opted to use my own saving file system. I may change it in the future though. Thanks!
i cant wait to play this
Glad you like it!
Already got a like ;)
Nice
5:14 that flying shadow is great :P
Are you using the new input system for Unity? Does that work nicely with keybinding?
Yes I actually switched to the new input system during this update. Just didn't mention it. But yes the key binding is the easy part about it. Its allows for easy controller integration too. Its the actual input detection that is different and a bit tricky to get used to using. Its also not the best documented yet. But I think it works better than the old input system.
Sounds like I'll have to look into that soon...
@@tomweiland It's a real lifesaver for controller support! I'm still trying to figure out how to do dynamic keybinding though
This is very very cool
This is cool
Cool! :p
Looks very greats!!! Love the vehicules! Btw watch out with the lod, this will make snipers more easely killing people hided behind a trees. you can also use occlusion culling. it will desable everything that your cam dont see.
Yes I have to make sure that LOD does not effect gameplay us much as possible. Currently when you ADS the FOV gets smaller and so the LOD distance increases. But yes this needs to be considered. Also I am using occlusion culling already. Thanks!
gonna be lit
🔥🔥🔥
I was watching dani and saw this dude your awesome 😎 have some cool milk 🥛
Thanks! :p
An easier solution for the clouds would be a shader, I used GPU instancing a lot, and had way better results than Unity's particle system. However I had even better results with VFX graph.
Yeah VFX graph might be a good idea. Gotta learn how to use it first! :p
Cool
I love your work. I think maybe you should give the characters cosmetics aka hats :)
Do you have power up system in your game?
I know this is more advanced stuff. sorry about that.
Yeah I do plan on having some sort of character customization. As for power ups I'm not sure.
nice
Thanks
I had an idea on how you could make the interior of the houses cool looking without adding a ton of furniture. I don't know if its possible or not but you could try adding different textures to the walls in main rooms like the bathroom, living room, ect. as al lways keep u the great work
Well my art style is low poly with flat colors. I don't think I want to add textures. Thanks though :p
Epic
Epic x2
Would love to play test when it's ready!
Cool!
If you have glass or any kind of flimsy material, you should consider making wallbanging a thing, and reducing the damage after hitting said material like in csgo
Yeah I have that on my list! Thanks :p
IVE BEEN WAAAAOTING
Actually I remembered a much better technique for saving huge FPS with your trees. Make all trees one mesh within blender, one material, and the draw would be incredibly fast, much faster than the LOD junk. Because you are only drawing one object with many vertices, it will be very fast.
Or write your own combine mesh script, I did in the past.
@@ZaCkOX900 I might give it a try at least for the far away trees. The closer trees have shades that make the leaves sway. Ill give it a try though!
Through my tests the next performance hit is from the unity terrain grass. I might experiment with my own grass shader some day. Thanks!
I‘d use playerprefs for the settings. It’s fast to implement and stores the values in the registry. Ik how insecure they are but that’s irrelevant for a settings menu.
Yeah playerprefs work great for settings too. I just prefer a simple txt file since its really easy for people to manually edit the settings through the file of they need to. Thanks for watching :p
Hey xzippyzachx I know that you will probably not go ahead with this as you have much better things to do with your time but I am sure that I amongst many others will want a some sort of tutorial on that movement script and mouse script, I have been struggling going form tutorial to tutorial trying to find somthing that works but no chance, so I will be very grateful even if you send me over a couple of those scripts over discord (PolarSauusRex#3917) or make a tutorial on them. Keep up the great work! I binged the whole of this series and found it very entertaining. Also I would definately recommend streaming these types of things on twitch in some kind of coding stream, I would definately tune in. Once again keep up the great vids!
Join my discord server :p
you should do a volcanic map that would be so cool!
Nice idea! Maybe
U N I T Y'S P A R T I C L E S Y S T E M
Yessss! :p
How do you manage input prediction? Isn’t it hard with a rigid body controller?
I currently don't have any client side movement prediction. I will be looking into implementing this in the future
CLOUDS R GREAT NOW (they were great but u made them better)
Thanks!
Please make i tourials haw you create the setings system becuse i want to add the option to change the buttons from my games
I don't have time to make a tutorial on it, but go check out Dapper Dino's tutorial on it czcams.com/video/dUCcZrPhwSo/video.html
@@xzippyzachx ok thenx
What is your keyboard and mouse?
Razer Ornata Chroma and Razer Mamba Chroma
GPU instancing is always faster, I think you might of not been using it to the full advantage. Meaning you might of been doing allocation or something during gameplay.
What do you mean by allocation?
@@xzippyzachx If you use the profiler, you can see how much allocation you are doing, well not all of it but you can see a lot of it. Allocation happens when you need something new, a class for instance, not really a structure. Lists use allocation, they create new arrays if they need them while you add to them. Also using List.ToArray() creates allocation. When you allocate and the next frame or so, if references to those objects are lost, then the Garbage Collector will run to collect the resources for future use. This process is very slow and the more times it runs in your game, the lower your frame rate drops.
@@ZaCkOX900 Ah, now I know what you meant by allocation. Thanks!
Why use LOD, an not just bake all trees into one model? As long as you dont plan to dynamically chop down the trees, its faster to just generate one large Model containing all the trees (by script or via an FBX export).
That could be another good approach
Ohh pls make a city map!
Maybe!
How do you do the terrrian using unity or blender
Do you desgin this inside(toilet bed) with unity or blender
The terrain is a Unity terrain. All the models (trees, buildings, character, cars) I made in blender
Dani unity’s particle system.
Yes the Unity particle system is awesome! Just like Dani says :p
why he dont pick up the gun with two hands
I haven't made both hands hold the items yet
Can you make a titorial how to make the local settings file pls.
Its a pretty easy google. You just need to read and write to a settings text file.
@@xzippyzachx i have searched a lot bit it looks like im not searching the right thing. Can you say me what exacly to search?
Brackeys has a tutorial on saving and loading I think
@@xzippyzachx thanks a lot
I think next them must be an aeroport 😁
An airport?
@@xzippyzachx yes sorry my keyboard is frensh
Could you do a coding live stream?
I have though about it
when can i download it
Join my discord. The first playtest will be in the next few weeks
@@xzippyzachx KK THX I LOVE YOURE VIDSEOS
i think a map should be like a city or a building
and i also think there should be a knife in this game but thats just a suggestion :D
Yeah I hope to make lots of maps
Yep melee weapons are on my list to add
Make a desert or city map.
A desert map is on the list. Some sort of city map would be cool yeah.
Make a futuristic map
A space map is on the list!
How much does it cost to have a server ?
If you host it on your own pc then it costs nothing. But if you use cloud hosting in depends on the pricing of the platform you choose to host with. Amazon and Google have hosting services you can check out.
Thank you for the quick response you have got a new subscriber
Thanks! Welcome to the channel!
make the mirror actually show the player(s)
Maybe...
Would be great if cars were functional!
I plan to eventually
Dani man Milk
DANI! :p
In my opinion the clouds dont fit that much
Although they are better than the first ones
Really? I thought they matched the low poly style. Any suggestions for the clouds then?
@@xzippyzachx i actually really like the clouds, they look weird from above/close but look pretty natural from the ground
Yeah that might be it
Game name?
X-Mode
its booring with one
Not sure what you mean
why you dont make him hold the guns with two hands