inFocus7 / TrendGenie

Your content creation assistant.
GNU General Public License v3.0
2 stars 0 forks source link

Enhancement/Improve performance of audio visualizer generation #30

Closed inFocus7 closed 10 months ago

inFocus7 commented 10 months ago

Description

Improve performance. Especially with rendering the video generation.

When using PIL for everything (due to conversions and others), the iterations/sec for adding the dots in frames was ~30it/s -> 100it/s. When moving to CV2, as of now it's ~70it/s -> 200it/s. Now generating the dots is not a bottleneck 🥳

I probably should have kept track of my cProfiling as "proof" 😞

Fixes #(issue number)

I'll still need to

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

Checklist:

Before you submit your pull request, please review the following checklist:

Additional context

Add any other context about the pull request here.