-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a tweak to play "magic hands" anim when using items on objs
* for issues with scripted animations not playing (#356)
- Loading branch information
Showing
3 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6d88f21
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After testing on my Core i5 7500 desktop and Pentium II server, 30 seems the max value before the game becomes noticeably laggy.
I was considering 15 and 25 before running a test script to check the interval of running a global script with
set_global_script_repeat(1)
(yes, the wrong way).With system timer interval 10ms (default value on my desktop PC with Win7) or above (should be 15.6ms for Pentium II + Win2k), ProcessorIdle from 1 to 15 gave me the same result, and the result value bumped again from 16 to 30/31.
With smaller timer interval (1ms or 0.5ms, 0.5 is the min settable value), nearly every value of ProcessorIdle gave different results, so I picked 30.