Results 1 to 10 of 10

Thread: TPA Text

  1. #1
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default TPA Text

    Okay, so. We already have the Load Text TPA functions, so, in the essence of speed, would it not make sense to pre-load all the characters?

    Just a thought

    It could be done with minimal changes, just change LoadTextTPA to use the preloaded TPAs

    They also would not be hard, as all it would take would be someone to run a script which loads the bitmap to the canvas,finds the white color, then debugs the text.

    Comments?
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  2. #2
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Wouldnt it make it go slwer since everything is preloaded and always open?

  3. #3
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    No, it would just use a tiny bit more RAM. Less RAM used != faster.

  4. #4
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by bullzeye95 View Post
    No, it would just use a tiny bit more RAM. Less RAM used != faster.
    Elaborate my friend?
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  5. #5
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    If I'm understanding right, you want to load something at the beginning of a script instead of loading and freeing it every time you want to use it. If that's the case, then I was saying that loading it at the beginning of the script wouldn't slow things down, since using more of your RAM doesn't mean things go faster. RAM is there to be used, not conserved.

  6. #6
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by bullzeye95 View Post
    If I'm understanding right, you want to load something at the beginning of a script instead of loading and freeing it every time you want to use it. If that's the case, then I was saying that loading it at the beginning of the script wouldn't slow things down, since using more of your RAM doesn't mean things go faster. RAM is there to be used, not conserved.
    Okay, so you are agreeing. I now understand
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  7. #7
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    I load TPAs from INIs, as IMO using bitmaps to generate TPAs defeats the point. However if you are going to use bitmaps, the next best thing is to reduce how often.

  8. #8
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Boreas View Post
    I load TPAs from INIs, as IMO using bitmaps to generate TPAs defeats the point. However if you are going to use bitmaps, the next best thing is to reduce how often.
    I meant have the TPAs declared on compile . Like global variables, probably would be in SetupSRL.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  9. #9
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Yea that's what I meant by less often.

  10. #10
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Boreas View Post
    Yea that's what I meant by less often.
    I meant to generate them to begin with, so we could write them down. Not to keep them as bitmaps.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Grabbing or reading Text from a game text box
    By British in forum OSR Help
    Replies: 16
    Last Post: 02-27-2009, 08:02 AM
  2. Text help
    By Leech in forum OSR Help
    Replies: 2
    Last Post: 10-03-2008, 07:55 PM
  3. Getting text from text window?
    By Gone Fishing in forum OSR Help
    Replies: 8
    Last Post: 04-24-2008, 07:33 PM
  4. Searching for Text...
    By Its Miller Time in forum OSR Help
    Replies: 4
    Last Post: 06-07-2007, 02:31 AM

Posting Permissions

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