How to know whether the API of Filament needs to run in the Filament thread? #6833
-
I used the main thread as the Filament thread for my Android App at first, but some APIs of Filament cost time. so I want to change the Filament thread from main thread to a worker thread, but I don't know what api must be used on the Filament thread and what interfaces It can be used on any thread. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Filament must be used from a single thread. So you just move all filament calls (including creation) to the worker thread. I'm interested to know which filament apis are taking excessive time though. You should be able to use filament from the main thread without too many issues. |
Beta Was this translation helpful? Give feedback.
Filament must be used from a single thread. So you just move all filament calls (including creation) to the worker thread.
I'm interested to know which filament apis are taking excessive time though. You should be able to use filament from the main thread without too many issues.