scverse / scverse/napari-spatialdata

Shapes performance

Open
#249 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
90
Forks
25
Avg merge
22m
Merged PRs (30d)
1

Description

One way we may be able to get a quick improvement on rendering many shapes at once is by not having a face displayed for each shape. Not certain whether when setting face color to a transparent color it would prevent napari to render the face of a shape, but this is worth investigating.

The speed of the lasso tool was vastly improved by not rendering the face when drawing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how shape faces are rendered and compare that behavior with the lasso tool, which already avoids rendering the face while drawing. Investigate whether transparent face colors suppress rendering, then verify the effect on rendering performance for many shapes without changing visible behavior unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics, performance
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.