iNET Interactive - Online Advertising Agency
          
Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Game Programming > DirectX > Slow mouse reaction


Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2003, 12:01 PM
Mathijsken's Avatar
Mathijsken Mathijsken is offline
Contributor
 
Join Date: May 2003
Location: Oostkamp - Belgium
Posts: 730
Question Slow mouse reaction

Hello,
i've wrote this game thing with a moving tiled background, some sort of airplane, who can shoot bombs and lasers, and when you move it the motors lighten. Untill know most of the animations is done by seperated pictures, but i'll change that. enyway, my problem is that my mouse (i started using directinput, i thought it might work faster this way) moves to slow, it has some sort of delay, not much, but enough to irritate me, i've read about slow games in the forum and tried to solve by some given solutions but untill now it doesn't seem to help at all, i'm using windowed mode, with some timers(as you can see)
is there anybody who wants to help me?

thanx
Reply With Quote
  #2  
Old 06-05-2003, 11:31 PM
JimCamel's Avatar
JimCamel JimCamel is offline
Mostly Absent
* Expert *
 
Join Date: Jun 2002
Location: Christchurch, New Zealand
Posts: 2,006
Default

Without having a thorough look at your code, my first remark is don't use timers. Do a search on the forum for "Main Loop". That will probably get you a bit of a speed up.
__________________
Sometimes it happens feelings die, Whole years are lost in the blink of an eye
We once had it all but event conspired, Sometimes
Now that it's over, it is through, It gets me everytime I think of you
Sometimes It happens, feelings die, Sometimes
Reply With Quote
  #3  
Old 06-06-2003, 03:22 AM
AndreRyan AndreRyan is offline
Contributor
 
Join Date: Jan 2002
Posts: 489
Default

Clarity: Timers cycle at 55ms between activations so set the Timer to 1 and watch it only run once every 55ms(unless your on XP where it becomes 10ms)
Reply With Quote
  #4  
Old 06-06-2003, 09:22 AM
Mathijsken's Avatar
Mathijsken Mathijsken is offline
Contributor
 
Join Date: May 2003
Location: Oostkamp - Belgium
Posts: 730
Thumbs up Thanx

Yep,
i figured out that is would be better to use a main loop, but the actua reason why i didn't manage to get a good mouse speed is because i drew my tiled background within the "main loop-timer", which isn't necesairy.
thanx for helping me out

(excuse for my bad englisch did my best)

bye
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Tutorials on mouse over pixel for eyedropper to select color! Iauruth General 8 04-28-2003 09:31 PM
Problems with mouse reacquisition with dx8 Brion DirectX 10 01-14-2003 11:37 AM
mouse down / mouse up xmen64 Interface and Graphics 5 10-09-2002 10:36 AM
Disable Mouse Scroll in Sub Form nickg96 Database and Reporting 16 10-04-2002 11:12 AM
Mouse Down, Up, Move Nymble General 5 03-24-2002 12:37 PM

Advertisement: