Skip to first unread message

Srichakradhar Reddy Nagireddy

unread,
Nov 5, 2015, 10:49:22 PM11/5/15
to MIT App Inventor Forum

I'm making a slideshow app which plays photos with a time interval provided by the user.


I gave default timer interval as 100 milliseconds.
When user gives the input in seconds, I convert it to milliseconds and display.
But, I couldn't find a striking difference, when I  tried giving .1 and .01 as inputs to the timer interval.
Is there a lower limit to the value that can be provided to the timer interval? or is it the inability of app to change photos so quickly?

Scott Ferguson

unread,
Nov 6, 2015, 5:47:56 AM11/6/15
to MIT App Inventor Forum
You can go as low as 0 for timer intervals.
But I find that anything below about 33 (30 frames per second) does not seem to speed things up when working with the Canvas, anyway.
If the blocks inside a clock timer block cannot execute within the time specified by the interval value, there will be a delay before the next iteration.
So you could not use a counter inside the timer block to make an accurate clock as it would lose time.
Think of the interval value more as a 'goal' or possible maximum, but not a certainty.
---
sf

Reply all
Reply to author
Forward
0 new messages