Results 1 to 6 of 6

Thread: SetupSRL to load SMART faster.

  1. #1
    Join Date
    Oct 2011
    Location
    Vegas :D
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SetupSRL to load SMART faster.

    Simba Code:
    procedure SetupSRLEx;
    var
      t: Integer;
    begin
      {$IFNDEF SMART}
        {$IFDEF SIMBA}
          if (not IsTargetValid) then
            srl_Warn('SetUpSRL', 'Target client is not valid! ' +
              'Drag the crosshairs over the target client.', warn_Terminate);
        {$ENDIF}
      {$ENDIF}
      SetupBoxes; //Sets up box variables in globals.simba
      t := GetTimeRunning;
      MouseSpeed := 15;
      {$IFDEF UseLaptopMouse}LMouse_MissChance := 75;{$ENDIF}
      CheckHPFirst := True;
      Reincarnate := False;
      TalkAfterRandoms := False;
      RoadColor := 0;
      WaterColor := 0;
      BankColor := 0;

      // these need to be removed eventually (no longer used)
      SRL_OnFindRandomCall := nil;
      LampSkill := 'mining';

      //SetUpSRLReport;
      LoadCosineArrays;
      SymbolAccuracy:= 0.8;
      LoadSRLBitMaps;
      LoadSRLFonts;
      {$IFNDEF SRL_RANDOMS_TEST}
      _SetRandoms();
      {$ENDIF}
      SetupSRLAutoResponder;
      SRL_RandomScreenShot := False;
      UseFindMod := True;
      LogoutOnMod := True;
      UseFindTrade := True;
      UseAutoResponder := True;
      GraphicsSet := False;
      AllowPVP    := False;
      SRL_DisableIPLog := false;
      SRL_SavePath := includePath + 'SRL/logs/';
      SRL_StartTime := theDate(DATE_MONTH)+' at '+theTime;
      WarnSensitivity := -2;
      SetupAutoColors;

    {$IFDEF LoadExtraFonts}
      srl_UpdateFonts(srl_FontsUp2date);
    {$ENDIF}

      AddOnTerminate('FreeSRL');
      SetSupressExceptions(true);
      Writeln ('SRL Compiled in '+  IntToStr(GetTimeRunning - t) + ' msec');

      {$IFDEF SRL_SMART}
      if (Smart_Server = 0) then
      begin
        Smart_Server := RandomWorld(Smart_Members, False);
        Smart_Signed := True;
        Smart_SuperDetail := False;
      end;
      Writeln('SMART Initialized.' + #10 + 'Loaded: Server ' + IntToStr(Smart_Server) + ', Members: ' + BoolToStr(Smart_Members)
                     + ', Signed: ' + BoolToStr(Smart_Signed) + ', Super Detail: ' + BoolToStr(Smart_SuperDetail) + '.');
      SmartSetupEx(Smart_Server, Smart_Members, Smart_Signed, Smart_SuperDetail);
      SetTargetArray(SmartImageArray, 765,503);
      repeat
          Wait(600);
          SmartSetRefresh(RandomRange(50,100));
      until(RSReady);
      SmartSetRefresh(50);
      {$ELSE}
      Smart_Server := 0;
      Smart_Members := false;
      Smart_Signed := True;
      Smart_SuperDetail := false;
      {$ENDIF}

      SetupGauss();
    end;

    The FPS slider, or the refresh bar, being move up and down increase load time by at least a factor of 10. I us thus custom method of loading the client and thought I would post it out there for other people to use.

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Nice 'quick fix' to the problem good work.
    But this is just a patch for the booboo.

    Benland outlined what he believes the real problem/fix is here:
    http://villavu.com/forum/showthread.php?t=82391
    Not sure what has been/is being done yet though.

  3. #3
    Join Date
    Oct 2011
    Location
    Vegas :D
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Nice 'quick fix' to the problem good work.
    But this is just a patch for the booboo.

    Benland outlined what he believes the real problem/fix is here:
    http://villavu.com/forum/showthread.php?t=82391
    Not sure what has been/is being done yet though.
    Yea but nothing has been done to fix it so its a quick solution.

  4. #4
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    The Default Smart Slider is at 60 not 50.
    I am Ggzz..
    Hackintosher

  5. #5
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Yeah, good quick fix ! Didn't mean to put ya down!

  6. #6
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

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
  •