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

FPS drops when GUI displayed on FL Studio #77

Open
carrotflakes opened this issue Jun 5, 2023 · 4 comments
Open

FPS drops when GUI displayed on FL Studio #77

carrotflakes opened this issue Jun 5, 2023 · 4 comments

Comments

@carrotflakes
Copy link

I'm creating a VST plugin with nih-plug. When using the created plugin on FL Studio, the FPS of the entire FL Studio drops (from 60 to 30) while displaying the GUI.
I've confirmed the same with gain_gui_egui and gain_gui_iced.

While the FPS drops, I see the CPU usage rise, so I thought it might be in a busy loop somewhere, but I haven't been able to locate it.

My environment: windows 11, FL Studio 21

@robbert-vdh
Copy link
Owner

I don't have WIndows installed so I can't check. I briefly checked the FL Studio demo under Wine and I don't remember there being any specific issues there. You'd probably need to check in baseview, but I don't think that's doing anything special either. I haven't others have issues like that so it may be specific to your setup.

@carrotflakes
Copy link
Author

After reviewing my settings, the phenomenon that the fps decreased was caused by the setting frame rate of 30 for the display.

But the problem still exists regardless of the framerate setting.
The GUI will increase the CPU load and drop the frame rate of FL Studio experience.

I've also tried using Wine, but it's not as bad as windows, but it's a problem. The smoothness of the UI is lost to the extent that it is not noticed unless one is conscious of it.

You'd probably need to check in baseview

Thanks, I'll check that out :)

@carrotflakes
Copy link
Author

I found a workaround: disabling the vsync option.

Reference: https://www.khronos.org/opengl/wiki/Swap_Interval

I don't know the correct way to fix it, but I hope it gets resolved.

@JonDum
Copy link

JonDum commented Mar 27, 2024

Having a similar issue with Ableton 12 on Mac. Whenever I add spectral compressor to the it seems like Ableton can't keep up with the redraws (mouse input scrolling around the set takes an 500-1000ms delay to complete but do eventually complete). Too many inputs and pausing/playing Ableton starts beach balling and freezes up. I have to restart Ableton at this point.

Are there any ways for me to get debug logs that would be helpful?

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

No branches or pull requests

3 participants