Skip to content

Commit

Permalink
refactor(desktop): increase WebGL contexts number to 40 (#1141)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHole1 authored Nov 25, 2021
1 parent 7d0360b commit 4e8c649
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions desktop/main-app/src/bootup/init-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ export default (): void => {
process.env.EVENT_NOKQUEUE = 1;

app.setAsDefaultProtocolClient("x-agora-flat-client");

// support more WebGL contexts
// RTC and PPT will occupy WebGL contexts
app.commandLine.appendSwitch("max-active-webgl-contexts", "40");
};

0 comments on commit 4e8c649

Please sign in to comment.