MurhafSousli / ngx-gallery

Angular Gallery, Carousel and Lightbox
https://ngx-gallery.netlify.app/
MIT License
604 stars 128 forks source link

Constant cpu usage on idle page #585

Closed jelleVandendriessche closed 8 months ago

jelleVandendriessche commented 10 months ago

What is the expected behavior?

No cpu usage once it's rendered.

What is the current behavior?

image

What are the steps to reproduce?

On edge using the peformance monitor you can see that a constant style recals are being triggered when using a static gallery.

What is the use-case or motivation for changing an existing behavior?

In some use-cases this pushed our apllication cpu usage to a constant 100%. (The gaps in the data is when switching tabs) image Removing the gallery or enabling the thumbs fixed this for us, but we don't want thumbs. On the demo page I was unable to reproduce this.

Which versions are you using for the following packages?

Angular: 16.1.5 Angular CDK: 16.1.5 Angular CLI: 16.2.4 Typescript: 5.1.6 Gallery: 11.0.0

MurhafSousli commented 8 months ago

I released v12 beta, the core functionality is written from scratch and the technique has changed.. please try out the new version and feel free to open a new issue if you encountered any, I am closing this for now...