Decreasing load times

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Decreasing load times

by Wuzzy » Wed Mar 08, 2017 18:55

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?
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
xeranas
Member
 
Posts: 99
Joined: Fri Feb 05, 2016 11:06
GitHub: xeranas

Re: Decreasing load times

by xeranas » Thu Mar 09, 2017 11:51

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.
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: Decreasing load times

by Wuzzy » Thu Mar 09, 2017 18:43

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.
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

BBmine
Member
 
Posts: 1425
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins

Re: Decreasing load times

by BBmine » Sun Mar 19, 2017 15:32

Jukebox..... I was wondering if I should get rid of jukebox on my Noob Academy server, but it's just too cool :P
God's not dead!
I actually did mine walls before I started playing this game....
Mods, Servers, and My Youtube Channel
Let us remember Just Test on April 16.
"Together, we will make America great again!" --President Trump
Please vote for the next video I should do here
I'm the most rottenist potato in the fridge.
Copyright (c) 2017 Baggins Inc. (tm) All rights reserved.
 

hajo
Member
 
Posts: 262
Joined: Thu Oct 13, 2016 10:45

Re: Decreasing load times

by hajo » Sun Mar 19, 2017 21:56

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.
Some of 'my' wiki-pages: Build-a-home - basic-robot - basic-machines - digtron
 

bell07
Member
 
Posts: 140
Joined: Sun Sep 04, 2016 15:15
GitHub: bell07

Re: Decreasing load times

by bell07 » Tue Mar 21, 2017 16:35

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?
 

red-001
Member
 
Posts: 126
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: Decreasing load times

by red-001 » Thu Mar 23, 2017 00:24

they can be either server or client sided.
 

Byakuren
Member
 
Posts: 441
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri

Re: Decreasing load times

by Byakuren » Thu Mar 23, 2017 09:19

I have heard that using the separate HTML asset server feature thing can reduce download times.
Every time a mod API is left undocumented, a koala dies.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Decreasing load times

by rubenwardy » Thu Mar 23, 2017 16:12

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.
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 17 guests

cron