#performance
12 posts
Inspecting 3D objects (incl. gltf) with a 28-line C# script
Demonstration of early preview release of TinyFFR (3D rendering library for .NET).
Complete C# Quick Reference - C# 11
Summarizing features in C# 11, including an in-depth look at ref fields and scoping rules.
Complete C# Quick Reference - C# 7
Summarizing features in C# 7.
Postmortems - Clearly Too Slow
An example of a simple everyday operation that needed micro-optimising in my game engine.
Common Multithreading Mistakes in C# - IV: Everything Else
A look at some miscellaneous unexpected gotchas when writing multithreaded code.
Common Multithreading Mistakes in C# - III: Unsafe Assumptions
An in-depth look at exactly what the CPU and runtime can do to subvert us when we don't write properly thread-safe code.
Common Multithreading Mistakes in C# - II: Unnecessary Contention
Exploring the basics of what makes different approaches to parallelism more or less efficient.
Common Multithreading Mistakes in C# - I: Incorrect Granularity
A higher-level overview of the lock keyword and how it is commonly misused.
Fun With __makeref
Explanation on how to use hidden C# keywords to implement generic pointers and related functions.
Three Garbage Examples
Three examples and explanations of situations that can create unnecessary garbage in .NET4/C#5.






