Unity Multiplayer Game Development - Crouching & Optimization

Sdílet
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

Komentáře • 158

  • @redchilli2563
    @redchilli2563 Před 3 lety +6

    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

  •  Před 3 lety +5

    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! :)

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +2

      Glad you like them! Yes Winterbolt's billboard asset is very useful and still being developed so the features will only get better :p

  • @krazzarkov28
    @krazzarkov28 Před 3 lety +5

    Keep going with this series, it's really inspiring for beginner devs!

  • @talrushkeviz5582
    @talrushkeviz5582 Před 3 lety +2

    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

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      I will try my best to make it live up to your hopes! Thanks :p

  • @ZeckPlays
    @ZeckPlays Před 3 lety +5

    Just binged the whole series! highly underrated and i'm looking forward to the next devlog!

  • @milknodev
    @milknodev Před 2 lety +1

    These devlogs make my day!

  • @studiojace
    @studiojace Před 3 lety +6

    I’m really enjoying this series! Watching them all rn

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +2

      Awesome! Thanks for the binge watch!

    • @studiojace
      @studiojace Před 3 lety +2

      Of course! Really inspired me to make my own game!

    • @deleteduser09485
      @deleteduser09485 Před 3 lety +1

      Same I’m also watching them all rn

  • @reez_gd5408
    @reez_gd5408 Před 3 lety +2

    Finaly im waiting for your upload

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      Its here! See you again in a month or so lol!

    • @reez_gd5408
      @reez_gd5408 Před 3 lety +1

      @@xzippyzachx Ok ok okkkkkk

  • @garrettdeveloper
    @garrettdeveloper Před 3 lety +6

    It's great you can manage to make this great game simultaneously with university work!

  • @winterboltgames
    @winterboltgames Před 3 lety +1

    Thanks a lot for the promotion! Also nice project you got going there! Good luck!

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      No problem, its the least I can do for your help.

  • @divingsquid
    @divingsquid Před 3 lety +1

    Looking brilliant dude!

  • @infinity8732
    @infinity8732 Před 3 lety +1

    Have watched the whole series now, great work! I am really exited to see more!

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Glad you like them! Thanks for the support! See you in the next update video! :p

  • @gcstudios9091
    @gcstudios9091 Před 3 lety +2

    Dude, you have tons of talent

  • @Mikelica69
    @Mikelica69 Před 3 lety +1

    Man this videos are super interesting thank you !!!!!!!!

  • @27chcraft_dev80
    @27chcraft_dev80 Před 3 lety +1

    well video👍
    Next map suggestion: rocket launch station

  • @circlexc908
    @circlexc908 Před 3 lety +2

    Brrrrrr great 👍

  • @Skeffles
    @Skeffles Před 3 lety +1

    This world is looking awesome! Nice to hear you discuss your optimisation issues too.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +2

      Thanks! And yeah optimization is a struggle.

    • @xmaxcy5306
      @xmaxcy5306 Před 3 lety +2

      @@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.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      @@xmaxcy5306 I am currently using occlusion culling :)

  • @batman-ox3ee
    @batman-ox3ee Před 3 lety +3

    That’s awesome I still remember your first games lol I was in grade 8 with u I think

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +2

      What's your name? I don't remember a batman :p

  • @azitjamjam
    @azitjamjam Před 3 lety +1

    Looks good!

  • @tauheedgamedev2388
    @tauheedgamedev2388 Před 3 lety +1

    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.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      Glad you liked it! And yes 75% of the body is above the waist with my character so yeah its a little weird. :p

  • @BrassBoii
    @BrassBoii Před 3 lety +1

    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.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      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!

  • @RealHalal
    @RealHalal Před 3 lety +2

    i cant wait to play this

  • @Tornadoally
    @Tornadoally Před 3 lety +11

    Already got a like ;)

  • @tomweiland
    @tomweiland Před 3 lety +4

    5:14 that flying shadow is great :P
    Are you using the new input system for Unity? Does that work nicely with keybinding?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      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.

    • @tomweiland
      @tomweiland Před 3 lety +1

      Sounds like I'll have to look into that soon...

    • @RugbugRedfern
      @RugbugRedfern Před 3 lety

      @@tomweiland It's a real lifesaver for controller support! I'm still trying to figure out how to do dynamic keybinding though

  • @l0ne872
    @l0ne872 Před 3 lety +1

    This is very very cool

  • @KNYGuy
    @KNYGuy Před 3 lety +7

    This is cool

  • @JayCode_dev
    @JayCode_dev Před 3 lety +1

    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.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      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!

  • @mlgsquirrel
    @mlgsquirrel Před 3 lety +1

    gonna be lit

  • @PurdiePurple
    @PurdiePurple Před 3 lety

    I was watching dani and saw this dude your awesome 😎 have some cool milk 🥛

  • @ZaCkOX900
    @ZaCkOX900 Před 3 lety +1

    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.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Yeah VFX graph might be a good idea. Gotta learn how to use it first! :p

  • @moonknight7564
    @moonknight7564 Před 2 lety +1

    Cool

  • @daboxguy3848
    @daboxguy3848 Před 3 lety +1

    I love your work. I think maybe you should give the characters cosmetics aka hats :)
    Do you have power up system in your game?

    • @daboxguy3848
      @daboxguy3848 Před 3 lety

      I know this is more advanced stuff. sorry about that.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Yeah I do plan on having some sort of character customization. As for power ups I'm not sure.

  • @seremix774
    @seremix774 Před 3 lety +1

    nice

  • @champerion3436
    @champerion3436 Před 3 lety +1

    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

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Well my art style is low poly with flat colors. I don't think I want to add textures. Thanks though :p

  • @iksuddle
    @iksuddle Před 3 lety +1

    Epic

  • @scottmorrier9874
    @scottmorrier9874 Před 3 lety +1

    Would love to play test when it's ready!

  • @grahammatthewrichardsdonal1814

    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

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Yeah I have that on my list! Thanks :p

  • @JustVouxe
    @JustVouxe Před 3 lety +1

    IVE BEEN WAAAAOTING

  • @ZaCkOX900
    @ZaCkOX900 Před 3 lety +1

    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.

    • @ZaCkOX900
      @ZaCkOX900 Před 3 lety

      Or write your own combine mesh script, I did in the past.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      @@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!

  • @nlk294
    @nlk294 Před rokem +1

    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.

    • @xzippyzachx
      @xzippyzachx  Před rokem

      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

  • @mixolydian3498
    @mixolydian3498 Před 3 lety +2

    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!

  • @ZakarovZero
    @ZakarovZero Před 3 lety +1

    you should do a volcanic map that would be so cool!

  • @hdhwkq
    @hdhwkq Před 3 lety +2

    U N I T Y'S P A R T I C L E S Y S T E M

  • @bajinobo
    @bajinobo Před 3 lety +1

    How do you manage input prediction? Isn’t it hard with a rigid body controller?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      I currently don't have any client side movement prediction. I will be looking into implementing this in the future

  • @sweettwins366
    @sweettwins366 Před 3 lety

    CLOUDS R GREAT NOW (they were great but u made them better)

  • @watercat1248
    @watercat1248 Před 3 lety +1

    Please make i tourials haw you create the setings system becuse i want to add the option to change the buttons from my games

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      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

    • @watercat1248
      @watercat1248 Před 3 lety

      @@xzippyzachx ok thenx

  • @Qiuvillage
    @Qiuvillage Před 3 lety +1

    What is your keyboard and mouse?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Razer Ornata Chroma and Razer Mamba Chroma

  • @ZaCkOX900
    @ZaCkOX900 Před 3 lety +1

    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.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      What do you mean by allocation?

    • @ZaCkOX900
      @ZaCkOX900 Před 3 lety

      @@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.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      @@ZaCkOX900 Ah, now I know what you meant by allocation. Thanks!

  • @vast634
    @vast634 Před 2 lety +1

    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).

  • @djcrytec7177
    @djcrytec7177 Před 3 lety +1

    Ohh pls make a city map!

  • @evanb276
    @evanb276 Před 3 lety +1

    How do you do the terrrian using unity or blender

    • @evanb276
      @evanb276 Před 3 lety +1

      Do you desgin this inside(toilet bed) with unity or blender

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      The terrain is a Unity terrain. All the models (trees, buildings, character, cars) I made in blender

  • @Qiuvillage
    @Qiuvillage Před 3 lety +1

    Dani unity’s particle system.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Yes the Unity particle system is awesome! Just like Dani says :p

  • @nemzedg3640
    @nemzedg3640 Před 3 lety +2

    why he dont pick up the gun with two hands

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      I haven't made both hands hold the items yet

  • @PreslavKolev
    @PreslavKolev Před 3 lety +1

    Can you make a titorial how to make the local settings file pls.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Its a pretty easy google. You just need to read and write to a settings text file.

    • @PreslavKolev
      @PreslavKolev Před 3 lety

      @@xzippyzachx i have searched a lot bit it looks like im not searching the right thing. Can you say me what exacly to search?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Brackeys has a tutorial on saving and loading I think

    • @PreslavKolev
      @PreslavKolev Před 3 lety +1

      @@xzippyzachx thanks a lot

  • @MGDMomoGameDev
    @MGDMomoGameDev Před 3 lety +1

    I think next them must be an aeroport 😁

  • @varunrajkumar2764
    @varunrajkumar2764 Před 3 lety +2

    Could you do a coding live stream?

  • @friendlyneighborhoodmemer18

    when can i download it

  • @h2squared
    @h2squared Před 3 lety +1

    i think a map should be like a city or a building

    • @h2squared
      @h2squared Před 3 lety +1

      and i also think there should be a knife in this game but thats just a suggestion :D

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Yeah I hope to make lots of maps

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Yep melee weapons are on my list to add

  • @thelunarzombie2456
    @thelunarzombie2456 Před 3 lety +1

    Make a desert or city map.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      A desert map is on the list. Some sort of city map would be cool yeah.

  • @LAE-7
    @LAE-7 Před 3 lety +1

    Make a futuristic map

  • @Duster_1
    @Duster_1 Před 3 lety +2

    How much does it cost to have a server ?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      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.

    • @Duster_1
      @Duster_1 Před 3 lety +2

      Thank you for the quick response you have got a new subscriber

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      Thanks! Welcome to the channel!

  • @meganchristensen1068
    @meganchristensen1068 Před 3 lety +1

    make the mirror actually show the player(s)

  • @majenbej
    @majenbej Před 3 lety

    Would be great if cars were functional!

  • @willblazblaz
    @willblazblaz Před 3 lety +1

    Dani man Milk

  • @sakiomam3421
    @sakiomam3421 Před 3 lety +2

    In my opinion the clouds dont fit that much
    Although they are better than the first ones

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Really? I thought they matched the low poly style. Any suggestions for the clouds then?

    • @atomicalex1732
      @atomicalex1732 Před 3 lety +1

      @@xzippyzachx i actually really like the clouds, they look weird from above/close but look pretty natural from the ground

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Yeah that might be it

  • @user-vd8dt5ln9t
    @user-vd8dt5ln9t Před 9 měsíci

    Game name?

  • @nemzedg3640
    @nemzedg3640 Před 3 lety

    its booring with one

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Not sure what you mean

    • @nemzedg3640
      @nemzedg3640 Před 3 lety +1

      why you dont make him hold the guns with two hands