Roger Taylor Member Licensed User Longtime User Oct 26, 2022 #1 Has anyone had any experiences, good or bad, using Do While True ; Loop ? I plan to use a forever loop to update a bitmap as quickly as possible, while running an 8-bit CPU in another thread also in a forever loop.
Has anyone had any experiences, good or bad, using Do While True ; Loop ? I plan to use a forever loop to update a bitmap as quickly as possible, while running an 8-bit CPU in another thread also in a forever loop.
Erel B4X founder Staff member Licensed User Longtime User Oct 26, 2022 #2 Never hold the main thread. Solution: Add Sleep(0) or more inside the loop. Upvote 0
Roger Taylor Member Licensed User Longtime User Oct 26, 2022 #3 Yep. I've used sleep(0) a lot in the past. Upvote 0