diff --git a/src/js/ui/UI.js b/src/js/ui/UI.js index 72fc0ec..f78a199 100644 --- a/src/js/ui/UI.js +++ b/src/js/ui/UI.js @@ -29,6 +29,8 @@ export default class UI { try { if (typeof this.safeMode !== "undefined") return this.safeMode; if (!window.WebGLRenderingContext) return this.setSafeMode(true); + const nCores = navigator.hardwareConcurrency; + if (typeof nCores !== "undefined" && nCores > 0 && nCores < 4) return this.setSafeMode(true); const canvas = document.createElement("canvas"); const gl = canvas.getContext("webgl", { powerPreference: "high-performance" }) ||