From f587e19d259b0bfb0e53543e53e46696e4ff1ca8 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 27 Sep 2025 18:27:33 -0400 Subject: [PATCH] remove gpu loading error --- .../app/src/pages/PageEnigma/PageEnigma.tsx | 9 - .../app/src/pages/PageEnigma/TurnOnGpu.tsx | 210 ------------------ 2 files changed, 219 deletions(-) delete mode 100644 frontend/apps/editor3d/app/src/pages/PageEnigma/TurnOnGpu.tsx diff --git a/frontend/apps/editor3d/app/src/pages/PageEnigma/PageEnigma.tsx b/frontend/apps/editor3d/app/src/pages/PageEnigma/PageEnigma.tsx index 78c990387e..6f4595feb4 100644 --- a/frontend/apps/editor3d/app/src/pages/PageEnigma/PageEnigma.tsx +++ b/frontend/apps/editor3d/app/src/pages/PageEnigma/PageEnigma.tsx @@ -11,7 +11,6 @@ import { useSignals } from "@preact/signals-react/runtime"; import { useEffect, useState } from "react"; import * as gpu from "detect-gpu"; import { UsersApi } from "~/Classes/ApiManager"; -import { TurnOnGpu } from "~/pages/PageEnigma/TurnOnGpu"; import { PrecisionSelector } from "./comps/PrecisionSelector/PrecisionSelector"; import { precisionSelectedValue, @@ -22,7 +21,6 @@ import { import { InstallSounds } from "~/pages/PageEnigma/InstallSounds"; import { PageEditor } from "~/pages/PageEnigma/PageEditor"; import { GalleryDragComponent } from "@storyteller/ui-gallery-modal"; -import { LoadingDots } from "@storyteller/ui-loading"; import { PricingModal, CreditsModal, @@ -105,13 +103,6 @@ export const PageEnigma = ({ sceneToken }: { sceneToken?: string }) => { InstallSounds(); }); - if (validGpu === "unknown") { - return ; - } - if (validGpu === "error") { - return ; - } - const currentReminderModalProps = actionReminderProps.value; return ( diff --git a/frontend/apps/editor3d/app/src/pages/PageEnigma/TurnOnGpu.tsx b/frontend/apps/editor3d/app/src/pages/PageEnigma/TurnOnGpu.tsx deleted file mode 100644 index 3af4418be2..0000000000 --- a/frontend/apps/editor3d/app/src/pages/PageEnigma/TurnOnGpu.tsx +++ /dev/null @@ -1,210 +0,0 @@ -import * as CopyToClipboard from "react-copy-to-clipboard"; -import { useEffect, useState } from "react"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faCopy } from "@fortawesome/pro-solid-svg-icons"; - -export const TurnOnGpu = () => { - const [copied1, setCopied1] = useState(false); - const [copied2, setCopied2] = useState(false); - - useEffect(() => { - if (copied1) { - setTimeout(() => setCopied1(false), 2000); - } - }, [copied1]); - useEffect(() => { - if (copied2) { - setTimeout(() => setCopied2(false), 2000); - } - }, [copied2]); - - return ( -
-
- Hardware acceleration is required for StoryTeller Studio to run - properly. To check if this is enabled, please follow the steps for your - browser below. -
-
- Google Chrome: -
-
    -
  1. -
    - Click the three stacked dots in upper right of the browser window. -
    -
  2. -
  3. -
    - Click the arrow next to "Advanced" and select{" "} - "System." -
    -
  4. -
  5. -
    - Make sure the box next to{" "} - "Use hardware acceleration when available" is - toggled on. -
    -
  6. -
  7. -
    - Close and restart the browser for the change to take effect. -
    -
  8. -
      -
    • -
      - You can also copy and paste this link{" "} - setCopied1(true)} - > - - chrome://settings/system  - {copied1 ? ( - Copied. - ) : ( - - - - )} -   - - - into the address bar. This will bring you right to the system - settings. -
      -
    • -
    -
-
- Firefox: -
-
    -
  1. -
    - Click on "Firefox" then{" "} - "Preferences." -
    -
  2. -
  3. -
    - In the "General" panel, go to the  - "Performance" section. -
    -
  4. -
  5. -
    - Uncheck the box next to  - "Use recommended performance settings" and make - sure the box next to{" "} - "Use hardware acceleration when available" is - selected. -
    -
  6. -
  7. -
    - Close and restart the browser for the change to take effect. -
    -
  8. - -
-
- Microsoft Edge: -
-
    -
  1. -
    - Click the "3 dots" menu icon in the upper right of the - browser window -
    -
  2. -
  3. -
    - Click on "Settings" then{" "} - "System" on the left side. -
    -
  4. -
  5. -
    - Toggle on{" "} - "Use hardware acceleration when available" if - this is not enabled. -
    -
  6. -
  7. -
    - Close and restart the browser for the change to take effect. -
    -
  8. -
      -
    • -
      - You can also copy and paste this link{" "} - setCopied2(true)} - > - - edge://settings/system  - {copied2 ? ( - Copied. - ) : ( - - - - )} -   - - - into the address bar. This will bring you right to the system - settings. -
      -
    • -
    -
-
- Safari (Mac Only) -
-
- As of macOS Catalina (version 10.15), Hardware acceleration is - automatically enabled, and there is no way turn this on and off. If you - are using an older version of MacOS, please use the steps below: -
-
    -
  1. -
    - Click on the "Safari" then "Settings" >{" "} -
    -
  2. -
  3. -
    - Click "Advanced" on the top right of the Settings window - and ensure "Use hardware acceleration" is enabled -
    -
  4. -
-
- If you are still having an issue with enabling hardware acceleration, we - recommend you update your graphics card drivers, if possible. If these - updates do not help, you may have to consider upgrading your graphics - card or playing on a different device. -
-
- ); -};