Results 1 to 2 of 2

Thread: help with lag with script

  1. #1
    Join Date
    Dec 2007
    Posts
    56
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default help with lag with script

    when i start a script it starts lagging and stuff... is it because of the thing? or what?
    or does this hapen to everyone too?
    cause mine pauses for like 5-10 seconds

    o.O

  2. #2
    Join Date
    Feb 2007
    Location
    EST (US East Coast)
    Posts
    250
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Is your actual computer running slow? Like do you have trouble with other programs? If so it might not be SCAR's fault.

    However, a good reason for scripts to cause lag is when you repeat a Find function and it comes back false. Example:
    SCAR Code:
    procedure FindColor;
    begin
      repeat
        FindColor(x,y, 633687, MSX1, MSY1, MSX2, MSY2);
      until(false)
    end;
    Anyone will tell you that's a terrible procedure because it has no failsafe, but it also has no wait time between looking. If you have any parts of your script that look like that, try just adding a short wait after.
    Temporarily inactive.

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
  •