Im trying to draw in real time on the screen for a simple drawing tool. The issue is the faster the mouse moves the more space between pixels is generated. Tried using sprites and a render image but im not having much luck as far as speed goes. using the line tool to draw since there is no pixel or dot as far as im aware. and with manual frame control i figure i should be able to track the mouse a few thousand times a second but seem to be having the opposite effect when attempting to manually sync.
some code to look at basically all i have everything ive tried failed so far.
renderid=CreateRenderImage(256,256,0,0)
sprite=createsprite(renderid)
setspriteimage(sprite,renderid)
do
x#=getrawmousex()
y#=getrawmousey()
if GetRawMouseLeftstate()=1
SetRenderToImage(renderid,0)
drawline(x#,y#,x#+1,y#,255,255,255)
setrendertoscreen()
endif
sync()
loop