Open esneider opened 13 years ago
Hmm, that sucks. Is that limitation per process or per thread? Possible solution: fork process and handle each team's tanks in different threads/process.
That should get us up to ~125 tanks per team :D
I think that's possible.. maybe you can extend that to each team's process having several processes that handle the tanks.. do you want to code it? :)
And we have to think about the IPC... I mean... when I spawn the process, how do I get to talk back to my parent?
On Wed, Mar 16, 2011 at 4:15 PM, esneider < reply@reply.github.com>wrote:
I think that's possible.. maybe you can extend that to each team's process having several processes that handle the tanks.. do you want to code it? :)
Reply to this email directly or view it on GitHub: https://github.com/champo/Tanks-over-Turtles/issues/1#comment_881951
The same way we do now :S with pairs of pipes
Oh, that's right :P
I'll get into that...
there's a limit of 256 open files per process, so each process can have ~250 pipes. Since we have two pipes per child process, there's an upper bound of ~125 number of total tanks (players * tanks_per_player)