This is for synced AI. One cog that handles pathfinding for all AIs needs to be able to communicate its results to the AI's capture cog.
I need to send an entire array of things from one cog to another. The communication need only take place on the server so syncing/network usage is not an issue here. The array is of an undetermined size. In fact, it will probably need to be contained in a heap because it could very easily grow past a hundred.
All I can think of, is breaking it up into chunks and sending it 3 or 4 pieces at a time using SendMessageEx or SendTrigger. I guess I could just have a for loop run sendmessage however many times is needed to get it all over there and have the second cog dump it into its own heap.
Would there be any advantage to not sending the chunks all at the same time? The other cog will not need all of the information immediately. I could stagger them with timers. (Is there a limit on the number of active timers that a cog can have? If there is that would definately cause problems.)
I need to send an entire array of things from one cog to another. The communication need only take place on the server so syncing/network usage is not an issue here. The array is of an undetermined size. In fact, it will probably need to be contained in a heap because it could very easily grow past a hundred.
All I can think of, is breaking it up into chunks and sending it 3 or 4 pieces at a time using SendMessageEx or SendTrigger. I guess I could just have a for loop run sendmessage however many times is needed to get it all over there and have the second cog dump it into its own heap.
Would there be any advantage to not sending the chunks all at the same time? The other cog will not need all of the information immediately. I could stagger them with timers. (Is there a limit on the number of active timers that a cog can have? If there is that would definately cause problems.)
-El Scorcho
"Its dodgeball time!" -Stormy Waters
"Its dodgeball time!" -Stormy Waters