1j01 / tracky-mouse

Mouse control via head tracking, as a cross platform desktop app and JS library. eViacam alternative.
https://trackymouse.js.org/
MIT License
25 stars 4 forks source link

Lag when scrolled over section with background on website #54

Open 1j01 opened 2 months ago

1j01 commented 2 months ago

The section with a fancy tessellating cursors background that I designed is causing lag on my phone. I think background-blend-mode: overlay is too intensive for my phone, or maybe background-attachment: fixed or the combination, but probably just the blend mode.

I'm not sure a translucent solid color on top would have the same effect as the overlay, so precomposing images could preserve the current look, but reducing contrast further might be a good thing, The text can be hard to read over the background.

Also ideally the background would wrap... On my desktop, this doesn't come into play, but on my mobile, I can see a seam, if I scroll it so the section is towards the bottom of the screen.

1j01 commented 2 months ago

Oh it could be the SVG rendering itself. It uses a filter inside the SVG. That's probably it.