Hi, I've been trying to find a way to make the text scroll more smoothly in the now playing window.
My touchscreen refresh rate is 56Hz (not configurable) so I started by playing about with the FPS settings in jive.h, figuring that the jivelite refreshrate should be a fraction of 56. Disappointingly, changing #define JIVE_FRAME_RATE_DEFAULT 30 to #define JIVE_FRAME_RATE_DEFAULT 28 didn't make any difference to the jumpiness of the scroll, but a rate of 56 was somewhat better and 112 was quite smooth (but with very fast scroll). There is also a noticable lag on the UI at 112FPS and I'm worried that using too many system resources here might have a negative impact on soundstream throughput (ethernet and USB) - My device even shares a bus for ethernet and LCD IO. Then I started to play with the other parameters in jive_label.c defaults: /* actual FPS will only run at half of the JIVE_FRAME_RATE */ #define SCROLL_FPS (JIVE_FRAME_RATE / 2) #define SCROLL_OFFSET_STEP_MINIMUM 5 #define FONT_SCROLL_FACTOR 5 setting #define SCROLL_FPS to (JIVE_FRAME_RATE / 4) slowed down the 112FPS scrolling again, but didn't result in a smoother scroll than the original setting at 56FPS. I'm not sure what the OFFSET_STEP_MINIMUM and SCROLL_FACTOR values do. Have tried various settings here and find that setting a lower OFFSET_STEP_MINIMUM than SCROLL_FACTOR value seems to result in a slower scroll, but even then, the text isn't really smooth unless I turn the FPS in jive.h right up to 112, which I don't want to do, as mentioned above. From a scrolling perspective, the best result so far has been: jive.h: #define JIVE_FRAME_RATE_DEFAULT 112 jive_label.c: #define SCROLL_FPS (JIVE_FRAME_RATE / 4 #define SCROLL_OFFSET_STEP_MINIMUM 2 #define FONT_SCROLL_FACTOR 12 Any better ideas for a similar result and less system overhead? BR. --Marius-- ------------------------------------------------------------------------ Learnincurve's Profile: http://forums.slimdevices.com/member.php?userid=64807 View this thread: http://forums.slimdevices.com/showthread.php?t=103330 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
