You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check timers code returns true if there are any timers even if they are not due. This causes EventsPending to return true with no blocking so main loop iteration will run away with CPU.
Affects both NetDriver and WindowsDriver (and probably curses too)
It affects idle to which is used internally by WindowsDriver here:
// TODO: This makes ConsoleDriver dependent on Application, which is not ideal. This should be moved to Application.
Application.MainLoop.AddIdle(()=>{ Task.Run(async()=>await ProcessContinuousButtonPressedAsync (mouseFlag));returnfalse;});
tznind
added a commit
to tznind/gui.cs
that referenced
this issue
Nov 10, 2024
Describe the bug
Check timers code returns true if there are any timers even if they are not due. This causes
EventsPending
to return true with no blocking so main loop iteration will run away with CPU.Adding a timeout causes CPU to go up massively
To Reproduce
Add any timeout
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Set Project & Milestone
If you have access, please don't forget to set the right Project and Milestone.
The text was updated successfully, but these errors were encountered: