   Holding keys is causing hiccups...
  I've been having this problem ever since I started programming with DirectX and I've finally found the exact source, but I have no clue how to fix it.  This is driving me crazy.  Alright, here's the problem:  My sprites move freely and as smooth as butter across the screen (as they should at ~1500fps), but when any key on the keyboard is held down, randomly, at every 10-20 seconds, there's a majorly noticable skip in the motion.  Without any keyboard input, the whole thing never has a skip.  I decided to check with the DirectX SDK examples, to see how they handle this, and to my surprise, they all have the same problem.  Now, I know there are real games that use DirectX9 and I know they don't have any small hiccups when you hold a keyboard key down, so what am I missing?  I also thought maybe some of my DirectInput handling was to blame, but oddly enough, the glitch is there whether I initialize DirectInput or not.  Someone please help me out here before this bug drives me insane.Edit: forgot to mention, I'm writing this in C++[edited by - Subconscious on February 12, 2004 5:56:38 AM]
  Maybe its a hardware problem?Does anyone else have the same problem? i havent really noticed it...post a link to your demo to see if anyone else has the same problem.Ash. ;  what version of windows are you using? sounds like it just occurs because of the window process routine when you return DefWindowProc(...) so often of something that has no code for. This doesn''t happen to my computer on version XP. ;  I''m using Windows XP, I thought maybe it was just a hardware problem, but I get the exact same issue on my laptop (that uses XP also), so I''m kinda suspicious.  I''ll post a demo for my graphics engine and maybe you guys can tell me if you get the same glitch.  Just load an image with it (much smaller than the size of the screen), then hold the right arrow key for a long time, let it bounce about 10 times and tell me if you see any small hiccups in the motion.  You have to look closely, the hiccups are small, but they ruin the smooth motion effect.You can also play around with the other featuers if you like, keys 1 - 9 are different levels of motion blur, f and g fade in and out. Hit escape to quit of course.Here''s the link: http://home.nc.rr.com/hohn/Graphics.exe ;  I tried it and got some odd hiccups at first but after about 30 seconds of running it ran at a solid 147 FPS, no hiccups. ;  ahhhhh! These hiccups are going to drive me insane.  I want to make a professional looking game but my game will involve holding keys. ;  Works fine for me - I have XP as well ;  Runs smoothly for me too.  Windows 2000 Pro. ;  Wild guess:  maybe Windows'' Accessibility Options, namely FilterKeys, is trying to analyze your keypresses and do something when you hold it down a long time.  Most people here probably turn off all those options, so they wouldn''t see the effects.  Try turning those off (if they aren''t already). ;  Hmmm... had my hopes up for a moment there, but all my Accessibility options in the keyboard part appear to be off already.  Maybe it is just some odd hardware problem... with my keyboard, but the fact that it is so random really bothers me.  sometimes after the key has been held for a second or two it will glitch, and sometimes it takes 30 seconds, but it WILL glitch eventually, and I''ve run it without touching the keyboard for 5 minutes with no glitches. 