Thanks for the reply.[smile]
Yes, the doWaitVBlank has been set to false, and the problem goes away. This was one of my tests. i should i mentioned it.
[blush]
So my understanding from that code is that each Draw box waits for the vblank to occur. thus the problem above.
I will try to write a...
Hello,
Im creating a GUI with DelphiX. im using this to make it look good, when the images move quickly.
Which works fine, i get 60FPS, about the fastest possible frame rate.
But....(you know theres a but) when i add another draw box and draw on that the fps reduces to 30fps. and if i add...
Thanks jb, I have now solved this problem. using directX. This ensures that tearing does not occur. woo hoo.
and all the timing is hunky dorrey!
thanks again
Jim
Hi, thanks for the project. I have learnt several new things from that. such as the repaint usage. thank you.
The code you suppplied worked fine. I was not using the timer item before, but using the stream of data from my serial comms. this is running at 115200. so very quick, and hence the...
My understanding of the code above is that paintbox is redrawn at the timer rate.
within that the paintbox copys the image (bmp) in image, and then draws lines.
------------------------
my method, would be to draw the lines on the buffer, then once all drawn copy the image over.
Thanks for the reply.
Ive now tried the option to hide the buff image outside the screen, but nothing is drawn. :(
Heres my code:
Buff.Repaint;
//Draw Stuff onto Buffer Paintbox
Buff.Canvas.Polygon(NeedleCoord_Left);
//Copy Buff Paintbox to Image...
I am in the process of developing a program that will draw a basic line. this line is moved with in coming data from the serial.
all works fine, but i get a flicker when the line is drawn. i have tried several solutions to solve this.
1 - Double buffer - on
this slows it down alot, and still...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.