Comments (4)
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.
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.
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.
🎉 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)
- Document the relationship between offscreen canvas and pixel density HOT 10
- Support Dynamically Created and Destroyed <Canvas> HOT 1
- is it possible to pause animation from useAnimatedImageValue HOT 2
- Animate spritesheet HOT 1
- Tooltip text is not visible HOT 2
- Difficulty setting different corner radius for each corner.
- Difficulty setting different corner radius for each corner. HOT 2
- [IOS] build error HOT 2
- Cannot use custom radii for rounded rectangle HOT 1
- Segfault `RNSkia::RNSkOpenGLCanvasProvider::surfaceSizeChanged` HOT 3
- TextAlign in Paragraph maker crashes android HOT 1
- Android Build Error HOT 1
- Issue with Rendering SVGs Using xlink:href
- Android crash: SIGSEGV HOT 1
- text in ImageSVG will not shown HOT 5
- does not compile on android
- the new useClock doesn't update HOT 2
- Path interpolation not working when path is rendered via map and has end and start props
- Interpolation Issues When Reusing an Interpolated Path Across Multiple Path Nodes
- Android rendering artefact not working correctly HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-skia.