gosling.js icon indicating copy to clipboard operation
gosling.js copied to clipboard

zooming and panning lag

Open zhangzhen opened this issue 3 years ago • 1 comments

There are one GC track and one Coverage track in my spec. When sampleLength is set to 2000 for each track, zooming and panning begins to lag a bit. When sampleLength is set to 6000, lag is getting much more worse. What can I do to reduce such lag?

Genomespy uses TWGL (a WebGL wrapper) to do stuff with WebGL, which Gosling uses PixiJS to do that. Zooming and panning in Genomespy seems to be smooth compared to in Gosling. I wonder if this plays a role in such issue.

Zhen

zhangzhen avatar Nov 10 '21 13:11 zhangzhen

Hi Zhen, Gosling.js is more optimized to the use of the tiling concept file formats (e.g., vector, beddb, multivec types in HiGlass) and has spaces to improve in terms of rendering performance for CSV files and JSON data. We plan to / would like to improve this part, but would require some time to update on the rendering pipeline that is currently based on HiGlass.

Meanwhile, we recommend using non-CSV files if possible, e.g., beddb for tabular data.

sehilyi avatar Nov 16 '21 00:11 sehilyi