App slows down with 'Wait with messages"
Posted: Fri Feb 21, 2014 7:45 pm
Hi everyone,
I have created an app in which there is a timer which relies on "Wait for 1 second with messages", it counts down from 30. While this timer is running a button can also be tapped, this adds one to a variable and then displays the new number in a label, this could happen up to 6/8 times per second. I initially just tested my code in the development environment in 'Run' mode, in this it worked mostly fine, although if I kept on tapping fast it would only update the label for every other one even though it counted it, I wasn't to concerned about this. However, the major problem came when I transferred the app onto my phone to test. The phone didn't register every click, if it I tapped constantly for 30 seconds it might get to 12 if I was lucky, so it had slowed down. I then created a small app with everything except the timer this ran fine, showing that it should be the timer which is the problem. Can someone shed some light on this problem, hopefully offering a solution?! Also in my app all my buttons are skinned with images, however these aren't great quality and there are only about 4.
Can someone offer some help with this please,
Thanks
Matthew
I have created an app in which there is a timer which relies on "Wait for 1 second with messages", it counts down from 30. While this timer is running a button can also be tapped, this adds one to a variable and then displays the new number in a label, this could happen up to 6/8 times per second. I initially just tested my code in the development environment in 'Run' mode, in this it worked mostly fine, although if I kept on tapping fast it would only update the label for every other one even though it counted it, I wasn't to concerned about this. However, the major problem came when I transferred the app onto my phone to test. The phone didn't register every click, if it I tapped constantly for 30 seconds it might get to 12 if I was lucky, so it had slowed down. I then created a small app with everything except the timer this ran fine, showing that it should be the timer which is the problem. Can someone shed some light on this problem, hopefully offering a solution?! Also in my app all my buttons are skinned with images, however these aren't great quality and there are only about 4.
Can someone offer some help with this please,
Thanks
Matthew