D devmobile Active Member Licensed User Dec 6, 2017 #1 I start activity and in create event is load layout and some codes But it take 200 millisecond for show activitu When i use sleep(0),it change to 100 millisecond What's happen?
I start activity and in create event is load layout and some codes But it take 200 millisecond for show activitu When i use sleep(0),it change to 100 millisecond What's happen?
Erel B4X founder Staff member Licensed User Longtime User Dec 7, 2017 #2 How are you measuring it? Upvote 0
D devmobile Active Member Licensed User Dec 7, 2017 #3 Erel said: How are you measuring it? Click to expand... I use Datetime.Time I take 400 millisecond Oooo i use Sleep(0) in activity_create and 400 millisecond is 100 millisecond now why? Upvote 0
Erel said: How are you measuring it? Click to expand... I use Datetime.Time I take 400 millisecond Oooo i use Sleep(0) in activity_create and 400 millisecond is 100 millisecond now why?
Erel B4X founder Staff member Licensed User Longtime User Dec 7, 2017 #4 I don't see how adding Sleep(0) makes it faster. There isn't enough information here to say anything more specific. Upvote 0
I don't see how adding Sleep(0) makes it faster. There isn't enough information here to say anything more specific.
D devmobile Active Member Licensed User Dec 7, 2017 #5 Erel said: I don't see how adding Sleep(0) makes it faster. There isn't enough information here to say anything more specific. Click to expand... After Activity.LoadLayout,i use Sleep(0) and it is faster than last But when i remove it,is is slow Upvote 0
Erel said: I don't see how adding Sleep(0) makes it faster. There isn't enough information here to say anything more specific. Click to expand... After Activity.LoadLayout,i use Sleep(0) and it is faster than last But when i remove it,is is slow