SRL Archive - SRL Suggestions

TPA Text


Nava2

2009-02-07 12:04:57

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?

NCDS

2009-02-07 12:22:45

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

bullzeye95

2009-02-07 13:43:29

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

Nava2

2009-02-07 14:27:28

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


Elaborate my friend?

bullzeye95

2009-02-07 14:58:49

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.

Nava2

2009-02-07 17:14:03

From: bullzeye95
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 :D

Boreas

2009-02-07 18:23:40

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.

Nava2

2009-02-08 02:18:37

From: Boreas
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.

Boreas

2009-02-09 00:00:19

Yea that's what I meant by less often.

Nava2

2009-02-09 09:43:02

From: Boreas
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.