Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.


Developers Notice (April 26): Additional caching + rate limiting have been applied and may affect you if you interface with the MediaWiki API. Our API page details the current requirements to interface with the API, as well as common issues that you may experience.

Engine:Electron

From PCGamingWiki, the wiki about fixing PC games
Electron
Electron Software Framework Logo.svg
Developers
Website
First release date

Electron is an open source library, combining the Blink rendering engine, found in Google Chrome web browser, and Node.js JavaScript environment. Initially developed for the Atom text editor, it is now used in wide variety of software ranging from desktop applications to games.

Most command line arguments for Chromium can take effect.
Easy to port to another platform or architecture if no other platform/arch specified binary used.

Modding

Enabling Electron debugging

To debug the the native (Node.js) code:

  1. Set the game launch option to --inspect
  2. Using any Chromium-based browser (eg. Google Chrome), go to chrome://inspect
  3. Click inspect under Remote Target
Enabling web inspector

To debug the the web content (Chromium) interface code:

  1. Enable Electron debugging and attach to remote target
  2. Type require('electron').app.once('browser-window-focus', (e, w) => w.webContents.openDevTools())
  3. Switch to the game window and the web inspector should open

API

Technical specs Supported Notes
Direct3D 9, 11, 12 Launch with --use-gl=egl --use-angle=%API%, value can be d3d9, d3d11, d3d11on12 (require higher version of nw.js). DX11 is default in most games and devices.
OpenGL
Launch with --use-gl=egl --use-angle=gl
Software renderer
Launch with --disable-gpu
Vulkan
Launch with --use-gl=egl --use-angle=vulkan
Executable 32-bit 64-bitARM Notes
Windows
Windows ARM support added in 6.0.8[1]
macOS (OS X)
Darwin-ia32 never supported since the project named as Electron from v0.24.
Linux
Linux 32-bit discontinued from 4.0[2]. Both ARMv7l and ARM64 supported.

Games


References

  1. Windows on ARM - last accessed on 2024-06-20
  2. Discontinuing support for 32-bit Linux - last accessed on 2024-06-20