0

Slow button interactivity



Hi,

I'm using an HD410 3.1.36

Basically there are 12 jpeg images which are a list of 12 names , 11 in white and one in red. For jpeg 1 the first name is in red and 2 to 12 are in white, for jpeg 2 the 2nd name is on red, names 1 and 3 to 12 are in white and so on. Two buttons are used to scroll up and down the list, a third button selects the clip. The jpegs are all 1024x768 which matches the videomode.

In the down direction e.g. going from jpeg 3 to 4 it is fast but in the up direction e.g. 4 to 3 it is very slow, about 1 second or more which makes for very sluggish interactivity.

Anyone know how I can get it to respond quickly in both directions?

Thanks,
Neill




VIDEOMODE 1024X768X75P

GPIOEnableInput 0
GPIOEnableInput 1
GPIOEnableInput 2
GPIOEnableInput 3

EVENTS button:0 button:1 button:2 button:3 videoend
STATE UDP_1_of_12.jpg UDP_12_of_12.jpg UDP_2_of_12.jpg
STATE UDP_2_of_12.jpg UDP_1_of_12.jpg UDP_3_of_12.jpg
STATE UDP_3_of_12.jpg UDP_2_of_12.jpg UDP_4_of_12.jpg
STATE UDP_4_of_12.jpg UDP_3_of_12.jpg UDP_5_of_12.jpg
STATE UDP_5_of_12.jpg UDP_4_of_12.jpg UDP_6_of_12.jpg
STATE UDP_6_of_12.jpg UDP_5_of_12.jpg UDP_7_of_12.jpg
STATE UDP_7_of_12.jpg UDP_6_of_12.jpg UDP_8_of_12.jpg
STATE UDP_8_of_12.jpg UDP_7_of_12.jpg UDP_9_of_12.jpg
STATE UDP_9_of_12.jpg UDP_8_of_12.jpg UDP_10_of_12.jpg
STATE UDP_10_of_12.jpg UDP_9_of_12.jpg UDP_11_of_12.jpg
STATE UDP_11_of_12.jpg UDP_10_of_12.jpg UDP_12_of_12.jpg
STATE UDP_12_of_12.jpg UDP_11_of_12.jpg UDP_1_of_12.jpg
STATE VIDEO_1.mpg mainshow.jpg UDP_1_of_12.jpg
STATE VIDEO_2.mpg mainshow.jpg UDP_2_of_12.jpg
STATE VIDEO_3.mpg mainshow.jpg UDP_3_of_12.jpg
STATE VIDEO_4.mpg mainshow.jpg UDP_4_of_12.jpg
STATE VIDEO_5.mpg mainshow.jpg UDP_5_of_12.jpg
STATE VIDEO_6.mpg mainshow.jpg UDP_6_of_12.jpg
STATE VIDEO_7.mpg mainshow.jpg UDP_7_of_12.jpg
STATE VIDEO_8.mpg mainshow.jpg UDP_8_of_12.jpg
STATE VIDEO_9.mpg mainshow.jpg UDP_9_of_12.jpg
STATE VIDEO_10.mpg mainshow.jpg UDP_10_of_12.jpg
STATE VIDEO_11.mpg mainshow.jpg UDP_11_of_12.jpg
STATE VIDEO_12.mpg mainshow.jpg UDP_12_of_12.jpg
STATE mainshow.jpg UDP_1_of_12.jpg UDP_1_of_12.jpg UDP_1_of_12.jpg mainshow.jpg

2 comments

  • 0
    Avatar
    neillB


    I've removed most of the interactivity so now all there is is the 12 jpegs which you scroll through on a button press.



    When the csv file is organized so that you scroll from top to bottom, the images change almost instantly.  When the file is organized to go from bottom to top (as below) it takes more than a second to respond.  



    This is doing my head in!



    Anyone got any ideas? I think I have tried everything.





    VIDEOMODE 1024X768X75P



    GPIOEnableInput 0

    GPIOEnableInput 1

    GPIOEnableInput 2

    GPIOEnableInput 3



    EVENTS button:0

    STATE UDP_1_of_12.jpg UDP_12_of_12.jpg

    STATE UDP_2_of_12.jpg UDP_1_of_12.jpg

    STATE UDP_3_of_12.jpg UDP_2_of_12.jpg

    STATE UDP_4_of_12.jpg UDP_3_of_12.jpg

    STATE UDP_5_of_12.jpg UDP_4_of_12.jpg

    STATE UDP_6_of_12.jpg UDP_5_of_12.jpg

    STATE UDP_7_of_12.jpg UDP_6_of_12.jpg

    STATE UDP_8_of_12.jpg UDP_7_of_12.jpg

    STATE UDP_9_of_12.jpg UDP_8_of_12.jpg

    STATE UDP_10_of_12.jpg UDP_9_of_12.jpg

    STATE UDP_11_of_12.jpg UDP_10_of_12.jpg

    STATE UDP_12_of_12.jpg UDP_11_of_12.jpg
  • 0
    Avatar
    RokuLyndon


    When your images are listed one after the other, the next image in the list is cached in memory. That's why going one way is faster.



    The only other way to improved time to open is to avoid any scaling. So, the images must match the resolution you are outputting. so, if you are using 1024x768, the images should be 1024x768.
Please sign in to leave a comment.