Author Topic: recording simulation  (Read 3298 times)

Offline Drognan

  • Bot Builder
  • **
  • Posts: 56
    • View Profile
recording simulation
« on: September 26, 2010, 04:32:43 PM »
Can program be programed to record, for example, every 10th cycle of simulation as photo, or something like that? Idea is to group those photos later in continous movie so we can see patterns, behavior, etc.. more easily. It's difficult to observe on 0,1 cycle/sec  :(

Offline Ammeh

  • Queen of the Internets
  • Bot Destroyer
  • ***
  • Posts: 169
    • View Profile
Re: recording simulation
« Reply #1 on: September 26, 2010, 06:21:25 PM »
I actually really like the idea of this, though I'm not totally sure how it'd be implemented...

Saving individual pictures as frames would be bad (space wise) , but keeping a video file open while it's written to could result in huge memory usage and potentially corrupt video files (if DB crashes).

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Re: recording simulation
« Reply #2 on: September 26, 2010, 07:07:42 PM »
If the program itself recorded bot position, color, size, ties, etc. every n frames, into a database or file or whatever, then you could use that information to have the program itself playback a simulation.  Shouldn't amount to more than a KB per frame or so.

Alternatively you could save out PNGs of the simulation every frame.  Since it's all vector graphics based, a PNG should be pretty tiny.

Offline Shasta

  • Administrator
  • Bot Destroyer
  • *****
  • Posts: 231
    • View Profile
Re: recording simulation
« Reply #3 on: September 26, 2010, 11:26:20 PM »
I've been meaning to do some internet population stats stuff, I'll look into this also.