Skip to content

nl-matcher performance low when run on Electron. #586

@intaek-h

Description

@intaek-h

Short summary
As a poc, I tried running a simple image matching Nut.js script on Node.js@20. I ran node index.js to check if Nut.js meets my performance expectations. And gladly it did.

So, I began to start my project which required Vue.js, Electron, and Nut.js. I copy and pasted the same simple snippet which I used for the POC, and ran the program with npm run dev. (The Electron app has a button that runs the simple Nut.js script.)

Surprisingly the app could not detect the given image.

I want to know if anyone has experienced similar phenomenon, or if I am missing anything.

Desired execution environment / tested on

  • Virtual machine
  • Docker container
  • Dev/Host system

node version:
NodeJS@20

OS type and version:
Windows 11 x86

Full code sample related to question

await sleep(1000)
const img = await screen.find(imageResource('src/main/nuts/images/sidebar-new.png'))
await mouse.move(straightTo(centerOf(img))
await mouse.leftClick()

Detailed question

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions