Click here to Skip to main content
15,906,333 members

Comments by Member 10160214 (Top 5 by date)

Member 10160214 19-Jul-13 4:10am View    
This was very interesting read. As it happens all I really want is regular intervals rather than exactly 16.67ms intervals, and Alan N's solution seems to achieve that. I've not really used P/Invoke before and I don't have much time to experiment so I'm not going to investigate this route further, but thanks for all your help.
Member 10160214 19-Jul-13 4:06am View    
Okay I set the interval to 1ms and then 17ms, both these get a regular interval at ~15ms and ~31 as you say. This is a perfect solution for me as all I really wanted was regular intervals. Updated with a new graph - http://imgur.com/a/Fc2Fh.

Thanks for your help!
Member 10160214 18-Jul-13 13:36pm View    
Still the same, and either way there's no chance that doing a simple subtraction is going to take 16ms. Do you get the same result, or is this limited to my computer?
Member 10160214 18-Jul-13 12:05pm View    
Okay tried that, still no difference, I'm still seeing up to 32 ms between ticks, the same as in the graph.
Member 10160214 18-Jul-13 10:44am View    
Well that's what I thought at first, but the C# code I posted above is a self contained example with no client-server comms involved and it still shows the same problem.