Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefly-1247: fix GPU.js to create window.GPUX to no longer class with chrome GPU #1384

Merged
merged 1 commit into from
May 15, 2023

Conversation

robyww
Copy link
Contributor

@robyww robyww commented May 15, 2023

Firefly-1247: fix GPU.js to create window.GPUX to no longer class with chrome GPU

  • rename GPU to GPUX
  • created a new version of the script gpu-browser.min-2.15.0-HACK-GPUX.js

Test

@robyww robyww added the bug label May 15, 2023
@robyww robyww added this to the 2023.1 milestone May 15, 2023
@robyww robyww requested a review from loitly May 15, 2023 15:08
@robyww robyww self-assigned this May 15, 2023
@robyww robyww changed the base branch from dev to rc-2022.3 May 15, 2023 15:13
@robyww robyww changed the base branch from rc-2022.3 to rc-2023.1 May 15, 2023 15:14
@lrebull
Copy link
Contributor

lrebull commented May 15, 2023

I tested the firefly build at the provided link, and it works in the latest Chrome!

Copy link
Contributor

@loitly loitly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and confirmed it worked in my Chrome 113.

@@ -4,7 +4,8 @@

import {loadScript, getRootURL, getGlobalObj} from '../../util/WebUtil.js';

const GPU_JS_SCRIPT= 'gpu-browser.min-2.15.0.js';
// const GPU_JS_SCRIPT= 'gpu-browser.min-2.15.0.js';
const GPU_JS_SCRIPT= 'gpu-browser.min-2.15.0-HACK-GPUX.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are naming this file, maybe call it 'patch' instead of hack?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I called it HACK because it is not a patch from them. I had to edit the file and change the name of of the object consistent with this suggestion: gpujs/gpu.js#820

Maybe a better name is FIX, but I don't want to use patch.

@robyww robyww merged commit b42a73f into rc-2023.1 May 15, 2023
@robyww robyww deleted the FIREFLY-1247-gpu branch August 10, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants