narek adonts Well-Known Member Licensed User Longtime User Apr 7, 2015 #1 Hi, My app is processing a lot of images and it slow down the application a lot(mainly the animations that i am doing with timers). Anyway to make the image processing subs in a background thread ? Narek
Hi, My app is processing a lot of images and it slow down the application a lot(mainly the animations that i am doing with timers). Anyway to make the image processing subs in a background thread ? Narek
Erel B4X founder Staff member Licensed User Longtime User Apr 7, 2015 #2 Are you testing it in release mode? Upvote 0
narek adonts Well-Known Member Licensed User Longtime User Apr 7, 2015 #3 Yes. And I am calling all the image porccesing sub with CallSubDelayed Narek Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 8, 2015 #4 There is no simple way to execute the code on a background thread. Maybe it is possible to optimize your code and make it fast enough for the main thread. Also remember that you cannot access UI elements from background threads. Upvote 0
There is no simple way to execute the code on a background thread. Maybe it is possible to optimize your code and make it fast enough for the main thread. Also remember that you cannot access UI elements from background threads.