Help with frame rate speed on video out
CFOG
Posts: 5
in Propeller 1
Hi, im very new to the Propellor and wondering if any more experience people might have some thoughts on this.
i'm using "AiGeneric_Driver_G" driver to output a full screen of coloured text as composite video, it works great, the only problem is the speed of the output video, its a little slow to refresh the screen, it doesn't seem to mater weather i change 1 character or 100 of them the frame rate is fixed, is there anyway to speed up the process?
Ive attached all the files that came with the driver/demo so you can have a look at how it's working.
Any help would be amazing!
Thanks
i'm using "AiGeneric_Driver_G" driver to output a full screen of coloured text as composite video, it works great, the only problem is the speed of the output video, its a little slow to refresh the screen, it doesn't seem to mater weather i change 1 character or 100 of them the frame rate is fixed, is there anyway to speed up the process?
Ive attached all the files that came with the driver/demo so you can have a look at how it's working.
Any help would be amazing!
Thanks
Comments
That line says "wait for the clock to reach the current time, plus 1/20th of the clock frequency", in essence limiting the demo to 20 frames per second. (slightly less, because the code in the repeat loop doesn't take zero time).
You could change the delay in that waitcnt to clkfreq/60 to run at (almost) 60 fps.
I'm not sure if that's what your code is doing though - I don't see yours attached.
i thought it was some kind of driver limit, but the demo can run crazy fast!!!
I removed a bunch of If statements and the speed has almost doubled! its my dodgy code.
im going to try stuff like
repeat 20
rather then
x :=0
if [x < 21]
do something
x := x +1
Thnaks!