Replies: 1 comment
-
Performance is difficult to measure accurately. For instance, the Chromium debugger slows things down significantly when it's open. Another example: Rendering is a bit slower when initial caches are being built up, and subsequent frames are faster.
Yes
Improvements are always welcome
WebGL could increase blitting performance from the caches, and it could help with rendering edge lines. Rendering text with WebGL generally isn't very good. You'd probably want to use a mixed approach with both canvas and WebGL.
There's a section in the documentation devoted to performance with tips: https://js.cytoscape.org/#performance Generally, the more features a library supports, the more expensive it is. Generally, people prioritise rich interactive features over raw performance, beyond a certain point [1].
|
Beta Was this translation helpful? Give feedback.
-
Hi guys,
I am currently working on a project which should handle about 400-500 nodes with the goal to reach at least 30 FPS.
I did some performance measuring with google chrome profiler. Here is an example with 286 Nodes and 288 Edges, no styling and no layout applied.
As you can see the whole render calculation takes about 50ms. With this I would only get 20 FPS at max. Considering that layouting will at least take up 5ms and using styles may also reduce performance I guess it seems not possible to get to 30 FPS. Do you agree so far?
If yes, I have a few questions to the veterans.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions