LogicLooper icon indicating copy to clipboard operation
LogicLooper copied to clipboard

Doubts about loops?

Open 2505817596 opened this issue 3 years ago • 5 comments

Shouldn't this loop 60 times a second, why is it 30 times? image

2505817596 avatar Aug 15 '21 10:08 2505817596

This is due to the timer accuracy of Windows. We are currently investigating and will fix this in the future.

mayuki avatar Oct 18 '21 08:10 mayuki

I'm having the same issue right now. Are there still plans to deploy a fix?

Thanks!

Racso avatar Mar 24 '22 14:03 Racso

any update for it @mayuki

binhnguyen86 avatar May 08 '22 04:05 binhnguyen86

Approaches to changing the accuracy of Windows timers to avoid this problem have been available for some time. https://stackoverflow.com/questions/3744032/why-are-net-timers-limited-to-15-ms-resolution

timeBeginPeriod Win32 API can be used to change the timer accuracy on Windows. https://docs.microsoft.com/ja-jp/windows/win32/api/timeapi/nf-timeapi-timebeginperiod

On Windows 10 version 2004 or later, the timer precision can be changed on a process-by-process basis, so there should be no problem with this method.

mayuki avatar May 09 '22 05:05 mayuki

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Aug 08 '22 00:08 github-actions[bot]

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Nov 15 '22 00:11 github-actions[bot]