03-03-2006, 10:39 AM
I'm trying to implement tinyptc to speed up my screen saver. Problem is, it works faster using pset and screencopy at the moment.
One thing that would help the speed of the tinyptc code would be clearing the buffer in one fell swoop (setting it to all zeros) instead of using a for next loop to set all 480,000 entries one at a time.
I know this is probably a stupid newb type question but I couldn't find the answer using the forum search.
Also, I'm using a screensaver example that I found posted on this board I think. It uses the following function:
That no longer works when I am using tinyptc. The program will exit as soon as it starts even though no key has been pressed and no mouse movement has occured. Any ideas why?
One thing that would help the speed of the tinyptc code would be clearing the buffer in one fell swoop (setting it to all zeros) instead of using a for next loop to set all 480,000 entries one at a time.
I know this is probably a stupid newb type question but I couldn't find the answer using the forum search.
Also, I'm using a screensaver example that I found posted on this board I think. It uses the following function:
Code:
FUNCTION keypressed()
DIM AS INTEGER temp,tx,ty
FOR temp = 0 TO 127
IF MULTIKEY(1) THEN RETURN 10
NEXT
GETMOUSE tx,ty,,temp
IF tx <> 320 OR ty <> 240 OR temp <> 0 THEN RETURN -1
RETURN 0
END FUNCTION
That no longer works when I am using tinyptc. The program will exit as soon as it starts even though no key has been pressed and no mouse movement has occured. Any ideas why?