I have a problem with interface lag in C#.
Since I'm still learning please be patient whilst I explain.
I have narrowed the problem to my timer object.
Basically my program queries a device through TCP/IP socket and outputs it to a textbox on screen.
Now I'm polling the device for data every second which requires some logic to be buried within timer object and the following is what happens between ticks:
1) increment a value.
2) construct the 2 strings that represents the command to be sent to the box (encapsulated in a function
3) Encode the command
4) send command
5) clear the byte array
6) receive reply.
could this be too much processing being done in the event handler? Every time I try to move the window during the polling session i.e. when the timer is running I get a bad input lag. very bad input lag.