Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize WebGL memory usage #3326

Open
7 tasks
mikekucera opened this issue Jan 22, 2025 · 0 comments
Open
7 tasks

Optimize WebGL memory usage #3326

mikekucera opened this issue Jan 22, 2025 · 0 comments
Assignees
Labels
bug A bug in the code of Cytoscape.js

Comments

@mikekucera
Copy link
Contributor

The WebGL mode creates textures at runtime for node bodies and labels. This allows all existing node and label styles to work with WebGL.

For some networks the textures are taking up an unreasonable amount of video memory, causing crashes.

It seems the best way to fix this issue is to compress the textures using one of the supported WebGL texture compression formats. Since we are not loading static assets, we are creating textures at runtime, that means the compression must also happen at runtime.

Further discussion on this topic, and any other WebGL performance issues, is here: #3325

For reviewers

Reviewers should ensure that the following tasks are carried out for incorporated issues:

  • Ensure that the reporter has included a reproducible demo. They can easily fork this JSBin demo: http://jsbin.com/fiqugiq
  • The issue has been associated with a corresponding milestone.
  • The commits have been incorporated into the corresponding branches. Bug-fix patches go on
    • master,
    • unstable, and
    • the previous feature release branch (e.g. 1.1.x if the current release is 1.2).
  • The issue has been labelled as a bug, if necessary.
@mikekucera mikekucera added the bug A bug in the code of Cytoscape.js label Jan 22, 2025
@mikekucera mikekucera self-assigned this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in the code of Cytoscape.js
Projects
None yet
Development

No branches or pull requests

1 participant