On my AMD Ryzen 7 8845HS mini PC, NVDA is a bit sluggish in some cases in Firefox; e.g. cursoring through messages in Gmail folders. For reasons I don't fully understand, setting the processor affinity to a single CPU core and setting the process priority to "above normal" helps significantly, even when the CPU is nearly idle. I don't currently have the time/energy to debug the root cause for this or write a proper add-on, but I wrote an NVDA global plugin to make the change for me automatically when NVDA starts. If it breaks something, you get to keep all the pieces.
```
import ctypes
import globalPluginHandler
class GlobalPlugin(globalPluginHandler.GlobalPlugin):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
p = ctypes.c_void_p(ctypes.windll.kernel32.GetCurrentProcess())
ctypes.windll.kernel32.SetProcessAffinityMask(p, ctypes.c_void_p(1))
ctypes.windll.kernel32.SetPriorityClass(p, ctypes.wintypes.DWORD(0x00008000))
```
#nvdasr
reshared this
Kevan
in reply to Jamie Teh • • •Jamie Teh
in reply to Kevan • • •x0
in reply to Jamie Teh • • •Jamie Teh
in reply to x0 • • •Kevan
in reply to Jamie Teh • • •Jamie Teh
in reply to Kevan • • •Kevan
in reply to Jamie Teh • • •Timothy Wynn
in reply to Jamie Teh • • •forum.audiogames.net/topic/571…
Timothy Wynn
in reply to Timothy Wynn • • •Jamie Teh
in reply to Timothy Wynn • • •Timothy Wynn
in reply to Jamie Teh • • •Majid Hussain
in reply to Jamie Teh • • •truly, onistly you are.
thank you for all you do for us.
i'm very grateful
Jamie Teh
in reply to Majid Hussain • • •Andre Louis
in reply to Jamie Teh • • •To be fair it's actually not a laggy machine at all despite it's well-warn age, but if anything does, it's never the screen-reader.
Jamie Teh
in reply to Andre Louis • • •Talon
in reply to Jamie Teh • • •Addon: iamtalon.me/cpuPriority-1.0.0.…
Code: code.iamtalon.me/Talon/cpu-aff…
cpu-affinity-nvda-addon
Talon's Private GitAndre Louis
in reply to Talon • • •Talon
in reply to Andre Louis • • •Andre Louis
in reply to Talon • • •Talon
in reply to Andre Louis • • •Andre Louis
in reply to Talon • • •It's running better than it ever has though, Jake hooked me up with a GPU instead of Intel onboard graphics, and I upped it from 16 to 32 GB RAM. Windows 10 but it's not end-of-life because of the I guess, EU mandate so I still get updates.
Never felt so good lol
Andre Louis
in reply to Andre Louis • • •Talon
in reply to Andre Louis • • •Jamie Teh
in reply to Talon • • •Talon
in reply to Jamie Teh • • •Jamie Teh
in reply to Talon • • •Talon
in reply to Jamie Teh • • •Jamie Teh
in reply to Talon • • •D.Hamlin.Music
in reply to Jamie Teh • • •Brandon Tyson
in reply to Jamie Teh • • •