Menu

opensteer without time adherence

2010-09-05
2013-04-30
  • Quid Pro Quo

    Quid Pro Quo - 2010-09-05

    Hi,

    Is it possible to modify opensteer to run as fast as the processor can go? This would be helpful when one is trying perform a search for possible routes through a map.

    Thanks

     
  • Craig Reynolds

    Craig Reynolds - 2010-09-06

    Hi.  Perhaps what you want to do is change the "mode" parameters of the Clock object used by OpenSteerDemo.  As an experiment, launch OpenSteerDemo and use the "f" command to change the "frame rate".  (That is, make sure OpenSteerDemo is selected ("has focus") and type "f".)  Watch the next-to-last line of text in the lower left corner of the window that begins with "Clock: …"  Type "f" until this says "…animation mode…"  Typically (for most modern computers and most plug-ins) this will make the simulation run faster because it does not wait for a frame time to be over, nor does it use extra short time steps as it does in "real time mode".

    On the other hand: if you are doing lots of OpenSteer simulations in "batch" mode, particularly "unattended" simulations (meaning you are not interested in watching them run), maybe what you want to do is turn off graphics.  That might be as simple as having an empty "redraw" method on your plug-in class.  (Or making it optionally do nothing when a flag is set, perhaps toggled by the user pushing a function key.)

     
  • Quid Pro Quo

    Quid Pro Quo - 2010-09-06

    Thank you very much. I will try these methods.

    You are a great help and I really appreciate your work.

     
  • Craig Reynolds

    Craig Reynolds - 2010-09-06

    Thanks for the kind words. Rereading what I wrote yesterday, I should clarify that for unattended batch runs you might want to BOTH change the clock mode and turn off graphics. See Clock.h/.cpp for the interface to change clock mode.

    Best,
    Craig

     

Log in to post a comment.

MongoDB Logo MongoDB