Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] If you can?

[DiscordArchive] If you can?

[DiscordArchive] If you can?

Pages (8): Previous 1 2 3 4 5 8 Next  
rektbyfaith
Administrator
0
06-12-2023, 07:12 PM
#11
Archived author: Whomadeit • Posted: 2023-06-12T19:12:10.618000+00:00
Original source

okay ill check
rektbyfaith
06-12-2023, 07:12 PM #11

Archived author: Whomadeit • Posted: 2023-06-12T19:12:10.618000+00:00
Original source

okay ill check

rektbyfaith
Administrator
0
06-12-2023, 07:13 PM
#12
Archived author: Whomadeit • Posted: 2023-06-12T19:13:25.507000+00:00
Original source

```
There could be various reasons for slow startup times in an Electron application. It may be due to initialization of certain resources, large data loading at startup, or some other time-consuming processes. Here are a few steps you can take to debug this issue:

Check Initialization Time: Look at how long it takes to initialize resources and modules, especially those involved at startup. Does loading or initializing any specific resource or module take longer than others?

Benchmark Sections of Code: You could add console.log statements with timestamps at various points in your startup code. This could help you identify any parts of the code that are particularly slow. Use console.time("label") and console.timeEnd("label") to log the time it takes to execute certain parts of the code.

Check Network Calls: Are there any network calls being made during initialization? If your app relies on a network resource, a slow network or a large download could cause a delay.

Inspect Electron Startup: Use the --trace-startup and --trace-startup-file=path/to/trace/file command-line flags when starting Electron to create a trace file, which could provide insight into what's happening during startup.

Review Package Size: Make sure you are not packaging unnecessary files or large resources with the Electron application. Larger packages could cause slower startup times.

Inspect the Modules: Check the modules that are imported at the start. Some of them might be large or take time to load. If they aren't necessary at startup, consider lazy-loading them (i.e., only importing them when they're needed).```
rektbyfaith
06-12-2023, 07:13 PM #12

Archived author: Whomadeit • Posted: 2023-06-12T19:13:25.507000+00:00
Original source

```
There could be various reasons for slow startup times in an Electron application. It may be due to initialization of certain resources, large data loading at startup, or some other time-consuming processes. Here are a few steps you can take to debug this issue:

Check Initialization Time: Look at how long it takes to initialize resources and modules, especially those involved at startup. Does loading or initializing any specific resource or module take longer than others?

Benchmark Sections of Code: You could add console.log statements with timestamps at various points in your startup code. This could help you identify any parts of the code that are particularly slow. Use console.time("label") and console.timeEnd("label") to log the time it takes to execute certain parts of the code.

Check Network Calls: Are there any network calls being made during initialization? If your app relies on a network resource, a slow network or a large download could cause a delay.

Inspect Electron Startup: Use the --trace-startup and --trace-startup-file=path/to/trace/file command-line flags when starting Electron to create a trace file, which could provide insight into what's happening during startup.

Review Package Size: Make sure you are not packaging unnecessary files or large resources with the Electron application. Larger packages could cause slower startup times.

Inspect the Modules: Check the modules that are imported at the start. Some of them might be large or take time to load. If they aren't necessary at startup, consider lazy-loading them (i.e., only importing them when they're needed).```

rektbyfaith
Administrator
0
06-12-2023, 07:13 PM
#13
Archived author: Whomadeit • Posted: 2023-06-12T19:13:55.826000+00:00
Original source

there is some ideas
rektbyfaith
06-12-2023, 07:13 PM #13

Archived author: Whomadeit • Posted: 2023-06-12T19:13:55.826000+00:00
Original source

there is some ideas

rektbyfaith
Administrator
0
06-12-2023, 07:14 PM
#14
Archived author: Whomadeit • Posted: 2023-06-12T19:14:25.191000+00:00
Original source

Remember, optimization often involves trade-offs, and sometimes startup times can be improved at the expense of other aspects of performance. Always measure and understand the impact of any changes you make to ensure they're improving the overall user experience.
rektbyfaith
06-12-2023, 07:14 PM #14

Archived author: Whomadeit • Posted: 2023-06-12T19:14:25.191000+00:00
Original source

Remember, optimization often involves trade-offs, and sometimes startup times can be improved at the expense of other aspects of performance. Always measure and understand the impact of any changes you make to ensure they're improving the overall user experience.

rektbyfaith
Administrator
0
06-12-2023, 07:14 PM
#15
Archived author: Srzm • Posted: 2023-06-12T19:14:55.399000+00:00
Original source

Cid be like:
`LMAO, here is your ChatGPT suggestion, Shauren.`
rektbyfaith
06-12-2023, 07:14 PM #15

Archived author: Srzm • Posted: 2023-06-12T19:14:55.399000+00:00
Original source

Cid be like:
`LMAO, here is your ChatGPT suggestion, Shauren.`

rektbyfaith
Administrator
0
06-12-2023, 07:15 PM
#16
Archived author: Whomadeit • Posted: 2023-06-12T19:15:06.065000+00:00
Original source

well yeah
rektbyfaith
06-12-2023, 07:15 PM #16

Archived author: Whomadeit • Posted: 2023-06-12T19:15:06.065000+00:00
Original source

well yeah

rektbyfaith
Administrator
0
06-12-2023, 07:15 PM
#17
Archived author: Tea • Posted: 2023-06-12T19:15:16.110000+00:00
Original source

it was completely useless but i was not disappointed
rektbyfaith
06-12-2023, 07:15 PM #17

Archived author: Tea • Posted: 2023-06-12T19:15:16.110000+00:00
Original source

it was completely useless but i was not disappointed

rektbyfaith
Administrator
0
06-12-2023, 07:15 PM
#18
Archived author: Tea • Posted: 2023-06-12T19:15:22.045000+00:00
Original source

because thats exactly what i expected
rektbyfaith
06-12-2023, 07:15 PM #18

Archived author: Tea • Posted: 2023-06-12T19:15:22.045000+00:00
Original source

because thats exactly what i expected

rektbyfaith
Administrator
0
06-12-2023, 07:15 PM
#19
Archived author: Whomadeit • Posted: 2023-06-12T19:15:23.535000+00:00
Original source

if anyone knows more than him its not a human
rektbyfaith
06-12-2023, 07:15 PM #19

Archived author: Whomadeit • Posted: 2023-06-12T19:15:23.535000+00:00
Original source

if anyone knows more than him its not a human

rektbyfaith
Administrator
0
06-12-2023, 07:17 PM
#20
Archived author: Whomadeit • Posted: 2023-06-12T19:17:01.723000+00:00
Original source

```
Initialization functions: The functions parseArgv(), initializeLogging(), loadConfig(), createWindow(), createMenu(), and setupCrypto() are all called during the startup phase (app.on('ready')). If any of these functions are doing heavy computation or I/O operations, that could slow down the startup. Try commenting out each function call one by one and measure the startup time to see if any particular function is causing the slowdown.

Preload script: The createWindow() function sets a preload script with path.join(__dirname, 'renderer-preload.js'). This script runs before the window is loaded. If this script is doing a lot of work, it could potentially slow down the startup. You may want to review the 'renderer-preload.js' file to see if there's anything that could be causing a delay.

Loading of HTML: The createWindow() function also loads an HTML file with applicationWindow.loadFile(path.join(__dirname, '../web-app/index.html')). If this HTML file is large, or if it includes scripts that are large or perform heavy computations, that could slow down the startup.

External dependencies: The code includes several external modules (e.g., 'electron', 'electron-settings', 'command-line-args', etc.). If any of these modules have slow startup times, that could slow down your application.

Electron itself: Electron is known for being somewhat slower to start up than native applications. This is because it essentially runs a miniaturized version of the Chromium browser, which has a startup time overhead of its own. If you're comparing the startup time of your Electron app to a native application, keep in mind that some delay is to be expected.```
rektbyfaith
06-12-2023, 07:17 PM #20

Archived author: Whomadeit • Posted: 2023-06-12T19:17:01.723000+00:00
Original source

```
Initialization functions: The functions parseArgv(), initializeLogging(), loadConfig(), createWindow(), createMenu(), and setupCrypto() are all called during the startup phase (app.on('ready')). If any of these functions are doing heavy computation or I/O operations, that could slow down the startup. Try commenting out each function call one by one and measure the startup time to see if any particular function is causing the slowdown.

Preload script: The createWindow() function sets a preload script with path.join(__dirname, 'renderer-preload.js'). This script runs before the window is loaded. If this script is doing a lot of work, it could potentially slow down the startup. You may want to review the 'renderer-preload.js' file to see if there's anything that could be causing a delay.

Loading of HTML: The createWindow() function also loads an HTML file with applicationWindow.loadFile(path.join(__dirname, '../web-app/index.html')). If this HTML file is large, or if it includes scripts that are large or perform heavy computations, that could slow down the startup.

External dependencies: The code includes several external modules (e.g., 'electron', 'electron-settings', 'command-line-args', etc.). If any of these modules have slow startup times, that could slow down your application.

Electron itself: Electron is known for being somewhat slower to start up than native applications. This is because it essentially runs a miniaturized version of the Chromium browser, which has a startup time overhead of its own. If you're comparing the startup time of your Electron app to a native application, keep in mind that some delay is to be expected.```

Pages (8): Previous 1 2 3 4 5 8 Next  
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)