5 ms·
Another model may be that all actors read from frame N-1 and write to frame N. Then there's not many copies, just one.
by dustbunny 1y ago
Another model may be that all actors read from frame N-1 and write to frame N. Then there's not many copies, just one.
- akrotkov 1y agoTwo, surely? The previous one still being used and the new one being written. (Note that this is how most rendering artifacts were fixed long ago - the on screen and the off screen buffers were swapped, so nobody would "see" in progress scenes)
- Retric 1y ago1 copy + the original = 2 instances in memory.
- o11c 1y agoThat's fine if actors are not doing much (e.g. just pathfinding and shooting), but is likely to fall apart long before scripting becomes a thing, since there are a lot of tasks where different actors do want to mutate the same object.
- Retric 1y agoThis is AI, having multiple actors plan to gather the same resource etc isn’t necessarily a flaw. It does however result in meaningful game design decisions getting tided up in how the game engine is designed.
- dustbunny 1y agoThis is a great example. It's probably pretty insignificant from a players perspective in most contexts. And you could most certainly design some acceleration structures to specifically handle AI convergence specific to your use case.
- dustbunny 1y agoCan you share an example where this model falls apart?