Skip to content

Sozi is having performance issues for longer presentations #753

@Foly93

Description

@Foly93

Hi,

First of all I love the way sozi works and I am so impressed that an open-source project can produce software that is so much more innovative than multi-billion-dollar company. I have used sozi a couple of times for my scientific presentations. However, these tend to become very long (100+ frames) and contain SVG files in the range of 10MB as input files. I do not know about other use cases where sozi might be faster, but for these types of presentations ranging between 20 and 45 minutes, working with sozi becomes a test of patience for me. Dragging individual layers into place can take minutes at this point.

I work with Python mostly, so I am not an expert but I have some coding experience and with the help of OpenCode I managed to modify the repo and compiled a seemingly working sozi that has much better performance. I am fine with using this version on my own, but I would love to contribute to you project and wanted to ask how I would do so.

Cheers,

Foly93

PS: I used the dev tools to record performance. I selected the first frame of one of my really long presentations, dragged all layers forth and back and then zoomed in and out trying to restoring the original view. Performance measurements in ms below:

|   Old |   New |  Old* |  New* | Process
+++++++++++++++++++++++++++++++++++++++++++++
| 77486 | 16809 |   88% |   45% |  Scripting
| 14819 | 20062 |   17% |   54% |  Rendering
|    77 |   200 |  0.1% |  0.5% |  Painting
|   389 |   305 |  0.4% |  0.8% |  System
| 11688 | 14014 |    -- |    -- |  Idle
| 87772 | 37404 |    -- |    -- |  non-idle
| 99460 | 51418 |    -- |    -- |  total

* calculated as percentage of non-idle time
It is noteworthy, that with the old version I did not even try to achieve a view similar to the original because it would have taken too long because of the lag. I am not sure how helpful it is but I also attached screenshots from the devtools performance pannels.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions