Author Topic: preload text  (Read 1083 times)

0 Members and 1 Guest are viewing this topic.

Offline Doan Sephim

preload text
« on: December 01, 2013, 11:18:12 AM »
I was looking through the old tutorials and came across a function called "preload text" which loads the text resource into memory for easier access.

I have to questions: Does this load it into heap space (that would nullify the best part about using text resources)? And with computers as fast as today and the programs being so tiny, is it really even necessary to do this?


Artificial Intelligence Competition

Offline Collector

Re: preload text
« Reply #1 on: December 01, 2013, 11:41:05 AM »
Perhaps Gumby would know where it loads it, but heap would still be a concern. We are still using the same interpreter and in DOSBox, the same environment. I am pretty sure that ScummVM/FreeSCI do nothing to extend heap at all.

Perhaps the intent was to load a string that would be used repeatedly, but it would still be desirable to unload it from heap when done with the resource.
KQII Remake Pic

Offline gumby

Re: preload text
« Reply #2 on: December 03, 2013, 05:15:48 PM »
I've never used the preload function.  Digging in the Studio help file indicates this:

Quote
The preload text block tells the interpreter to load the complementary text resource to the script. When loaded, you can use text resources to store your text rather than having them built into the script. These are mainly used for making multilingual games.

I honestly don't know what this command will do with regard to heap.  I'll do some tests and report back.
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition


SMF 2.0.14 | SMF © 2017, Simple Machines
Simple Audio Video Embedder

Page created in 0.099 seconds with 23 queries.