4 ms·
Actors are handled by the CPU where shaving 10MB can mean that more things can now fit in the cache leading to dramatic improvement.
by speed_spread 2y ago
Actors are handled by the CPU where shaving 10MB can mean that more things can now fit in the cache leading to dramatic improvement.
- maccard 2y agoIf you’re going to make that assertion then back it up with numbers. It could just easily have absolutely no impact whatsoever because your game thread is spending all its time on navigation mesh queries which have nothing to do with actors or UObjects.
- speed_spread 2y agoThe keyword here is "can". I'm just saying it's definitely possible that a 10MB memory reduction in a critical spot results in significant performance gains. I agree 100% that any optimization should be backed up by solid benchmarks.
- maccard 2y agoIt also “can” also do absolutely nothing, or “can” introduce false sharing in multithreaded code. Lots of things are possible - but speculating on every possibility as though they’re equally probable doesn’t provide any value. Actors in unreal are a fairly low level item, but most games aren’t going to have 25k actors in a world, and if they do, 10MB of memory usage fragmented across actors is likely the least of their worries.