Everyday Unity
1.15K subscribers
163 photos
59 videos
42 files
2.37K links
A game developer and tech lead in a top grossing company posting Unity, programming, and gamedev related stuff that I find interesting
Website: https://gamedev.center

Most used tags are:
#performance
#shader
#interview

Author: @alexmtr
Download Telegram
Do I need to dispose of Tasks? - .NET Parallel Programming

Short answer: No.
The only time you may want to dispose a Task is when you are explicitly using IAsyncResult.AsyncWaitHandle which causes an allocation of a disposable resource. But even in that case you may not bother disposing it.

https://devblogs.microsoft.com/pfxteam/do-i-need-to-dispose-of-tasks/

#tpl #async
๐Ÿ‘4
This media is not supported in your browser
VIEW IN TELEGRAM
Retro3DPipeline: A minimal example of a custom render pipeline with the Retro3D shader.

https://github.com/keijiro/Retro3DPipeline

#srp #renderpipeline
๐Ÿ‘3
Simplex Derivatives

How to calculate derivatives of simplex noise and use them to generate normal and tangent vectors for procedurally generated meshes. Allows offloading the work from the main thread, since built-in RecalculateNormals() method runs only on the main thread.

https://catlikecoding.com/unity/tutorials/pseudorandom-surfaces/simplex-derivatives/

#normals #jobsystem #tangents #pcg
๐Ÿ‘3
Temporal Anti-Aliasing(TAA) for Unityโ€™s Universal Render Pipeline

Unity's default Temporal Anti-Aliasing(TAA) has some problems in URP. Natively, URP does not support TAA while Unity PostProcess V2 does support. However, PostProcess V2's support fails for TAA because it cannot jitter the camera in the ScriptableRenderPipeline

https://github.com/sienaiwun/TAA_Unity_URP

#taa #antialiasing #urp #renderfeature
๐Ÿ‘3
๐Ÿ‘4
Simplified Clean Architecture Design Pattern for Unity

An example of a clean architecture inspired by the book of Bob Martin of the same name. It has some contradictions to the original, so you can start with it and then check the book or its short review to decide what goes better for your project.

https://genki-sano.medium.com/simplified-clean-architecture-design-pattern-for-unity-967931583c47

#architecture #cleanarchitecture
๐Ÿ‘3
Announcing new tools for multiplayer development | Unity Blog

Netcode for GameObjects and Entities, interesting net stats tools out of the box, and low level networking package. As well as a bunch of samples which sounds awesome.

https://blog.unity.com/games/multiplayer-networking-tools-launch-announcement

#netcode #network
๐Ÿ‘4
Sand Balls Mechanics Implementation: The Best Way To Deform A Mesh In Unity - Part II

In this post, we will continue to learn how to deform a mesh in Unity using the sand balls mechanics as a sample. This part covers MeshData API, performance testing, and optimization techniques to achieve a smoother user experience.

https://gamedev.center/sand-balls-mechanic-implementation-how-to-deform-a-mesh-the-most-performant-way-part-2/

#meshdeformation #sandballs #meshdata #jobsystem #optimization
๐Ÿ‘7
Media is too big
VIEW IN TELEGRAM
How much to slow animation down for giant creatures

1. Scale your creature to human size and set the animation speed such that it looks good at this scale; how a human would move if in that creature's shape.
2. Scale your creature up to target size.
3. Set the new animation speed to the speed at human scale divided by the square root of the factor you scaled up

https://tore-knabe.com/game-development-how-much-to-slow-animation-down-for-giant-creatures/

#animation
๐Ÿ‘3
Free eBooks by Unity

A handy collection of all books published by Unity Technologies

https://diegogiacomelli.com.br/free-ebooks-by-unity/

#book #guide
๐Ÿ‘5
Unity Octree

Simple octree implementation. Provides simple and fast octree generation and collision testing. Uses AABB's as the collision type, but can be extended to other things.

https://github.com/wmcnamara/unity-octree

#datastructure #octree #spacial
๐Ÿ‘4
Introduction to octrees

As an addition to the previous post: some theory about octree and use cases. Octrees are often used in 3D, so if you need it in 2D, then use quadtree which is basically the two-dimensional analogue of octree.

https://www.gamedev.net/tutorials/programming/general-and-gameplay-programming/introduction-to-octrees-r3529/

#datastructure #octree #spacial
๐Ÿ‘5