OK - This is where I'm at at the moment...
sync on
sync
load image "background.jpg", 1
paste image 1, 0, 0
sync
create bitmap 2, 1280, 1024
set current bitmap 2
ink rgb(255,255,255), rgb (0,0,0)
set text font "Arial"
set text size 48
for counter = 0 to 16
center text 640, (counter * 60), "Option " + STR$(counter)
next counter
for counter = 0 to 824
set current bitmap 2
get image 3, 0, counter, 1280, 200 + counter, 1
set current bitmap 0
sprite 1, 0, 400, 3
sync
next counter
end
...what I don't understand is why is the upwards scrolling text effect so slow? That code takes about 1m 30secs to run on my machine here.
Am I going about this completely wrongly or is this just always going to be slow? What I'm aiming for is to be able to use this to have a nice smoothy scrollable list of maybe a couple of thousand movie titles that are read from my server, optionally sorted or filtered in some way and then scrollable through. Ideally aiming for a similar type of effect as you get on the main menu text of XP Media Centre...
I already hae the directory reading code working, I've had it scrolling a list of movie names a whole line at a time and it's even spawning off the player application properly with the selected title so now all I need to do is make it look pretty and add sorting / filtering functionality. (I have only been at this four evenings though so I think things are coming along nicely.)
Anyway - any ideas on how I can implement this with enough speed to be useable would be gratefully received...
Thanks
Phil