How often dispatch input ?

Started by
0 comments, last by Alessio1989 10 years, 2 months ago

I started "playing" with input handling on Win32 (following the ApochPiQ example) and I never directly deal with user inputs (just used some DirectInput code like in the RasterTek tutorials...), so I was wondering how often should I dispatch the user input in the application/game loop?

Should I set a time lapse between input dispatches or I just OK dispatching inputs on every application/game loop iteration?

I'm asking this because I'm having some issues, especially with v-sync disable where the input response seems very "fragmented" and insanely slow even if the profiling tools doesn't show nothing wrong.

"Recursion is the first step towards madness." - "Skegg?ld, Skálm?ld, Skildir ro Klofnir!"
Direct3D 12 quick reference: https://github.com/alessiot89/D3D12QuickRef/
Advertisement

Never-mind, problem solved: I was treating camera movements as actions instead of states -_-

"Recursion is the first step towards madness." - "Skegg?ld, Skálm?ld, Skildir ro Klofnir!"
Direct3D 12 quick reference: https://github.com/alessiot89/D3D12QuickRef/

This topic is closed to new replies.

Advertisement