Hello Marc,
Thank you for your question and for reaching out with your question today.
Please try the following suggestions to try and determine where the prioritisation is being set from:
- Monitor System Activity: Use tools like Task Manager or Process Explorer to monitor the application's behaviour and resource usage during runtime. Look for any patterns or correlations when the base priority is set to High or Realtime.
- Analyse Application Dependencies: Determine if your plugin has any dependencies or interactions with other processes or system components that could be triggering the change in base priority. Check for any external libraries, APIs, or system calls that might be relevant.
- Review Plugin Code: Examine your plugin's codebase thoroughly for any sections that might affect process priority or make system calls related to priority. Look for any explicit calls to functions like
SetPriorityClass
orSetThreadPriority
that could be modifying the priority inadvertently. - Check for Configuration Options: Investigate if there are any configuration files or settings specific to your plugin that could be influencing process priority. Review the documentation or consult with the team responsible for the core application to ensure that you haven't missed any relevant configuration options.
- Test in Isolation: Consider testing your plugin in isolation, without any other plugins or extensions enabled, to see if the issue still occurs. This can help determine if the problem is specific to your plugin or if it is a more widespread issue.
I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.
If the reply was helpful, please don’t forget to upvote or accept as answer.
Best regards.