Hi there. Jurassic Pork,
Your TLazSerial is awesome. I've been using your component for quiet sometime and I love it.
After much researching and poking around in your code, I have a question.
In the Synaser file, there is a comment that says,
not drain CPU on large download within RecvPacket function.
What exactly do you mean by that?
That's what is going on with my program. My program is only supposed to listen for incoming serial data NOT SEND ANYTHING back on the port.
If my program is only going to listen,
then it will be considered as a LARGE DOWNLOAD. My CPU usage does spike UP based on the rate of serial data is received; faster the serial data is received at the port the higher CPU usage (25% to 30%). Slower the serial Data received at the port the lower the CPU usage (7% to 1%). However, I don't see any issue with my CPU usage whenever I communicate normally through TLazSerial; Sending request and Receiving response serial data.
What would be the simple work around to fix this issue, if you understand what I am talking about? Thanks,