question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Massive performance issues with huge maps on modern mobile devices caused by Canvas

See original GitHub issue

Discussed in https://github.com/openseadragon/openseadragon/discussions/2097

<div type='discussions-op-text'>

Originally posted by liveman1 January 22, 2022 Hi,

I have massive performance issues for huge maps on modern mobile devices (iPad air 4, iPhone 12), not being able to pan & zoom properly. When zooming in to a detailed section performance is great again. So this happens only on the initial zoom level with the entire image loaded. There are no issues on older devices like iPhone SE or iPhone 11. Thus, I guess this is related to the higher resolution of modern displays trying to load & handle the image in a much higher resolution.

I build a huge map from DZI files like this:

    var viewer = OpenSeadragon({
        id: "genes",
        tileSources: "genes.dzi",
        ...
        });
	
viewer.addTiledImage({
      	tileSource: 'g1.dzi',
	    x: 0.1,
	    y: 0.1,
	    width: 0.01
	});  
viewer.addTiledImage({
      	tileSource: 'g2.dzi',
	    x: 0.2,
	    y: 0.1,
	    width: 0.01
	});  
viewer.addTiledImage({
      	tileSource: 'g3.dzi',
	    x: 0.3,
	    y: 0.1,
	    width: 0.01
	});  
...
viewer.addTiledImage({
      	tileSource: 'g100.dzi',
	    x: 0.9,
	    y: 0.9,
	    width: 0.01
	});  

Thanks a lot!</div>

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
liveman1commented, Feb 21, 2022

Thanks a lot for your help! I will try to prepare an abstracted version & provide it to you.

0reactions
iangilmancommented, Mar 10, 2022

@liveman1 Glad to hear we’re making progress here. Interesting you mentioned loading tiles… That reminds me there are two different kinds of performance for OSD: the pan/zoom animation frame rate and the tile loading speed. I’ve been assuming we’re talking about the frame rate, but now you’re mentioning the loading speed. Did I misunderstand, or are they both issues in this scenario?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discussions · openseadragon/openseadragon - GitHub
Is there any way to add an id to the canvas element ... Massive performance issues with huge maps on modern mobile devices...
Read more >
Common issues and resolutions for Power Apps
A list of common issues and resolutions within Power Apps. ... For help with performance problems in canvas apps, read the topics under...
Read more >
High Performance Map Interactions using HTML5 Canvas
As you can see, the main performance gain comes from greatly reducing the browser rendering time (purple). Across all devices, the maps now...
Read more >
HTML5 Canvas: An Open Standard for High Performing GIS ...
The original system has been adapted for HTML5 Canvas and is now the primary method to deliver all maps at GIS Cloud.
Read more >
Evaluating the Performance of Three Popular Web Mapping ...
end devices for displaying raster or vector maps, ... Since the introduction of modern Web maps (https://gistbok.ucgis.org/bok-topics/web-.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found