Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve heavy pano loading by slice it to many pieces #243

Closed
mnking opened this issue Nov 30, 2018 · 5 comments
Closed

Improve heavy pano loading by slice it to many pieces #243

mnking opened this issue Nov 30, 2018 · 5 comments
Labels
Milestone

Comments

@mnking
Copy link

mnking commented Nov 30, 2018

Improve heavy pano loading by slice it to many pieces

  • My pano image has 5mb of size, it very slow to load in the first time
  • How to improve speed by slice it to many pieces and load it async
@mistic100
Copy link
Owner

The current state of the code is absolutely not ready for this. I cannot tell I will ever do it.

@cyruscuenca
Copy link

Try tweaking the compression for your image, and then load it into a CDN. That's what I did, and now my panoramas load pretty fast.

You could also pre load the whole panorama on an SPA in the background if you really want the panorama appear instantly.

You should probably close this issue

@mistic100
Copy link
Owner

mistic100 commented May 6, 2020

I don't think so. The current implementation is limited by the canvas resolution of the browser #363 whatever is the filesize.

Having multiple slices would allow much higher resolution.

@mistic100 mistic100 changed the title Improve heavy pano loading by slice it yo many pieces Improve heavy pano loading by slice it to many pieces Feb 9, 2021
@mistic100
Copy link
Owner

So I have a working code on the adapters branch but is has very poor performances.
It works well for a 6000x3000 panorama with 375x375 tiles (16 columns and 8 rows) but is very slow with a 16384x8192 panorama with 512x512 tiles (theorical limit for the canvas buffers I use).

I think the performance issue is when the updated buffers needs to be uploaded to the GPU.
I hoped to be able to render highres panoramas with multiple levels of tiling but the approach is just not adapted.

On a side node I found this paid solution with tremedous performances !
https://krpano.com/examples/?multires

@mistic100
Copy link
Owner

I made a new implementation using custom UV mapings (still on the adapters branch) and it has excellent performances.
Tested with the same 16384x8192 panorama using 256x256 tiles (2048 tiles in total).

@mistic100 mistic100 added this to the 4.3.0 milestone Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants