Enable WebGPU support / Logging
This commit is contained in:
parent
20c5cc630a
commit
a5b2533596
3 changed files with 15 additions and 0 deletions
4
index.js
4
index.js
|
@ -5,6 +5,10 @@ const {app} = require('electron');
|
||||||
const ElectronSentry = require("@sentry/electron");
|
const ElectronSentry = require("@sentry/electron");
|
||||||
ElectronSentry.init({dsn: "https://68c422bfaaf44dea880b86aad5a820d2@o954055.ingest.sentry.io/6112214"});
|
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
|
// Creating the Application Window and Calling all the Functions
|
||||||
function CreateWindow() {
|
function CreateWindow() {
|
||||||
if (app.isQuiting) { app.quit(); return; }
|
if (app.isQuiting) { app.quit(); return; }
|
||||||
|
|
|
@ -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;",
|
"mimeType": "x-scheme-handler/ame;x-scheme-handler/itms;x-scheme-handler/itmss;x-scheme-handler/musics;x-scheme-handler/music;",
|
||||||
"schemes": [
|
"schemes": [
|
||||||
"ame",
|
"ame",
|
||||||
|
"cider",
|
||||||
"itms",
|
"itms",
|
||||||
"itmss",
|
"itmss",
|
||||||
"musics",
|
"musics",
|
||||||
|
@ -60,6 +61,7 @@
|
||||||
],
|
],
|
||||||
"protocols": [
|
"protocols": [
|
||||||
"ame",
|
"ame",
|
||||||
|
"cider",
|
||||||
"itms",
|
"itms",
|
||||||
"itmss",
|
"itmss",
|
||||||
"musics",
|
"musics",
|
||||||
|
@ -79,6 +81,7 @@
|
||||||
"name": "Cider",
|
"name": "Cider",
|
||||||
"schemes": [
|
"schemes": [
|
||||||
"ame",
|
"ame",
|
||||||
|
"cider",
|
||||||
"itms",
|
"itms",
|
||||||
"itmss",
|
"itmss",
|
||||||
"musics",
|
"musics",
|
||||||
|
|
|
@ -1945,3 +1945,11 @@ var checkIfScrollIsStatic = setInterval(() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
}, 50);
|
}, 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()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue