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

Experiment with a desktop environment using imgui #440

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from
Draft

Experiment with a desktop environment using imgui #440

wants to merge 19 commits into from

Conversation

tomaka
Copy link
Owner

@tomaka tomaka commented May 4, 2020

cc #438

Progress:
Screenshot from 2020-05-04 22-16-28

Unfortunately it's quite complicated to compile:

AR_wasm32_wasi=/home/pierre/Projets/wasi-sdk-10.0/bin/ar CXX_wasm32_wasi=/home/pierre/Projets/wasi-sdk-10.0/bin/clang++ CXXFLAGS_wasm32_wasi="-fno-threadsafe-statics --sysroot=/home/pierre/Projets/wasi-sdk-10.0/share/wasi-sysroot" CARGO_TARGET_WASM32_WASI_LINKER=/home/pierre/Projets/wasi-sdk-10.0/bin/lld CXXSTDLIB_wasm32_wasi=c++ CARGO_TARGET_WASM32_WASI_RUSTFLAGS="-Clink-arg=-L/home/pierre/Projets/wasi-sdk-10.0/share/wasi-sysroot/lib/wasm32-wasi" cargo run --target=wasm32-wasi --release

@tomaka
Copy link
Owner Author

tomaka commented May 23, 2020

Progress report: everything is working fine, but the next step is to gather mouse/keyboard events, otherwise the UI itself is kind of pointless.

@tomaka tomaka changed the base branch from master to develop June 17, 2020 16:36
@tomaka
Copy link
Owner Author

tomaka commented Jun 17, 2020

Progress report:

  • Mouse movements work, not mouse clicks nor keyboard yet.

  • It works but is still extremely slow. With wasmtime it works okay-ish (around 10 fps on my machine), but the unoptimized software rendering and multiple copies of the framebuffer is really not great.

  • Need to set up the CI for this module to compile. Considering how difficult it is to compile this locally, maybe is the time to actually set up the IPFS-like network for people to download a pre-compiled version.

@tomaka
Copy link
Owner Author

tomaka commented Jul 12, 2020

Should be based on #498

@tomaka
Copy link
Owner Author

tomaka commented Oct 24, 2020

I'm now getting "bad relocation type" linking errors, presumably because Rust now uses LLVM 11.0 but the WASI SDK is still at LLVM 10.0.
It should be possible to fix this by manually passing paths to the lld that ships with Rust, but that's not very future-proof.

@tomaka tomaka changed the base branch from develop to main January 9, 2021 10:26
Copy link
Contributor

@mergify mergify bot left a comment

Choose a reason for hiding this comment

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

Automatically approving tomaka's pull requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant