Home › Forums › Programming › Caching of verge3d app files
- This topic has 5 replies, 2 voices, and was last updated 4 years, 2 months ago by Yuri Kovelenov.
-
AuthorPosts
-
2020-09-10 at 4:57 pm #32704chrisiwienCustomer
I’ve integrated a verge3d app with the WordPress-Plugin. Everything works fine, but I have a question about caching.
Every time a user revisits the page with the verge3d app all the app content is downloaded again. I guess image data (JPG, PNG) will be cached via the standard settings.
Does it make sense also for .blend files to define a mime type/caching type in the server settings? So the .blend files are also stored in the browser cache?
The blend file of my verge3D has now the size of 10 MB. Would be nice if caching of this large file is possible.
Thank you in advance for your replies.
2020-09-11 at 4:13 am #32711Yuri KovelenovStaffHi,
Verge3D loads exported files .gltf/.bin, rather than .blend files. The former can be further compressed for more performance gains.
https://www.soft8soft.com/docs/manual/en/introduction/Asset-compression.html
2020-09-11 at 1:41 pm #32772chrisiwienCustomerHey Yuri!
Thx for your answer. Ah, ok, I’ve discovered via browser network inspector that the scene files are all in the browser cache.
The point ist: On each page visit the app loads every time completely new.
Is there any way to store also the scene in the browser cache or is it necessary to create the 3D scene every time a user visits the page?
I guess no, this isn’t yet implemented in browser technologies, right?
Regards
Christoph
2020-09-12 at 5:50 am #32783Yuri KovelenovStaffHi Christoph,
Browser cache stores all files locally, on the computer of the user. So it is necessary to run the application at least once in order for the files to get cached.
If a new scene is loaded each time the user visits your website, then there will be no gains from cache. However, it might be still possible to isolate elements, that are common for all scenes, in one scene that will always be loaded and as such cached (e.g.: some background model that is used everywhere).
2020-09-12 at 6:00 am #32784chrisiwienCustomerOk, thanks for your answer. I was just wondering why every time the preloader appears. All elements of the app are stored in the cache as you said. So the preloader shows the time for setup of the 3D scene. Ok.
2020-09-12 at 6:26 am #32786Yuri KovelenovStaffYep, besides the 3D scene files, there are other files that constitute the 3D web application – HTML, CSS, JavaScript, icons etc, and processing them requires time even if they are cached. The application also needs time to process the 3D scene files in order to recreate the scene graph in memory.
-
AuthorPosts
- You must be logged in to reply to this topic.