engine icon indicating copy to clipboard operation
engine copied to clipboard

Is it possible to use IndexedDB to improve the loading speed of secondary renders?

Open declanchiu opened this issue 1 year ago • 1 comments

I'm developing a 3d project using playcanvas, if I want to increase the rendering speed in the second rendering, is it possible to store the glb parsed data into IndexedDB, then in the second loading, instead of requesting the model data, I can directly pull out the stored parsed data from indexedDB for rendering.

declanchiu avatar May 28 '24 09:05 declanchiu

I'm developing a 3d project using playcanvas, if I want to increase the rendering speed in the second rendering, is it possible to store the glb parsed data into IndexedDB, then in the second loading, instead of requesting the model data, I can directly pull out the stored parsed data from indexedDB for rendering.

You should use proper headers for appropriate caching policy. For all static assets, it is recommended to rely on asset.file.hash, and provide strong caching, so it won't even make a network request, and load from the browser's local cache.

Maksims avatar May 28 '24 18:05 Maksims

Closing as this is not work request for the engine nor a bug. Perhaps post on the forum to get additional advice: https://forum.playcanvas.com/ @declanchiu

mvaligursky avatar Jun 03 '24 15:06 mvaligursky