Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 7 characters in body; edited title
Source Link
marc_s
  • 760k
  • 186
  • 1.4k
  • 1.5k

is Is the latency for the sendinput  / recievingreceiving raw input the same or almost the same for all programs?

I'm using winapi SendInput with scancodes to simulate keyboard input to a game, and at the same time I want to measure the timing of the input being received, but unfortunately I've no access to that data from the game itself,.

I know it uses listens to raw input, using the RegisterRawInputDevices, so I've my program take two measurements, timing right before calling sendinput and listing to the rawinput itself, the timing that my program recivedreceived the input sent by RegisterRawInputDevices, by subtracting the two ig, I can have a rough estimation of the latency of the input stack, is.

Is my assumtionassumption correct, and the time at which I received the raw input, will probably be a better approximation to the time the game recievedreceived it, that the time at which I called sendInput, and is there a better way of measuring that?

is the latency for the sendinput/ recieving raw input the same or almost the same for all programs?

I'm using winapi SendInput with scancodes to simulate keyboard input to a game, and at the same time I want to measure the timing of the input being received, but unfortunately I've no access to that data from the game itself, I know it uses listens to raw input, using the RegisterRawInputDevices so I've my program take two measurements, timing right before calling sendinput and listing to the rawinput itself, the timing that my program recived the input sent by RegisterRawInputDevices, by subtracting the two ig I can have a rough estimation of the latency of the input stack, is my assumtion correct, and the time at which I received the raw input, will probably be a better approximation to the time the game recieved it, that the time at which I called sendInput, and is there a better way of measuring that?

Is the latency for the sendinput  / receiving raw input the same or almost the same for all programs?

I'm using winapi SendInput with scancodes to simulate keyboard input to a game, and at the same time I want to measure the timing of the input being received, but unfortunately I've no access to that data from the game itself.

I know it uses listens to raw input, using the RegisterRawInputDevices, so I've my program take two measurements, timing right before calling sendinput and listing to the rawinput itself, the timing that my program received the input sent by RegisterRawInputDevices, by subtracting the two, I can have a rough estimation of the latency of the input stack.

Is my assumption correct, and the time at which I received the raw input, will probably be a better approximation to the time the game received it, that the time at which I called sendInput, and is there a better way of measuring that?

Source Link
rimuru
  • 49
  • 1
  • 3

is the latency for the sendinput/ recieving raw input the same or almost the same for all programs?

I'm using winapi SendInput with scancodes to simulate keyboard input to a game, and at the same time I want to measure the timing of the input being received, but unfortunately I've no access to that data from the game itself, I know it uses listens to raw input, using the RegisterRawInputDevices so I've my program take two measurements, timing right before calling sendinput and listing to the rawinput itself, the timing that my program recived the input sent by RegisterRawInputDevices, by subtracting the two ig I can have a rough estimation of the latency of the input stack, is my assumtion correct, and the time at which I received the raw input, will probably be a better approximation to the time the game recieved it, that the time at which I called sendInput, and is there a better way of measuring that?