Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How often dispatch input ?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 Alessio1989   Members   

4586
Like
0Likes
Like

Posted 20 February 2014 - 12:24 PM

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.


Edited by Alessio1989, 20 February 2014 - 12:25 PM.

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

#2 Alessio1989   Members   

4586
Like
1Likes
Like

Posted 21 February 2014 - 07:01 AM

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/




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.