Take advantage of C style memory access in C#, with a new found understanding of why it matters and how to make an impact. Depending on what you are doing you could easily see a 2500x performance improvement. (at least in memory time)
ECS is great, but I wouldn't want to support its ever changing structure that can't support version changes and maintain code bases. Instead, I'll dive lower and get performance boosts I may not be able to get from ECS.
Jobs and Burst are both great elements I plan to use in conjunction with this. But replace the parts of Unity that don't suit your needs. Sorry, no source availability here.
0:00 Intro
2:00 OOP vs Perf
3:46 Overview
4:25 CPU Prediction
9:42 Spatial/Temporal
12:52 Unity Intents & Limits
15:45 Spatial Memory
20:46 .NET Intents & Limits
23:08 Unsafe
23:52 C# Mem As-Is
26:59 C# Mem Unsafe Fixed
33:01 Create a Pointer
39:03 Use a Pointer
#unity #unity3d #gamedev #gamedevelopment #gamedeveloper
Негізгі бет Low Level Memory in C#/Unity?
Пікірлер: 17