Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 26 Nov 2009 23:13:59 -0000
Hi ALL! Thank for the welcome to everyone!
I'm here with my first question... I noticed that Hollywood wasnt multithreading so I think that the answer was easy but I try to ask it the same... I'm looking to do some sort of preload in a project I'm working on(a simple image viewer)... The problem was that I like to do an image preload in parallel with the other operations...so big images will preload while user see the current image... Using the SetInterval function I think dont work because if the file that I preload was rather big it will stop the whole hollywood script while it was fully loaded... So...I'm worng or maybe someone can help me? Thanks in advance to everyone!
Simone
[26 Nov 2009] some way to parallel preload... ?
[26 Nov 2009] some way to parallel preload... ?
Simone"Tuxedo"Monsignori, Perugia, ITALY.
- airsoftsoftwair
- Posts: 5915
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
[28 Nov 2009] Re: some way to parallel preload... ?
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 28 Nov 2009 12:15:44 +0100
Also, SetInterval() doesn't use any multithreading. Interval functions are never executed concurrently, they're always executed one after the other.
Well, the picture loading functions will always block your script. There's no way to make them return control to the user before they've finished loading the whole picture. So I'm afraid what you want to do is not possible.Hi ALL! Thank for the welcome to everyone!
I'm here with my first question... I noticed that Hollywood wasnt multithreading so I think that the answer was easy but I try to ask it the same... I'm looking to do some sort of preload in a project I'm working on(a simple image viewer)... The problem was that I like to do an image preload in parallel with the other operations...so big images will preload while user see the current image... Using the SetInterval function I think dont work because if the file that I preload was rather big it will stop the whole hollywood script while it was fully loaded... So...I'm worng or maybe someone can help me? Thanks in advance to everyone!
Also, SetInterval() doesn't use any multithreading. Interval functions are never executed concurrently, they're always executed one after the other.
[28 Nov 2009] Re: some way to parallel preload... ?
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 28 Nov 2009 15:29:25 -0000

Cya!
Simone
mmm... That's a rather big problem for a project like an Image viewer... For the moment I will contiune the project wìthout it... Maybe in future made a Load#? module that works itself in parallel(f.ex leaving immediately the id and than attaching the loaded data?)? Or more "simplest" doing that Load#? modules can load the requested data in separated chunks? For example it maybe will be really usefull also if someone need to load data for a new level game displaying the currente level stats so we can have a "continuous" game experience without breaks(i remember for example the game Hawkeye on the glorious C=64)... That's only the first two thing I get in mind... Ok I'm only a newbe with strange ideas...Well, the picture loading functions will always block your script. There's no way to make them return control to the user before they've finished loading the whole picture. So I'm afraid what you want to do is not possible.
Also, SetInterval() doesn't use any multithreading. Interval functions are never executed concurrently, they're always executed one after the other.
Cya!
Simone
Simone"Tuxedo"Monsignori, Perugia, ITALY.
- airsoftsoftwair
- Posts: 5915
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
[01 Dec 2009] Re: Re: some way to parallel preload... ?
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 01 Dec 2009 23:34:59 +0100

Well, scattered loading of images is certainly not something that I'm going to implement some time soon because it's a lot of work and it's of very limited use for the general public. Sorry, but there's much more important stuff to get into Hollywoodmmm... That's a rather big problem for a project like an Image viewer... For the moment I will contiune the project wìthout it... Maybe in future made a Load#? module that works itself in parallel(f.ex leaving immediately the id and than attaching the loaded data?)? Or more "simplest" doing that Load#? modules can load the requested data in separated chunks? For example it maybe will be really usefull also if someone need to load data for a new level game displaying the currente level stats so we can have a "continuous" game experience without breaks(i remember for example the game Hawkeye on the glorious C=64)... That's only the first two thing I get in mind... Ok I'm only a newbe with strange ideas...![]()