Mobile
Last updated
Last updated
Fluffy runs on both Android(Vulkan) and iOS(Metal). Even though only Vulkan is officially supported by Fluffy on Android, it may run just fine when using GLES3 with compute shader support. Android currently does not support SDF Colliders. On mobile you'll need to create simpler grooms than for desktop. The current included Fluffy examples are meant to be used on high end PCs or consoles. Watch the video linked to learn how to get best performance on mobile.
We currently have some issues with Mali GPU's. The issue is that it crashes when the compute shader thread group size is larger than 128. Mali GPUs are commonly used by some Samsung devices. So for now you have to manually fix this by modifying two Fluffy files.
In the file CSThread.cs the variable GROUP_SIZE and GROUP_SIZE_LARGE need to be set to 128:
In the file Thread.hlsl the variable THREAD_SIZE_VAL and THREAD_SIZE_LARGE_VAL need to be set to 128:
At this time we haven't found a solution to how this can be done at runtime instead of having to manually modify these files. The reason for this is that the devices seem to crash if there is a compute shader present with thread group size > 128, even if the shader isn't used.