champo / Tanks-over-Turtles

Create simple AIs to compete in a tank battle in a world with rather strange physics.
5 stars 1 forks source link

pipes #1

Open esneider opened 13 years ago

esneider commented 13 years ago

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)

eordano commented 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

esneider commented 13 years ago

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? :)

eordano commented 13 years ago

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

esneider commented 13 years ago

The same way we do now :S with pairs of pipes

eordano commented 13 years ago

Oh, that's right :P

I'll get into that...