-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Ask AI, it says "Your component-embedded class leads to multiple pointer jumps, further reducing CPU cache hit rate.". It's that ture? Should I care about that?
What if my class in component has function in it? Different answer?
public struct HealthComponent : IComponent {
public int CurrentHP;
public int MaxHP;
}
From ↑ to ↓
public class HealthComponent : IComponent {
public HealthData Health;
}
public class HealthData {
public int CurrentHP;
public int MaxHP;
}
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
New