Or PC can also use the timer, regularly collecting data and drawing, no thread, feasible?
CodePudding user response:
Come with receive data in the serial port communication thread, just call the functionPlay in receiving data statements add picture below point program
CodePudding user response:
Use multithreading, especially the interface, don't look down upon it, for such a small time interval you it is very time consumingYou should use a separate thread is receiving data, then don't write the screen, but in the memory, then the picture with a separate thread to the screen, it can use the timer, such as 200 milliseconds to draw a can
CodePudding user response:
Real-time picture screen don't understand it really a millisecond, but want to consider the time delay of the eye and the brain, the eyes of the response time of 0.1 seconds, and the judgment of the brain completely enough time 0.2 secondsCodePudding user response:
Screen refresh the whole, at the same when depicting a points and 100 points is the same, so you draw 40 points to 0.2 secondsCodePudding user response:
If you don't need, you can also block way,CodePudding user response:
Screen is 60 hz refresh rate, more than this is useless.You 200 times a second picture, screens also update only 60 times.