Sentis Unity Timeout

Ok so I am looking into an error dealing with Sentis for doing some image processing. The function works in editor, as well as on ios (slowly). On ML2 I am getting a “stuck” frame, and then an “acquireBuffer” error. I have tried both running on gpu and cpu. After around 20s I get dropped back into the home menu and the app quits. Feels like its just taking too long, and getting booted, but wondering if y’all have any thoughts. I did get this message once
skipped 121 frames! the application may be doing too much work on its main thread.
which is pretty descriptive, wondering if there is any guidance on using Sentis on device

Unity Editor version: 2022.3.22f1
ML2 OS version: 1.11.0

Error messages from logs (syntax-highlighting is supported via Markdown):

It sounds like the model is overloading the main thread. I’m not familiar with Sentis, so you may want to reach out on the official Unity Discussion forum. I was able to find a post that mentioned getting the model to run a layer at a time. Maybe that could help reduce the resources required per frame :

yea it totally is. spreading it out over several frames got it to run, but badly. For future searchers, Sentis models when running on gpu compile the compute shaders at runtime, so its best to “prewarm” them with an early call on awake, it hides some of that compile time in the app startup.

1 Like