It is not a SW issue, it is a HW issue. Laptops are built to save power so they adjust the processor speeds among other things to do that. When you need precise timings, as Mach does, then that will not work. If you want to use a laptop then you need to use an external motion controller.