Page 1 of 1

Decreasing load times

PostPosted: Wed Mar 08, 2017 18:55
by Wuzzy
Hi! Are there any tricks to reduce the loading times for subgames/mods?

I have a jukebox mod with a lot of Ogg Vorbis files inside which apparently are loaded everytime the subgame is started (seems Minetest does not know what “cache” is …). I also noticed that removing the jukebox mod significantly cuts down the loading time. However, removing jukeboxes is not an option to me.

Anyway, loading of thse music files takes long, so do you know any tricks to cut down the time?

Re: Decreasing load times

PostPosted: Thu Mar 09, 2017 11:51
by xeranas
It would be nice feature to be able define that particular sound would be loaded on demand. There is no issue to wait few sec before music starts (wait before loaded) at moment when you asked. Would be super feature if it could stream bit by bit (short wait time until music starts playing). I think its worth to create ticket on MT engine github and see what dev would comment about it.

Re: Decreasing load times

PostPosted: Thu Mar 09, 2017 18:43
by Wuzzy
Yeah, I think you're right. But streaming is probably going to be hard.
Maybe some sort of “smart loading” could be implemented, only loading the most important files first and the less important files could be loaded when you're in the game.

But I have hoped there is maybe a simple trick which I could use right now.

Re: Decreasing load times

PostPosted: Sun Mar 19, 2017 15:32
by BBmine
Jukebox..... I was wondering if I should get rid of jukebox on my Noob Academy server, but it's just too cool :P

Re: Decreasing load times

PostPosted: Sun Mar 19, 2017 21:56
by hajo
Wuzzy wrote:loading times .. Jukebox files .. are loaded everytime (seems Minetest does not cache)

It's not just musicfiles - same goes for repeated download of files from other mods
(especially big mods, like Homedecor).

So, a cache-mechanism / local directory, to download/check/update files
only when needed would be useful for minetest in general.

This would also save datatransfer-volume - some people use mobile devices,
and probably only have a limited datavolume each month.

Re: Decreasing load times

PostPosted: Tue Mar 21, 2017 16:35
by bell07
A newbie question/idea at this point: Are texture-packs client site or server site? If client site: will the client download textures even the pack contains them? Maybe that is a way to reduce the downloads. Could ogg-files be included to texture pack for delay reductions?

Re: Decreasing load times

PostPosted: Thu Mar 23, 2017 00:24
by red-001
they can be either server or client sided.

Re: Decreasing load times

PostPosted: Thu Mar 23, 2017 09:19
by Byakuren
I have heard that using the separate HTML asset server feature thing can reduce download times.

Re: Decreasing load times

PostPosted: Thu Mar 23, 2017 16:12
by rubenwardy
Byakuren wrote:I have heard that using the separate HTML asset server feature thing can reduce download times.


remote media server. It means that the Minetest instance doesn't need to worry about serving media, instead a separate web server does that.