Code Monkey home page Code Monkey logo

Comments (4)

wcandillon avatar wcandillon commented on May 26, 2024

Silly question: is this using the GPU or not? Because these numbers look quite ok if they run on CPU no? blending operation seems quite slow even on GPU (used to do things like inner shadows for instance).

from react-native-skia.

nahn20 avatar nahn20 commented on May 26, 2024

For the sake of assurdness, I chucked the test onto an AWS Lambda instance running with a memory size of 10 GB and saw similar results (albeit higher latencies due to less compute, but similar curve). Lambdas don't have GPUs so I think it's safe to say no GPU for these results. I'm less concerned about the operation being slow than the strange behavior of it taking significantly more time per iteration and then sloping back down to fast render times. I have my suspicions that there's some sort of memory leak going on.

Iteration 0 took 68ms
Iteration 20 took 61ms
Iteration 40 took 200ms
Iteration 60 took 423ms
Iteration 80 took 538ms
Iteration 100 took 632ms
Iteration 120 took 635ms
Iteration 140 took 609ms
Iteration 160 took 571ms
Iteration 180 took 528ms
Iteration 200 took 481ms
Iteration 220 took 431ms
Iteration 240 took 382ms
Iteration 260 took 335ms
Iteration 280 took 288ms
Iteration 300 took 245ms
Iteration 320 took 204ms
Iteration 340 took 166ms
Iteration 360 took 132ms
Iteration 380 took 102ms

from react-native-skia.

wcandillon avatar wcandillon commented on May 26, 2024

After testing it looks like the memory leaks was just slowing down the operation and blending especially on the CPU is slow enough to see such a big difference.

from react-native-skia.

github-actions avatar github-actions commented on May 26, 2024

🎉 This issue has been resolved in version 1.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

from react-native-skia.

Related Issues (20)

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.