-
Notifications
You must be signed in to change notification settings - Fork 11
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
SCA: How to set buffer size #61
Comments
Usually, one variable consumes 4 bytes. If it consumes the maximum, it consumes 8 bytes. If the variable exceeds the size of the buffer, an overflow can occur and interrupt the trigger flow of the map. |
For example, I got 2 SCA variables, (1 variable and 1 array): const x = PVariable(); // 1 variable
const y = EUDArray(40); // Array of length 5 How many variables is this equivalent to? 6, or 48? |
x is 1 min 6 X 4=24 ~ max 6 X 8=48 However, it is good enough to leave it around 100. |
I see. thx! |
Is it possible to add a new feature: let EE3 automatically detect the number of SCA variables and calculate the buffer size needed? |
To do that, we need a parser that can keep track of the length of the array. |
Maybe use regular expression? May not be hard to do :P |
Is there a guide about what is / how to set the buffer size?
My map has over 20 SCA variables, but the buffer size is 300 (default). I don't know whether this is proper. What consequence can be caused by improper buffer size settings?
The text was updated successfully, but these errors were encountered: