We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I initialize the buffer pre frame like this, but it's wasting too much performance. How should I do it correctly?
//!BUFFER FRAME_DATA //!VAR int L_min //!VAR int L_max //!VAR int L_avg //!STORAGE //!HOOK OUTPUT //!BIND HOOKED //!BIND FRAME_DATA //!SAVE EMPTY //!COMPUTE 32 32 //!DESC initial void hook() { atomicExchange(L_min, 10000); atomicExchange(L_max, 0); atomicExchange(L_avg, 0); }
The text was updated successfully, but these errors were encountered:
You can use this to make it faster:
//!WIDTH 1 //!HEIGHT 1 //!COMPUTE 1 1
But I realize that this is a good idea to support natively, basically allowing for self-clearing buffers.
Sorry, something went wrong.
Oh, also, you don't need to use atomicExchange, just set the variable directly.
atomicExchange
Thanks!
I will add a feature for this
No branches or pull requests
I initialize the buffer pre frame like this, but it's wasting too much performance. How should I do it correctly?
The text was updated successfully, but these errors were encountered: