RoboRumble/Contributing to RoboRumble/Multi-threaded Rumble Client

From Robowiki
< RoboRumble‎ | Contributing to RoboRumble
Revision as of 15:24, 8 April 2009 by Nat (talk | contribs) (New page: Want to execute rumble faster? Here is an answer. == Multi-threaded == : ''(or multi-process)'' I called it multi-threaded, but actually it multi-process. The ideas is to separate the up...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Want to execute rumble faster? Here is an answer.

Multi-threaded

(or multi-process)

I called it multi-threaded, but actually it multi-process. The ideas is to separate the uploader and executer. Here is the step:

  • Make copy of your roborumble.txt and roborumble.bat/sh (or melee or team)
  • Edit new roborumble.bat/sh to point to new roborumble.txt
  • Open old roborumble.txt, change following lines:
DOWNLOAD=YES
EXECUTE=YES
UPLOAD=NOT
ITERATE=YES
  • Open new roborumble.txt, change following lines:
DOWNLOAD=NOT
EXECUTE=NOT
UPLOAD=YES
ITERATE=YES
  • Finished!

To run a rumble, you need to run both old and new batch files. The old one will process all battles and save it to file, then the newer one will read result file and upload to the server.