Modifying Geometry in Asynctask freezes game

Absolutely clear to me now. However, why don’t you use a task instead of loops.
I also racked my brain for cycles until I got the idea.