Giter Club home page Giter Club logo

Comments (4)

mistic100 avatar mistic100 commented on August 15, 2024

You test on Firefox right ? I experience some stuttering on FF, but on Chrome the loading is instantaneous.

Also how exactly to you display cropped panoramas ? I remember your are using the tiles adapter with a full-res base pano and no tiles, is it right ?

I that case you are comparing the loading of a "large" cropped image and the loading of the low resolution base image.


Currently the cache is at the loader level, it contains the Image/Blob resulting of the HTTP request, perhaps it could be modified to store the final texture once it has been computed.

from photo-sphere-viewer.

PanierAvide avatar PanierAvide commented on August 15, 2024

Tested on Firefox 124 and Chromium 123, I confirm this is better under Chromium.

Cropped panoramas are shown using Equirectangular Tiles adapter, with base pano in standard definition (2048px wide, for both 360° or classic images). 360° have tiles, classic have not (URL function returns null). So beyond tile loading (which happens after), base pano loading is on similar files (in example, classic ~250ko, 360° ~400ko).

Caching computed texture would help on second loading for sure.

from photo-sphere-viewer.

mistic100 avatar mistic100 commented on August 15, 2024

I am afraid caching the file texture is much more complicated than expected. It is assuming the "panoData" is already correct, but it is not the case when the panorama is preloaded, XMP data are loaded but potential "panoData" overloaded in the virtual tour node (or anywhere else) are not.

By caching only the original image I am sure that the final texture is always correct according to the current configuration.

And the modification cascades very deeply in all adapters, I fear some bad regressions.


If something has to be done it is optimizing the canvas operations, but I have no idea why Chromium is better than Firefox here.

from photo-sphere-viewer.

PanierAvide avatar PanierAvide commented on August 15, 2024

Thanks for taking time investigating in this issue, if the issue is browser-side there is for sure not much to do in PSV to solve this 😅

from photo-sphere-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.