# Performance challenges

**URL:** https://community.thunkable.com/t/performance-challenges/1270710
**Category:** Questions about Thunkable X
**Created:** [May 8, 2021, 12:57pm UTC](https://community.thunkable.com/t/performance-challenges/1270710 "2021-05-08T12:57:19Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![thunkablest5dru](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@thunkablest5dru](https://community.thunkable.com/u/thunkablest5dru)
#### Post date: [May 8, 2021, 12:57pm UTC](https://community.thunkable.com/t/performance-challenges/1270710/1 "2021-05-08T12:57:19Z")

</div>

I am struggling with Thunkable performance.  
I have an app which has “disabled” buttons which I want to give an error beep when they are pressed.

**Running my app in “Live Test” on Android**  
When I press the button there is a noticeable delay for it to “release”(looks like half a second) and then the sound plays, after the button has released!!

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/0/a0e33f998d941f70ae72142577650ed6388c6615.png)  
this app has 1451 blocks(I can’t believe there are so many!!) but it is not doing anything while pressing the button.

I created a simple dedicated test app to do some diagnostics

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/4/e44a3ba6b2b1fbb0ff78417c183526678507b091.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/7/27c9bb57cbb02c4fdafc5d8287295760eef4791c.png)

This is it for the test app.[Thunkable](https://x.thunkable.com/projects/60912e230cdd0f001293f7f3/4ee3f992-7ff3-4068-96c4-70a90f656066/designer)

**Running a dedicated test app in “Live Test” on Android**  
When I press the button there is still a noticeable delay in the button rising and the sound playing but it is just about acceptable.

**Running the dedicated test app in “Live Test” as a web app**  
When I press the button the response is immediate.

Is there a “Release mode” to compile in?

---

<div class="post-metadata">

### Author: ![anush\_bh20910](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/anush_bh20910/32/103923_2.png) [@anush\_bh20910](https://community.thunkable.com/u/anush_bh20910)
#### Post date: [May 8, 2021, 5:16pm UTC](https://community.thunkable.com/t/performance-challenges/1270710/2 "2021-05-08T17:16:24Z")

</div>

I guess You are facing some device problem as I tested the app and it worked.

Bonus : For more effective “Error beep”, (I tested it and it felt extremely professional),  
you can Add A ![dfrg](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/0/60a39ea39a7a9be40c8ad944ddc05faa5f0ff52b.jpeg) Block like this :

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/9/598c451a4a75606b1c9d938f0d19733ce80dd96c.png)

---

<div class="post-metadata">

### Author: ![thunkablest5dru](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@thunkablest5dru](https://community.thunkable.com/u/thunkablest5dru)
#### Post date: [May 8, 2021, 6:05pm UTC](https://community.thunkable.com/t/performance-challenges/1270710/3 "2021-05-08T18:05:54Z")

</div>

Thanks. This is really interesting, I added the vibrate and it happens almost immediately but the sound is still noticeably delayed. I checked the sound file just to make sure there was no silent lead in and there is none. So the vibrate is a good addition but the sound is still delayed. I am running a Galaxy S10+.

Anyone else got any ideas?

---

<div class="post-metadata">

### Author: ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)
#### Post date: [May 8, 2021, 7:10pm UTC](https://community.thunkable.com/t/performance-challenges/1270710/4 "2021-05-08T19:10:08Z")

</div>

Are you loading the sound source somewhere before you tell it to play?

---

<div class="post-metadata">

### Author: ![anush\_bh20910](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/anush_bh20910/32/103923_2.png) [@anush\_bh20910](https://community.thunkable.com/u/anush_bh20910)
#### Post date: [May 9, 2021, 3:17am UTC](https://community.thunkable.com/t/performance-challenges/1270710/5 "2021-05-09T03:17:22Z")

</div>

I guess, because of the positions of the blocks, the vibration happens before the “error beep” So, try putting the vibrate block like this:

```
                 Call error play
                  then do vibrate. ?
```

---

<div class="post-metadata">

### Author: ![thunkablest5dru](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@thunkablest5dru](https://community.thunkable.com/u/thunkablest5dru)
#### Post date: [May 9, 2021, 1:08pm UTC](https://community.thunkable.com/t/performance-challenges/1270710/7 "2021-05-09T13:08:13Z")

</div>

@catsarisky Yes, originally I was specifying the sound file at the start of the block but when I experienced the delays I moved it to the config in the design block so there should be no delay there.

@anush_bh20910 Thanks. I have just tried that but no change, the vibrate still starts immediately and the sound follows noticeably later.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [May 9, 2021, 2:02pm UTC](https://community.thunkable.com/t/performance-challenges/1270710/8 "2021-05-09T14:02:17Z")

</div>

This is expected. The sound block works asynchronously which means it will process your request but will not halt the app, it will allow it to continue processing next block. The loading of the file takes this time so the vibrate executes before you can year the sound.

Try changing the file to something simple like windows short sound file and compare the results.

---

<div class="post-metadata">

### Author: ![thunkablest5dru](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@thunkablest5dru](https://community.thunkable.com/u/thunkablest5dru)
#### Post date: [May 9, 2021, 3:12pm UTC](https://community.thunkable.com/t/performance-challenges/1270710/9 "2021-05-09T15:12:18Z")

</div>

@muneer Thanks. that was a good idea. The sound file I had was 17Kb, not large but I managed to find one of 2Kb. Unfortunately, no change. The beep still comes significantly after the vibrate.

I may have to just go with the vibrate as an error warning. Very frustrating

I have kind of found a solution, not perfect but it it better than is was. I have changed the button to trigger on “PressDown” rather than “Click” as this seems to to trigger the event sooner and give the impression of being more responsive. The sound is still delayed but it is less noticeable as it is fired sooner.

Thanks to all.

---

<div class="post-metadata">

### Author: ![carlinmclellan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/carlinmclellan/32/77831_2.png) [@carlinmclellan](https://community.thunkable.com/u/carlinmclellan)
#### Post date: [September 14, 2021, 9:52am UTC](https://community.thunkable.com/t/performance-challenges/1270710/10 "2021-09-14T09:52:24Z")

</div>

I’m having simillar issues making music education apps.  
Sound component just seems to feel sluggish. Is this a limitation of Thunkable or is there a workaround here?

---

<div class="post-metadata">

### Author: ![carlinmclellan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/carlinmclellan/32/77831_2.png) [@carlinmclellan](https://community.thunkable.com/u/carlinmclellan)
#### Post date: [September 14, 2021, 9:54am UTC](https://community.thunkable.com/t/performance-challenges/1270710/11 "2021-09-14T09:54:32Z")

</div>

Using “Touch Down” instead of click definitely helps a lot.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [September 14, 2021, 10:00am UTC](https://community.thunkable.com/t/performance-challenges/1270710/12 "2021-09-14T10:00:19Z")

</div>

I used the web version and made the control from JavaScript only. But it looks different and not part of Thunkable.

In the other hand, the sound (music) works even when the screen is off which my client wants.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:22pm UTC](https://community.thunkable.com/t/performance-challenges/1270710/14 "2024-11-08T13:22:36Z")

</div>


