love-loader: load resources in a separate thread, easily

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
murks
Party member
Posts: 185
Joined: Tue Jun 03, 2014 4:18 pm

Re: love-loader: load resources in a separate thread, easily

Post by murks »

Does anyone know a way to make it work with slam? (https://github.com/vrld/slam)
I get some hard to debug error (thrown in a thread) when I have love-loader require slam.

Does anyone know a way to make it love 0.10.0 ready, e.g. load videos?
User avatar
slime
Solid Snayke
Posts: 3161
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: love-loader: load resources in a separate thread, easily

Post by slime »

murks wrote:Does anyone know a way to make it love 0.10.0 ready, e.g. load videos?
Currently, love's video decoding is done by reading the file a bit at a time (and decoding the contents) in a separate thread already, so love-loader wouldn't help much there.

What love-loader doesn't do properly right now is load Images which are Compressed Textures (it should use [wiki]love.image.isCompressed[/wiki] to determine whether to load the file as a [wiki]CompressedImageData[/wiki] or a regular ImageData, before eventually passing the data to love.graphics.newImage).
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: love-loader: load resources in a separate thread, easily

Post by kikito »

I have not given a look at 0.10.x features for this lbrary just yet. I don't know when I will be able to do so (Pull requests are accepted and encouraged though)
When I write def I mean function.
User avatar
murks
Party member
Posts: 185
Joined: Tue Jun 03, 2014 4:18 pm

Re: love-loader: load resources in a separate thread, easily

Post by murks »

I guess by slimes argumentation, it does not make sense to use love-loader for streaming audio either, right?

Additionally to the workaround I use for sounds (https://github.com/kikito/love-loader/issues/15) I simply load streaming audio without the loader:

Code: Select all

MUSIC['song'] = love.audio.newSource('music/05CreepyCastle.ogg', 'stream')
instead of:

Code: Select all

LOADER.newSource(MUSIC, 'song', 'music/05CreepyCastle.ogg', 'stream')
I have not tested the performance, but it works.

Btw., kikito, your libraries are great, they tend to ... work! Thanks!
User avatar
georgeprosser
Citizen
Posts: 68
Joined: Fri Mar 28, 2014 5:55 pm

Re: love-loader: load resources in a separate thread, easily

Post by georgeprosser »

Yo is this still alive?
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: love-loader: load resources in a separate thread, easily

Post by kikito »

I have not updated it in a while, but it still works as far as I know.
When I write def I mean function.
User avatar
Tanner
Party member
Posts: 166
Joined: Tue Apr 10, 2012 1:51 am

Re: love-loader: load resources in a separate thread, easily

Post by Tanner »

It still works well!
AlexYeCu
Citizen
Posts: 53
Joined: Fri May 30, 2014 4:08 pm

Re: love-loader: load resources in a separate thread, easily

Post by AlexYeCu »

Is it able to create a feature request for love-loader?
About it's integration with 3DreamEngine's (https://github.com/3dreamengine/3DreamEngine) resourses?
Preloading *.obj files, *.3do files (innder format of subj), textures?
love-loader is an extremely useful piece of code, but It would be nice to use it with other libraries.
And I do not even understand what person should I talk about this: kikito, Tanner Rogalsky, 3DreamEngine's author or someone else.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest