Skip to content

High CPU usage in release mode #2

@Jon-Salmon

Description

@Jon-Salmon

When an app that uses this plugin is running in release mode, the CPU usage is very high. My app usually runs with <1% CPU usage when idle. Adding this plugin raises it to ~10% CPU usage when idle and in the background. Oddly, this is not so noticable in other modes (including profile).

I suspect the issue is with how the isolate is used in device_monitor.dart, and I suspect that most of the logic in there could be replaced by using a plugin like this https://pub.dev/packages/device_manager (or using a similar implementation). Flutter exposes some Windows window notifications to the windows plugin system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions