Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Support more browsers #105

Open
konsumlamm opened this issue Nov 5, 2020 · 2 comments
Open

Support more browsers #105

konsumlamm opened this issue Nov 5, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request frontend issues concerning the frontend

Comments

@konsumlamm
Copy link
Collaborator

Currently, only Chromium-based browsers are supported, since OffscreenCanvas is used to render the game. It would be nice to have an alternate renderer in order to make it possible to run Rask in non-Chromium browsers (e.g. Firefox).

@konsumlamm konsumlamm added enhancement New feature or request frontend issues concerning the frontend labels Nov 5, 2020
@TrueDoctor TrueDoctor self-assigned this Nov 5, 2020
@nat-rix nat-rix self-assigned this Nov 5, 2020
@nat-rix
Copy link
Member

nat-rix commented Nov 5, 2020

Are we other browsers yet?

@TrueDoctor
Copy link
Member

Path towards offscreen canvas fallback implementation:
Add the required Content Security Policy (CSP) headers required to work under firefox: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/Planned_changes
(this can for testing purposes be disabled by setting a flag in about:config)
Fetch the worker.js to make it accessible from the main thread
execute the script directly from the main thread in case of the offscreen canvas not working

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request frontend issues concerning the frontend
Projects
None yet
Development

No branches or pull requests

3 participants