AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

System Priority

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Talven81



Joined: 26 Jun 2004
Posts: 9

PostPosted: Sat Jun 26, 2004 7:41 pm    Post subject: System Priority Reply with quote

Well, I'm not sure if this should go under bug, or feature request... it's a bit of both.

While creating my Dual Analog Gamepad script I noticed something about AutoHotkey. While it works great during standard operating of the system, if you are running a processor intensive program such as a game the response time of AutoHotkey decreases.

This can be fixed in WinXP by manually increasing the priority of AutoHotkey thru task manager which solves the problem, but you may wish to set the processor priority of your software a bit higher for proper usage under these circumstances.

A similar macroing program Xylobot while far behind in capabilities, found that they had to do the same as well.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Jun 26, 2004 8:04 pm    Post subject: Reply with quote

I've used hotkeys in games that max out the CPU and have not noticed any reduced response times. Also, I just ran the joystick test script and the "joystick as mouse" script while Prime95 was running at high priority and didn't see any obvious reduction in responsiveness.

What are the symptoms you're seeing? Does pressing a joystick button sometimes fail to trigger the hotkey (i.e. that you have to hold it down a little longer than you might like)?

Do me a favor and change your BatchLines to the below and see if that makes any difference:
SetBatchLines, -1 ; -1 is the fastest

Also, perhaps this problem only occurs with a certain game? Perhaps that game is hogging the CPU by setting its threads to above-normal priority? If possible, please try it with another game and let us know the results.

Thanks,
Chris
Back to top
View user's profile Send private message Send e-mail
Talven81



Joined: 26 Jun 2004
Posts: 9

PostPosted: Sat Jun 26, 2004 10:55 pm    Post subject: Reply with quote

What I noticed was the mouselook response time especially seems to be delayed. IE I push right on the joystick, there is a fraction of a second pause, then it looks right.

My JoyThreshold = 1 so I don't think that's the problem.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Jun 27, 2004 2:17 am    Post subject: Reply with quote

And you're sure that raising it's priority in task manager fixes the lag? If so, that's pretty interesting.

I think there are quite a few command line utils that can raise the priority of a process. You could use one of them to have the script raise its own priority automatically. Process operations such as setting priority are planned to be built-in soon.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Sun Jun 27, 2004 5:27 am    Post subject: Reply with quote

I've seen that happen too. this is what I use:

Code:

fileappend, SetTitleMatchMode`, 2`n DetectHiddenWindows`, on`n, %temp%\temp.ahk
fileappend, SendMessage`, 0x44`, 0x405`, 0`, `, %a_scriptname% - AutoHotkey v`n, %temp%\temp.ahk
fileappend, fileappend`, `%errorlevel`%``n`, `%a_scriptfullpath`%`n, %temp%\temp.ahk
   
runwait, %temp%\temp.ahk
FileReadLine, PID, %temp%\temp.ahk, 5
Filedelete, %temp%\temp.ahk

Runwait, e:\dos\utils\process.exe -p %PID% abovenormal,,hide



all the above is mostly to make sure that the priority is changed of the home script.

Chris might remember that this portion was written after he had been so nice as to include the priority getting feature when I discussed this with him.

http://www.beyondlogic.org/consulting/processutil/processutil.htm
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group