BrainFlowsIntoVRChat icon indicating copy to clipboard operation
BrainFlowsIntoVRChat copied to clipboard

Suggestions? Alternative boolean params to save space

Open Charmandrigo opened this issue 1 year ago • 1 comments

Just a suggestion! Since it's not the first time I have dealt with running out of parameters memory, but I would like to suggest alternative osc parameters that use booleans instead of floats, which could be 4 per value

ex: the float osc_focus_left can be broken into 4 booleans to reduce the memory usage from 8 to just 4 bits. Booleans can go true for a certain threshold of a brain wave (10% > 25% > 50% > 85%). This in terms of usage on animators should make little to no difference since animations can smoothly transition with booleans going true.

Currently using all float values on this project takes 64 bits of the available custom parameters space, reducing it to 4 bools per metric, that would reduce its usage to 32 bits! Leaving enough space to add more parameters.

This is just a suggestion for those here who run multiple osc hardware! I also face track my avatars and gotta have all that sweet memory available to use all the hardware I have!

Charmandrigo avatar Jan 20 '24 01:01 Charmandrigo