Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0002751Dwarf FortressTechnical -- Input/Keybinding/Macrospublic2010-07-18 10:402015-02-03 06:41
OzoneGrif 
lethosor 
normalminorrandom
confirmedopen 
PCWindowsSeven 64
0.31.10 
 
0002751: Macros are very slow, and stops working when window loses focus
When I play my macros, they are awfully slow (about 2 actions per seconds).
But if I reload a fresh game and play the macro, it's faster (about 15 actions per seconds).

My Init.txt is configured for 15ms, which should give about 60 actions per seconds.

Also, if for some reason the window loses focus, the macro stops working (while PLAY is still blinking, but nothing happens anymore).

Finally, I didn't find how to stop a macro playing ?
No tags attached.
Issue History
2010-07-18 10:40OzoneGrifNew Issue
2010-07-18 13:37FootkerchiefCategoryDwarf Mode -- Interface, General => Technical -- Input/Keybinding
2010-07-18 13:37FootkerchiefCategoryTechnical -- Input/Keybinding => Technical -- Input/Keybinding/Macros
2015-02-02 10:31lethosorNote Added: 0032118
2015-02-02 10:31lethosorAssigned To => lethosor
2015-02-02 10:31lethosorStatusnew => confirmed
2015-02-02 10:59lethosorSummaryMacros are very slow, and stops working when loosing focus => Macros are very slow, and stops working when window loses focus
2015-02-03 03:04ptb_ptbNote Added: 0032126
2015-02-03 06:41lethosorNote Added: 0032128

Notes
(0032118)
lethosor   
2015-02-02 10:31   
I'm not sure about the speed issues, but they could be due to the fact that multiple interface keys are bound to the same physical key. For example, a macro recorded by pressing "d" will contain several keys, only one of which will be simulated every 15ms during macro playback. However, the window focus issue is definitely reproducible in v0.40.24.
(0032126)
ptb_ptb   
2015-02-03 03:04   
A related issue is that some fraction of actions will be lost during playback. If you record a macro for something like 'walk west x 20 walk east x 20' your dwarf will not always arrive back at the spot it started at.
(0032128)
lethosor   
2015-02-03 06:41   
ptb_ptb: That is not the same thing as this issue. If you can reliably reproduce it, you should open a new report.