Results 1 to 4 of 4

Thread: bitmaps make my script laggy

  1. #1
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default bitmaps make my script laggy

    What is wrong in my script? Something wrong with Load/Free bitmaps?

  2. #2
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Well first, I reccomend you using DTM's instead of bitmaps.

    They are SO simple, and take SO much less memory .

    The Bitmaps take SO much memory and are harder to make, I TOTALLY reccomend DTM's b4 bitmaps.

  3. #3
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    repeat
     Chop;
     LoadBitmaps;
     repeat
      Burn;
       if IsBlackText('ou can', 8) then avoidfire;
     until(not(FindBitmaptolerancein(log, x, y, MIX1, MIY1, MIX2, MIY2, 30)));

    What i suggest you do is minimize the area it looks for the bitmap in...

    heres some pseudocode for you

    SCAR Code:
    function hasLogs : Boolean;
      for i = 1 to 28 do
      begin
        if isEmpty(i) then break;
        result := findbitmaptolerancein(InventoryBox(i))
      end;
    End;

    because when you get a log it goes to the first spot in your inventory right? so once it finds an empty spot, you arn't full.

    Edit: ooooh ur burning them... nvm. wait do this instead.

    SCAR Code:
    function hasLogs : Boolean;
      for i = 1 to 28 do
      begin
        if not isEmpty(i) then
            result := findbitmaptolerancein(InventoryBox(i))
       if result then break;
     end;

    End;
    ~ Metagen

  4. #4
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Thankyou I fixed my script to use DTMs, and i think i add there your function too, metagen. Thanks alot!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Bitmaps making my script lag
    By marpis in forum OSR Help
    Replies: 4
    Last Post: 12-08-2008, 08:50 PM
  2. How can i make it less laggy?
    By badandymitch in forum OSR Help
    Replies: 5
    Last Post: 05-11-2007, 01:28 AM
  3. script cant find bitmaps
    By XcanadamanX in forum OSR Help
    Replies: 6
    Last Post: 11-18-2006, 02:26 PM

Posting Permissions

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