Results 1 to 3 of 3

Thread: RSWalker CPU usage

  1. #1
    Join Date
    Jul 2015
    Posts
    80
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default RSWalker CPU usage/Accurate minimap walking

    I have this situation where i run two bots on one PC. I wanted to use RSWalker for handling some very easy path, however it drains my CPU to the point where its 100% and bots freeze for a few seconds, resulting in much lower profit/hr or script crash.

    With my other script i use symbol walking, since its just one click.

    I tried symbol walking here, but symbols are changing their places each login. I tried radialwalking and dtm with no success.

    Do you have a way to minimize CPU usage with RSWalker, or how you handle such situations with accurate minimap walking?

  2. #2
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    Like sure RSWalker will utilize whatever it can of resources (limited to 1 core tho). But it's really just a short burst of (extra) high CPU usage every time it looks up your position.. So for a few steps of walking it should not matter much as each burst last for around 60ms on a normal PC.

    I have a feeling you are setting up RSWalker over and over again, forcing it to initialize A WHOLE lot of stuff.. and not just once on script-initialization. Or.. something similar.

    Share your script, so we can take a look at wtf is going on.

    PS: If you just need to do a single step then you can use the following, it will only call GetMyPos ONCE.
    >> procedure TRSWalker.WalkToPos(worldPos:TPoint; waitFlag:Boolean=True);
    Last edited by slacky; 03-31-2016 at 10:52 AM.
    !No priv. messages please

  3. #3
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    You need to do this:

    Simba Code:
    Procedure WhileWalking(Sender: TObject; myPos: TPoint);
    Begin
      Wait(200 + random(200));
      //Add some stuff here.
    End;

    and then
    Simba Code:
    RSW.onMoveEvent := @ WhileWalking;
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •