Frame Rate Too Low
Hey!
I made a lens with 2-3 basic 3D models but it has a lot of very small 2D sprites.(no 3D or 2D animations)
The overall size of the lens in 2.67MB and when I push it to my phone and the settings show 30FPS but on submitting the lens it gets rejected saying that the FPS is too low.
Any way to look into what's going on and how to debug this?
Hi Shree, if you have access to a lower end Android device, this would be helpful in testing the Lens's frame rate. Optimally, you can test your Lens experiance on a Galaxy S6 where it's expected to run above 15 FPS. More information can be found here: https://lensstudio.snapchat.com/guides/submission/performance-and-optimization/
Second, I'd make sure the 3D models are within our recommended tri limitations. Generally, we suggest having no more than 10,000 tris rendered on the screen for best performance on all devices high and low. While you can push this limit, it's harder to predict if you're going to be within FPS requirements.
Finally, if you're still having FPS issues, check your Anti Alias settings. Turning off Anti Aliasing can result in a big performance boost for Lenses. To disable Anti Aliasing select the Camera Output texture in the Resources panel. Then, in the Inspector panel make sure FXAA and MXAA are disabled. You can also experiment with a single option enabled. Generally, MSAA will help soften edges while FXAA helps soften the entire image.