Everyday Unity – Telegram
Everyday Unity
1.1K subscribers
157 photos
59 videos
42 files
2.36K 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
GitHub - UnityLabs/procedural-stochastic-texturing: Modified Shader Graph package implementing Procedural Stochastic Texturing

Addition to the recent article about this method. Allows to remove repetitive pattern on some types of tiling textures.

https://github.com/UnityLabs/procedural-stochastic-texturing

#texture #tiling
Learn How to Use the Unity Profiler By Example

A very basic example how to profile your code and how to combine a few meshes into one through the code.

https://gamedevunboxed.com/learn-how-to-use-the-unity-profiler-by-example/

#profiling #optimization #mesh #combine
Making Sense of FixedUpdate, Update, and LateUpdate

A basic article about different Updates in Unity and when to and not to use them

https://letsbuild.gg/rcarlson/making-sense-of-fixedupdate-update-and-lateupdate-1p19

#update
5 more things about enums in C#

https://www.code4it.dev/blog/5-more-things-about-enums-csharp

you can change the underlying type to short, uint and similar;
you can also define negative values;
inside the enum definition, you can create values that represent the union of other two (or more);
by default, .NET APIs return enum values as numbers; to fix it, you must add a configuration in your Startup class;
you can also omit the Flags attribute; the downside is that when you print the value of a variable that is the union of 2 enums, the returned string is the sum of the enums stored inside that variable, not the string representation.

#csharp #enum #flags
10000 Update() calls - Unity Technologies Blog

Old but gold. Performance cost of calling unity magic methods and when you should think about using a custom update manager to save execution time.

https://blogs.unity3d.com/2015/12/23/1k-update-calls/

#performance
Progressing in Circles

A great article on different approaches for a circular progress bar with rough performance comparisons. All examples are provided with shaders.

https://medium.com/@bgolus/progressing-in-circles-13452434fdb9

#shader #progress #bar #circular
Preload Audio Data & How Unity Decides Which Audio Assets to Load to a Scene

The audio clip can be marked for preload in the import settings.
Preloaded audio clips are loaded with the scene when referenced on any gameobject in this scene.

https://medium.com/double-shot-audio/preload-audio-data-how-unity-decides-which-audio-assets-to-load-to-a-scene-a440a654e7e2

#audio #preload
Burst User Guide | Burst | 1.3.0

Burst docs and in-depth denoscription of optimization technics

https://docs.unity3d.com/Packages/com.unity.burst@1.3/manual/index.html#unityburstintrinsics

#burst #dots #jobs