voc / voctomix

Full-HD Software Live-Video-Mixer in python
https://c3voc.de/
MIT License
579 stars 107 forks source link

improve audio level display #197

Closed fightling closed 6 years ago

fightling commented 6 years ago

Improved CPU usage and look of the audio level display

After a first profiling session with voctogui I realized a CPU usage peak at audioleveldisplay.py:22(on_draw). This drawing routine uses move-to and line-to to create a gradient for displaying the audio levels which I found quite expensive. I replaced it by code which draws four rectangles for every channel by using cairo gradients which works much faster.

Sorry for the temporary mess on the master branch where I accidentally committed eight changes which I have already reverted.

MaZderMind commented 6 years ago

@fightling Would mind if I enable branch restrictions on the master-branch so that it can no longer be directly pushed to? This might help to avoid such accidents which I also have done more then once.

CarlFK commented 6 years ago

+1 enable branch restrictions on the master-branch

which I also have done I think everyone does that ;)

On Wed, Apr 18, 2018 at 4:17 AM, Peter notifications@github.com wrote:

@fightling https://github.com/fightling Would mind if I enable branch restrictions on the master-branch so that it can no longer be directly pushed to? This might help to avoid such accidents which I also have done more then once.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/voc/voctomix/pull/197#issuecomment-382321595, or mute the thread https://github.com/notifications/unsubscribe-auth/AABauQg-Xc8jAdNya-OIAuagLsw2W5_Wks5tpwS8gaJpZM4TZHD0 .

-- Carl K

fightling commented 6 years ago

Yes, please! I'm so sorry! I just didn't realized that I had switched back to master to get a comparison screen shot from the original version! shame on me.

On 18.04.2018 15:51, Carl Karsten wrote:

+1 enable branch restrictions on the master-branch

which I also have done I think everyone does that ;)

On Wed, Apr 18, 2018 at 4:17 AM, Peter notifications@github.com wrote:

@fightling https://github.com/fightling Would mind if I enable branch restrictions on the master-branch so that it can no longer be directly pushed to? This might help to avoid such accidents which I also have done more then once.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/voc/voctomix/pull/197#issuecomment-382321595, or mute the thread

https://github.com/notifications/unsubscribe-auth/AABauQg-Xc8jAdNya-OIAuagLsw2W5_Wks5tpwS8gaJpZM4TZHD0 .

-- Carl K

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/voc/voctomix/pull/197#issuecomment-382393642, or mute the thread https://github.com/notifications/unsubscribe-auth/AACpkYrgrOLok7OlTmWmmWv9PcdQokpeks5tp0T4gaJpZM4TZHD0.

-- Regards, Patrick

DON'T PANIC!

If you like privacy get my PGP key from: hkp://pool.sks-keyservers.net or download from: http://patsite.de/pgp.asc

MaZderMind commented 6 years ago

@fightling no worries, happened to everyone. I enabled branch protection for master ans also force-push-removed your commits from there, because they still failed the travis build.

Please ensure to merge your PRs into the git@c3voc.de:voctomix.git repo, as the github-repo is only a mirror (which is overwritten by the state of the above mentioned repo). Anyone of the VOC core team can add your ssh-key there, you cann mail/chat it to me if you want.

fightling commented 6 years ago

The travis warnings are not originated in the files I have changed. I already have a patch to fix all these warnings lying in my local repro. But at least in one case I'm not sure that my change is neutral and correct. Should I push it into a new branch review/fixing-pep8-warnings or something similar and then we can discuss my changes?

MaZderMind commented 6 years ago

@fightling absolutely! I'll take a closer look at this PR later this day.

fightling commented 6 years ago

Merged master to get travis fixes

MaZderMind commented 6 years ago

@fightling I guess you decided to not center the text for better readability? I kind'a liked them better centered, but I guess that's a case of personal opinion :D