←back to thread

163 points mariuz | 3 comments | | HN request time: 0.206s | source
1. spockz ◴[] No.43618106[source]
Besides the memory savings, would there also be performance gains? More actors would now fit in a cache line.
replies(2): >>43618116 #>>43619116 #
2. cma ◴[] No.43618116[source]
The actors in unreal are such bloated single inheritance god classes that with a few actor components they take up more like a 4K memory page not part of a cache line, especially in editor builds.

But they do have a more optimized entity component system now too.

To be fair, a single transform now that things are 64 bit coordinates I think is bigger than a cache line too.

3. larstofus ◴[] No.43619116[source]
I haven't profiled this specifically, but my guess is that there shouldn't be any measurable performance gains. Most of the time, actors are randomly scattered in memory anyway, so having smaller actors doesn't avoid a lot of cache misses.