Disk space quota

From Robowiki
Revision as of 16:20, 12 March 2009 by Lestofante (talk | contribs) (Question about file size calculations)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Little question: space for saving to file double is 64bit, one char 16bit. If i want to save the weigth for my gun i can store it to file using 1 double(weigth) and 1 char(separator), using 80bit (8 byte). 8 byte for 1000 robot is 8000 byte, and 200kb is maximum file quota (204800 byte) So for every bot in rumble i can save 204800/8000 = 25 weigth, right? If i use float(32 bit) i will gain about double space right? It can seems a stupid question but if i'm right i'm impressed how easily i can store more than 15 weigth for every bot in rumble(and much more!), giving at my gun a chance to learn specific weigth for every bot (i think the gun will be really slow to learn, due to automatics weigth finding, but actually is under development) --lestofante 15:20, 12 March 2009 (UTC)