Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Electron example to allow the Steam overlay to work #338

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update Electron example to allow the Steam overlay to work
Reference: https://www.reddit.com/r/gamedev/comments/mc9s5x/has_anyone_successfully_integrate_steam_overlay/

In my tests (on only one system), only `--in-process-gpu` seemed to be required though (possibly `--disable-direct-composition` is only for older Chromium/Electron versions...)
  • Loading branch information
Jimbly authored Dec 18, 2024
commit 074b5f88214d3128495fdc9f6f0d2c9c2b70318f
2 changes: 2 additions & 0 deletions samples/electron/start.js
Original file line number Diff line number Diff line change
@@ -6,6 +6,8 @@ const BrowserWindow = electron.BrowserWindow;

var mainWindow = null;

app.commandLine.appendSwitch('--in-process-gpu', '--disable-direct-composition'); // Allows the Steam overlay to work

app.on('window-all-closed', function() {
if (process.platform != 'darwin')
app.quit();