diff --git a/index.js b/index.js index e435a26d..cbb03925 100644 --- a/index.js +++ b/index.js @@ -5,6 +5,10 @@ const {app} = require('electron'); const ElectronSentry = require("@sentry/electron"); ElectronSentry.init({dsn: "https://68c422bfaaf44dea880b86aad5a820d2@o954055.ingest.sentry.io/6112214"}); +// Enable WebGPU and list adapters (EXPERIMENTAL.) +app.commandLine.appendSwitch('enable-unsafe-webgpu'); + + // Creating the Application Window and Calling all the Functions function CreateWindow() { if (app.isQuiting) { app.quit(); return; } diff --git a/package.json b/package.json index f1fa7561..83bc6845 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "mimeType": "x-scheme-handler/ame;x-scheme-handler/itms;x-scheme-handler/itmss;x-scheme-handler/musics;x-scheme-handler/music;", "schemes": [ "ame", + "cider", "itms", "itmss", "musics", @@ -60,6 +61,7 @@ ], "protocols": [ "ame", + "cider", "itms", "itmss", "musics", @@ -79,6 +81,7 @@ "name": "Cider", "schemes": [ "ame", + "cider", "itms", "itmss", "musics", diff --git a/src/renderer/index.js b/src/renderer/index.js index a3386ddb..41aa4e2d 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -1945,3 +1945,11 @@ var checkIfScrollIsStatic = setInterval(() => { } }, 50); + +// WebGPU Console Notification +async function webGPU() { + const currentGPU = await navigator.gpu.requestAdapter() + console.log("WebGPU enabled on", currentGPU.name,"with feature ID", currentGPU.features.size) +} +webGPU().then() +