Pooling large arrays with ArrayPool. Allocations of small arrays are faster, but as the size grows, the allocation takes more and more time, as well as GC time increases.
tl;dr Use ArrayPool<T> for large arrays to avoid Full GC.
https://adamsitnik.com/Array-Pool/
#csharp #tips #performance #gc #arraypool
tl;dr Use ArrayPool<T> for large arrays to avoid Full GC.
https://adamsitnik.com/Array-Pool/
#csharp #tips #performance #gc #arraypool
Adamsitnik
Pooling large arrays with ArrayPool
tl;dr Use ArrayPool<T> for large arrays to avoid Full GC.
Introduction
.NET’s Garbage Collector (GC) implements many performance optimizations. One of them, the generational model assumes that young objects die quickly, whereas old live longer. This is…
Introduction
.NET’s Garbage Collector (GC) implements many performance optimizations. One of them, the generational model assumes that young objects die quickly, whereas old live longer. This is…
https://github.com/Wraithaven-UnityTools/Bones3
Bones³ is a Voxel Editor for Unity. Supports both in-game and in-editor building
#voxel #editor
Bones³ is a Voxel Editor for Unity. Supports both in-game and in-editor building
#voxel #editor
GitHub
Wraithaven-UnityTools/Bones3
Bones³ is a Voxel Editor for Unity. Supports both in-game and in-editor building. - Wraithaven-UnityTools/Bones3
https://jonskeet.uk/csharp/parameters.html
Parameter passing in C#
I believe it is highly confusing to say that objects are passed by reference by default instead of the correct statement that object references are passed by value by default.
#csharp #ref #parameters
Parameter passing in C#
I believe it is highly confusing to say that objects are passed by reference by default instead of the correct statement that object references are passed by value by default.
#csharp #ref #parameters
8 Ways You can Cause Memory Leaks in .NET - Michael's Coding Spot
https://michaelscodingspot.com/ways-to-cause-memory-leaks-in-dotnet/
#gc #memory #leaks #csharp #dispose
https://michaelscodingspot.com/ways-to-cause-memory-leaks-in-dotnet/
#gc #memory #leaks #csharp #dispose
Michael's Coding Spot
8 Ways You can Cause Memory Leaks in .NET
Memory leaks are sneakily bad creatures. It's easy to ignore them for a very long time, while they slowly destroy the application. With memory leaks, your memory consumption grows, creating GC pressure and performance problems. Finally, the program will just…
Find, Fix, and Avoid Memory Leaks in C# .NET: 8 Best Practices - Michael's Coding Spot
https://michaelscodingspot.com/find-fix-and-avoid-memory-leaks-in-c-net-8-best-practices/
#gc #memory #profiling #leaks
https://michaelscodingspot.com/find-fix-and-avoid-memory-leaks-in-c-net-8-best-practices/
#gc #memory #profiling #leaks
Michael's Coding Spot
Find, Fix, and Avoid Memory Leaks in C# .NET: 8 Best Practices
Finding, Fixing and learning to Avoid Memory Leaks is an important skill. I'll list 8 best practice techniques used by me and senior .NET developers that advised me for this article.
Tips for optimizing mobile build size in unity
https://medium.com/@bada/optimizing-build-size-and-performance-with-proper-sprite-setup-7c76c91626b6
#sprites #assets #buildsize
https://medium.com/@bada/optimizing-build-size-and-performance-with-proper-sprite-setup-7c76c91626b6
#sprites #assets #buildsize
Medium
Optimizing build size and performance with proper sprite setup
For game developers and especially mobile developers, both performance and binary size is a constant concern and is something that we need…
Creating A 3D Progress Bar With Shader Graph
https://medium.com/@Scriptie/creating-a-3d-progress-bar-with-shader-graph-devlog-tutorial-89ecbeda449a
#3d #progressbar #shadergraph
https://medium.com/@Scriptie/creating-a-3d-progress-bar-with-shader-graph-devlog-tutorial-89ecbeda449a
#3d #progressbar #shadergraph
Medium
Creating A 3D Progress Bar With Shader Graph — Devlog Tutorial
Let’s say you have a 3d game and would like to show the player’s progress in a more volumetric way, like inside the game but not from UI.
5 Techniques to avoid Memory Leaks by Events in C# .NET you should know
Example of Detecting memory leaks without a memory profiler
https://michaelscodingspot.com/5-techniques-to-avoid-memory-leaks-by-events-in-c-net-you-should-know/
#csharp #gc #memory #leak
Example of Detecting memory leaks without a memory profiler
https://michaelscodingspot.com/5-techniques-to-avoid-memory-leaks-by-events-in-c-net-you-should-know/
#csharp #gc #memory #leak
Michael's Coding Spot
5 Techniques to avoid Memory Leaks by Events in C# .NET you should know
Event registrations in C# (and .NET in general) are the most common cause of memory leaks. At least from my experience. In fact, I saw so much memory leaks from events that seeing += in code immediately makes me suspicious.
A guide to avoid CocoaPods installation failure while building Unity project for iOS.
https://medium.com/@samzgamz/a-guide-to-avoid-cocoapods-installation-failure-while-building-unity-project-for-ios-65f556aecac5
#cocoapods #ios #build #error
https://medium.com/@samzgamz/a-guide-to-avoid-cocoapods-installation-failure-while-building-unity-project-for-ios-65f556aecac5
#cocoapods #ios #build #error
Medium
A guide to avoid CocoaPods installation failure while building Unity project for iOS.
If you are using Unity to build your iOS projects and use SDK’s like Firebase, Facebook etc. which require CocoaPods, then these steps…
GitHub - fuqunaga/RapidGUI: Unity OnGUI(IMGUI) extensions for Rapid prototyping/development
https://github.com/fuqunaga/RapidGUI
#rapid #gui #imgui #prototyping #debugui
https://github.com/fuqunaga/RapidGUI
#rapid #gui #imgui #prototyping #debugui
GitHub
GitHub - fuqunaga/RapidGUI: Unity OnGUI(IMGUI) extensions for Rapid prototyping/development
Unity OnGUI(IMGUI) extensions for Rapid prototyping/development - fuqunaga/RapidGUI
GitHub - Anatta336/driven-decals: A mesh-based PBR decal system for Unity's universal render pipeline.
https://github.com/Anatta336/driven-decals
#decals #feature
https://github.com/Anatta336/driven-decals
#decals #feature
GitHub
GitHub - Anatta336/driven-decals: A mesh-based PBR decal system for Unity's universal render pipeline.
A mesh-based PBR decal system for Unity's universal render pipeline. - Anatta336/driven-decals
Unity, WebGL, and Websockets: A Guide
https://medium.com/@hacj/unity-webgl-and-websockets-a-guide-42f3e8f0db34
#linux #webgl #websockets #server #network
https://medium.com/@hacj/unity-webgl-and-websockets-a-guide-42f3e8f0db34
#linux #webgl #websockets #server #network
Medium
Unity, WebGL, and Websockets: A Guide
If you want to build a real-time, networked game or app with Unity and have it run in the browser, this is the guide for you.
Performance implications of default struct equality in C#
https://devblogs.microsoft.com/premier-developer/performance-implications-of-default-struct-equality-in-c/
https://medium.com/@semuserable/c-journey-into-struct-equality-comparison-deep-dive-9693f74562f1
#csharp #struct #equality #performance
https://devblogs.microsoft.com/premier-developer/performance-implications-of-default-struct-equality-in-c/
https://medium.com/@semuserable/c-journey-into-struct-equality-comparison-deep-dive-9693f74562f1
#csharp #struct #equality #performance
Microsoft News
Performance implications of default struct equality in C#
If you’re familiar with C#, then you most likely heard that you should always override Equals and GetHashCode for custom structs for performance reasons. To better understand the importance and the rationale behind this advice we’re going to look at the default…
https://andreyakinshin.gitbook.io/problembookdotnet/
Problem book about the .NET platform and the C# programming language.
#csharp #tricks #test #questions #tasks
Problem book about the .NET platform and the C# programming language.
#csharp #tricks #test #questions #tasks
andreyakinshin.gitbook.io
ProblemBook.NET | ProblemBook.NET
Base collision system, collision component, relevant part of View code to propagate collisions from Unity, example collision system that handles player colliding with scene exit triggers, and a helper to get the entity from the gameobject.
https://gist.github.com/FNGgames/c7445d5aea6bb092b209dd2c72561f2f
#ecs #collision #system #example
https://gist.github.com/FNGgames/c7445d5aea6bb092b209dd2c72561f2f
#ecs #collision #system #example
Gist
Entitias Collisions
Entitias Collisions. GitHub Gist: instantly share code, notes, and snippets.
A Detailed Explanation of Abstraction in Software Development
https://thevaluable.dev/abstraction-software-development/
#architecture #abstraction #generalization #leaky #indirection
https://thevaluable.dev/abstraction-software-development/
#architecture #abstraction #generalization #leaky #indirection
Bleeding edge effects on mobile
Video: https://youtu.be/c7HBxBfCsas
Github: https://github.com/asaia/BleedingEdgeEffects_GDC_2020
Twitter: @saiacide
#vfx #shader #sdf #raymarching #volumetric #softbodydeformation #uv #mask
Video: https://youtu.be/c7HBxBfCsas
Github: https://github.com/asaia/BleedingEdgeEffects_GDC_2020
Twitter: @saiacide
#vfx #shader #sdf #raymarching #volumetric #softbodydeformation #uv #mask
YouTube
Bleeding-Edge Effects on Mobile
In this 2020 GDC Virtual Talk, Level Ex's Andy Saia break down seemingly complicated effects into simple steps providing you everything you'll need to implement effects like these to solve a wide variety of VFX problems in mobile games and other platforms.…
GitHub - TheAlgorithms/C-Sharp: All algorithms implemented in C#.
https://github.com/TheAlgorithms/C-Sharp
#adt #dsa #algoritms #datastructures
https://github.com/TheAlgorithms/C-Sharp
#adt #dsa #algoritms #datastructures
GitHub
GitHub - TheAlgorithms/C-Sharp: All algorithms implemented in C#.
All algorithms implemented in C#. Contribute to TheAlgorithms/C-Sharp development by creating an account on GitHub.