RoboRumble/Contributing to RoboRumble/Multi-threaded Rumble Client

From Robowiki
< RoboRumble‎ | Contributing to RoboRumble
Revision as of 21:37, 15 August 2017 by MultiplyByZer0 (talk | contribs) (MultiplyByZer0 moved page RoboRumble/Starting With RoboRumble/Multi-threaded Rumble Client to RoboRumble/Contributing to RoboRumble/Multi-threaded Rumble Client: New name reflects the purpose of the page better)
(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.