-
-
Notifications
You must be signed in to change notification settings - Fork 830
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
web: Automatically chosen preferred renderer #10831
web: Automatically chosen preferred renderer #10831
Conversation
This PR uses a commit from #10829 , so this PR will probably have to be rebased once that PR is merged or closed without merging. |
n0samu and I have added an extra check. |
@@ -383,8 +388,9 @@ export interface BaseLoadOptions { | |||
* falling back to more basic backends if necessary. | |||
* The available values in order of default preference are: | |||
* "webgpu", "wgpu-webgl", "webgl", "canvas". | |||
* If the renderer is set to RenderBackend.Automatic or "", Ruffle selects the renderer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already explained by the existing comments, so not really needed IMO
2da90f0
to
1b49510
Compare
c923764
to
10c406b
Compare
10c406b
to
f4609d4
Compare
Let's hold off on merging this until we can decide if this is really the best approach |
As far as I understand, Ideally, we could remain with just |
Yes, 100% correct.
In hindsight, this option might have been better of me to have implemented after the other parts of the options had been figured out. But it is not much work, and the work here can be used to help figure out what future work on this should be, so it is alright.
I actually implemented a version that supported The reason why I decided against it and reversed course was that all the other But it can be done with |
Wait, I think it was in #frontends-apps , not #rendering . |
I changed |
Once #10835 is merged, we can change this PR to just be this single-line change, right? If so, let's plan to do that. Thanks! |
@n0samu I have read through both of the PRs again, and I agree, I believe that would work correctly, and I also believe it would be a very nice way of doing it. I will wait until the other PR is merged, and then update and test and rebase and then force-push a commit for this PR making it a one-line change in a single commit. |
@iwannabethedev Given that merging #10835 (if at all) will probably take some time, maybe the |
I believe that the PR in #10900 already includes those changes to |
Superseded by #10900 . |
web: Add 'Automatic' option to 'preferredRenderer'.
The 'Automatic' option is with this PR the default. The option lets Ruffle select the renderer.
This option is more or less the same as similar options in related technologies have, with one example being Phaser 3:
https://newdocs.phaser.io/docs/3.55.2/Phaser.Types.Core.GameConfig
This PR came about through discussion and investigation between @n0samu and me and others.
The changes have been lightly tested manually.