Comments (4)
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.
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.
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.
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)
- [Firefox Android] Camera reverses direction on quick swipe or pan. HOT 3
- privacy.resistFingerprinting=true degrades photo sphere viewer HOT 3
- Read and expose position-related metadata HOT 3
- Plan - keep marker tooltip class HOT 2
- The panorama image is bent HOT 5
- Non-default adapters ignore and override mast elements panoData HOT 1
- Bug import @photo-sphere-viewer/cubemap-adapter HOT 1
- New Adapter: dual fish eyes HOT 4
- VirtualTour Plugin - How to set the initial view depending on origin HOT 5
- Viewer.setPanorama -> Cannot add property transition, object is not extensible HOT 2
- Marker Rotation is set to zero when updating marker position HOT 3
- Polygon with Holes Marker HOT 12
- how to setCursor HOT 2
- i can not use it on my iphone HOT 1
- StereoPlugin must be start from potrait mode, wrong gyro sensor move if start from landscape mode HOT 2
- Video Plugin HOT 2
- Real-world compass headings - configuration? HOT 11
- Equirectangular - interpolateBackground HOT 1
- iOS Fullscreen problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photo-sphere-viewer.