GithubHelp home page GithubHelp logo

Comments (3)

luukdv avatar luukdv commented on August 25, 2024 1

right now, i only apply weak intensity

You don't have to lower the intensity for performance reasons. It doesn't make it less resource-intensive, it just makes the gooey effect much less obvious (see https://gooey-react.netlify.app/properties/intensity/).

instead of applying the gooey effect to 4 circles, i should just applied to 2-3 small circles right ?

For example! If I disable the <Goo> filter in your large example, I don't see that much of a difference. So you could think about which part you want to apply the effect to, and only focus on that smaller area.

can u explain more about what you think that might fix this issue ?

I don't think there's a fix available for how Safari handles this... Like you pointed out, as soon as it has to work with a larger area (one single big surface or multiple smaller ones) it seems to start choking. See https://codepen.io/mnmxmx/full/VjjvEq in Safari for example, which even utilizes a canvas implementation. In Chrome on the other hand, even if there's a lot of elements on the screen (like in your second example) there's no drop whatsoever.

Screenshot 2020-07-10 at 08 55 31

If you do find a way for improved Safari performance, I'd love to hear about it!

from gooey-react.

luukdv avatar luukdv commented on August 25, 2024

Some browsers (like Safari) don't handle these filters very well unfortunately. 🙁 Besides that, they are pretty resource-intensive either way. I don't think there's a fix available for this issue, but looking at your example, the effect would be very similar without the Goo filter because the circles are so close together.

Is this the final graphic you want to achieve, or something else? You could try to only apply it to a smaller part where the gooey effect has to be most apparent.

from gooey-react.

dellwatson avatar dellwatson commented on August 25, 2024

ic, thanks for the reply, i would like to help if i could, so can u explain more about what you think that might fix this issue ?

and for your suggestion, instead of applying the gooey effect to 4 circles, i should just applied to 2-3 small circles right ?
hmmph i will try it later.

right now, i only apply weak intensity

as u said, it's because of the filters, not because of the bigger svg causing this.
if i have multiple gooey on a single page, it also causing lagg on safari.

https://dw-test-gatsby.netlify.app/gooey-small-single/ normal
https://dw-test-gatsby.netlify.app/gooey-small-many/

from gooey-react.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.