PinnedSwiftRoll 🐦Command Pattern Allocation Free in C# Unity / Godot (without memory allocations)In short — What is this article about? How to use Command pattern in C# without producing heap allocations for each new commandOct 27, 2023Oct 27, 2023
SwiftRoll 🐦Singleton Alternatives in Unity C#Researching Dependency Injection (DI) and Service LocatorApr 232Apr 232
SwiftRoll 🐦Optimizing Code by Replacing Classes with Structs, Unity C# TutorialIf you don’t find yourself understanding the difference between structs and classes, I would recommend researching that first. Otherwise…Oct 31, 2023Oct 31, 2023
SwiftRoll 🐦How to improve performance of RaycastAll by using RaycastNonAlloc in UnityIf you need to use RaycastAll often (like each frame of your game), consider switching to RaycastNonAlloc method which acts faster and…Oct 30, 2023Oct 30, 2023
SwiftRoll 🐦Unity built-in pooling of collections (List/Dictionary/other)Any new() collection in C# creates allocation which increases load on Garbage Collector (in short, it costs you a little of your game’s…Oct 29, 2023Oct 29, 2023
SwiftRoll 🐦Godot C# - Get child node by type <T> extensionThis extension methods provides functionality similar to Unity’s GetComponentInChildren<T> or GetComponentInParent<T> without providing…Sep 19, 20231Sep 19, 20231
SwiftRoll 🐦Quickly migrating unit tests from Unity to Godot 4 C#If you need quickly to migrate your unit tests from Unity to Godot you can use code from this articleSep 15, 2023Sep 15, 2023