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

note_input_optimizations #22791

Merged

Conversation

RomanPudashkin
Copy link
Contributor

@RomanPudashkin RomanPudashkin commented May 13, 2024

Resolves: #16112
Resolves: #21520
Resolves: #22639

Muse Sounds note: to hear the difference, you need MuseSampler 0.100, which hasn't been publically released yet but will be with MuseScore Studio 4.4

@RomanPudashkin RomanPudashkin marked this pull request as draft May 13, 2024 07:03
@RomanPudashkin RomanPudashkin force-pushed the note_input_optimizations branch 5 times, most recently from c38039b to 3c5074a Compare May 20, 2024 10:32
@RomanPudashkin RomanPudashkin force-pushed the note_input_optimizations branch 5 times, most recently from 1e95283 to bcbfd98 Compare May 31, 2024 15:03
@RomanPudashkin RomanPudashkin force-pushed the note_input_optimizations branch 4 times, most recently from 993a233 to 166e25a Compare June 6, 2024 07:29
@DmitryArefiev DmitryArefiev self-assigned this Jun 6, 2024
@RomanPudashkin RomanPudashkin force-pushed the note_input_optimizations branch 2 times, most recently from 9e809cb to d43bacf Compare June 11, 2024 08:11
@RomanPudashkin RomanPudashkin force-pushed the note_input_optimizations branch 5 times, most recently from 2ff65ff to a110b97 Compare June 20, 2024 13:05
@RomanPudashkin RomanPudashkin force-pushed the note_input_optimizations branch 7 times, most recently from 58edcea to eda029a Compare July 3, 2024 11:13
Significantly reduces CPU load during note input
1. fixed crash when using <= 512 buf and VST FX

2. optimized flushBuffers()

3. don't recreate in/out buffers too often

4. don't call setupProcess every time a note is entered
…d small buffer (512)

In this case, WASAPI forcibly starts using a larger buffer, and we don't reserve enough samples
Since we can have thousands of events on large scores
We used to call it 3 times in a row when entering a note
@RomanPudashkin RomanPudashkin marked this pull request as ready for review July 29, 2024 07:29
@RomanPudashkin RomanPudashkin requested a review from Eism July 29, 2024 07:29
@bkunda
Copy link

bkunda commented Jul 29, 2024

I'm happy for this to be merged in its current state as it will enable broader testing and easier build management, and will unblock the creation of the 4.4 branch.
Thank you @RomanPudashkin!

@RomanPudashkin RomanPudashkin merged commit b820226 into musescore:master Jul 29, 2024
11 checks passed
@RomanPudashkin RomanPudashkin deleted the note_input_optimizations branch July 29, 2024 08:08
@RomanPudashkin RomanPudashkin mentioned this pull request Jul 29, 2024
8 tasks
@DmitryArefiev
Copy link
Contributor

DmitryArefiev commented Jul 29, 2024

Tested on Win10, Mac13.6, LinuxUbuntu22.04 - PASS
On Linux, MuseSampler 0.100 doesn't work with MuseHub2 for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants