I'm pretty sure that my JavaFX app is managed by efficiency cores once
reduced in tray icon since its performance drops significantly,
if I open a window and leave it open, the app goes at max speed on
performance cores.
Is there a way to set the app runs on performance core even without
leaving a window opened?
--
You received this message because you are subscribed to the Google Groups "Java Native Access" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jna-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jna-users/4cdc35f7-548d-4121-8fbd-b4ef8c0c8207n%40googlegroups.com.
I'm not sure how to check it, the only thing I know is that while the app runs in background in the tray icon the performance drop after a while,
if I open a window, and leave it opened, the performance does not drop.
How can I check if it's the foreground priority boost from Windows and if it's that the case,
how can I tell to windows to stop setting my threads in a low priority state? :)
It seems to me you have to manually change the QoS for the
process. See https://learn.microsoft.com/en-us/windows/win32/procthread/quality-of-service
for QoS information. It looks like you would have to call SetProcessInformation
with ProcessPowerThrottling and StateMask=0. I have no idea if JNA
supports these calls.
To view this discussion on the web visit https://groups.google.com/d/msgid/jna-users/770ec622-ff43-9d69-8b9b-27079ab0ed6e%40dpsoftware.org.
-- VH
To view this discussion on the web visit https://groups.google.com/d/msgid/jna-users/561c225f-3a40-eda6-89d7-f3d3a6e8caf8%40gmail.com.