Help! How to fix FPS Drop?

I’m working an an ASL fingerspelling project for a game I’m working on for a senior thesis project. I’m pretty new to touch designer and have recently run into a huge bottle neck. My FPS drops down to 5 after I added some expressions to be able to allow the letters to be triggered and added to a word string later. But after doing that my FPS was obliterated. The left hand is where I put the additional code and have been trying to trouble shoot, and the right hand is relatively fine (it still has an FPS drop but nearly as severe). I have two separate versions I was trying to trouble shoot through with little success. I’m stuck and have no idea what to do at this point. Any advice and help would be appreciated.

ASLCode_V4.1.toe (190.7 KB)

ASLCode_V3.25.toe (85.8 KB)

I used the mediapipe plugin with the handtracking tox for the code, I can’t include those files though because they are too big.

Hi @nephis.ss

this is quite a complex project. Just from a quick look at it, you need to reformulate how you want to detect the hand gestures.

Ideally you would first normalize the hand’s joint positions and then compare to a set of prerecorded poses (you can store the positions for each recorded pose as a start.

There are most likely algorithms to convert a raw handpose into a feature vector or something that better describes the pose and is more stable when hands are rotated and similar.

cheers
Markus