GithubHelp home page GithubHelp logo

Faster startup about neutralinojs HOT 8 OPEN

jerrygreen avatar jerrygreen commented on June 10, 2024
Faster startup

from neutralinojs.

Comments (8)

hschneider avatar hschneider commented on June 10, 2024 3

Maybe indeed a Win10 issue with WebView initialization:

https://learn.microsoft.com/en-us/answers/questions/1185053/msedgewebview2-show-slowly-first-time-in-cold-star

@shalithasuranga : Would make sense to flag this issue for further investigation on GSOC. It might be faster with newer WebView DLLs that still run under Win10. Maybe it only happens when an outdated DLL release is present.

from neutralinojs.

jerrygreen avatar jerrygreen commented on June 10, 2024 1

My specs:

Processor Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
RAM 16.0 GB, DDR4, 2666 Mhz (2 of 4 slots used, each 8 GB)
Windows 10 (22H2)

At the time of my check, the resource consumption was:

CPU 5%
RAM 10/16 GB

Therefore, there's enough resources to use.

I recorded the process, and did verify in a video editor, to see exact time: from loading icon to appear, to the first UI being shown. Here's some more info:

  1. Cold start: 2.3 seconds
    gif5

  2. Warm start: 1.3 seconds
    gif6

You may note I'm not showing the default blank white screen on start, it's simply due to this approach:

put in config: "hidden": true, then in your application run Neutralino.window.show() asap (inside index.html)

If by saying «GUI» you mean this white blank non-interactive screen, then we're talking about different things.
What I mean by GUI: when actual HTML being visible, like some text etc.

from neutralinojs.

hschneider avatar hschneider commented on June 10, 2024 1

You can try to install a newer version here:
https://developer.microsoft.com/de-de/microsoft-edge/webview2/?form=MA13LH#download
The latest one is 122.x. At best choose it from the right hand "Fixed Version" install.
It's recommended to reboot after install.

from neutralinojs.

hschneider avatar hschneider commented on June 10, 2024

Here it shows the GUI with a delay of approx. 0.5 sec. under macOS and Win 11 (virtual machine).
Can you give closer details about your OS and underlying hardware (CPU, RAM) ?

from neutralinojs.

hschneider avatar hschneider commented on June 10, 2024

Strange. Do you have some anti-virus tool running in background?

from neutralinojs.

jerrygreen avatar jerrygreen commented on June 10, 2024

For you to understand – all other programs are running perfectly fine. Just as always.
I'm not experiencing any system staggers or anything. Nothing «lags».
The program itself works just fine. It's just Neutralino starts it not as fast as I would like to.

from neutralinojs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.