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

Update egui to 0.28.1 #143

Merged
merged 14 commits into from
Jul 22, 2024
Merged

Update egui to 0.28.1 #143

merged 14 commits into from
Jul 22, 2024

Conversation

white-axe
Copy link
Collaborator

Description

This pull request updates egui to 0.28.1 and wgpu to 0.20.1.

In web builds, wgpu now requires a version of wasm-bindgen-futures that won't compile with Rust nightly toolchain versions earlier than 2024-02-06 if the +atomics compiler feature is enabled, so I updated the Rust toolchain to 2024-05-19, the latest nightly version that I could get all of our dependencies to compile with.

Make sure to update the toolchain version for luminol-website as well or it won't build anymore after this pull request.

Testing

I checked that the following things still work in native and web builds:

  • Opening maps and creating, deleting and moving around events in the map editor
  • Saving map previews as PNG files
  • Opening database editors
  • Opening the event editor
  • Opening the script editor
  • Opening the sound test
  • Opening the graphic picker modals in the event editor and database editors
  • Opening, scrolling and using IME in the terminal in native builds (the scrolling and IME events changed in egui 0.28.0)
  • The rendering of the graphic in the about window

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown -Z build-std=std,panic_abort
  • Run cargo build --release
  • If applicable, run trunk build --release

white-axe added 13 commits July 22, 2024 01:47
It seems we are now required to use a version of `wasm-bindgen-futures`
that won't compile with Rust nightly versions older than 2024-02-06, so
I upgraded the Rust toolchain to 2024-05-19, the latest version that
works without encountering an unrelated compilation error in the `time`
crate.
This is to make it look consistent with how it was before the egui
update.
This fixes the displaying of the icon in the "About" window.
The release notes for eframe 0.28.0 say you need to focus the canvas on
startup if you're creating a fullscreen app.
@white-axe white-axe added the dependencies Pull requests that update a dependency file label Jul 22, 2024
@white-axe white-axe requested a review from a team as a code owner July 22, 2024 21:12
@melody-rs
Copy link
Member

Seems to run way more choppy now, even in release?

2024-07-22.14-51-09.mp4

@white-axe
Copy link
Collaborator Author

white-axe commented Jul 22, 2024

Performance is the same as it was before on my computer. Maybe wgpu changed how it configures graphics drivers by default?

@melody-rs melody-rs merged commit 19baad9 into Astrabit-ST:dev Jul 22, 2024
4 checks passed
@white-axe white-axe deleted the update-egui branch July 23, 2024 01:43
MolassesLover pushed a commit to MolassesLover/luminol-molasses that referenced this pull request Jul 23, 2024
* Merge from upstream egui 0.28.1

* Update everything else and fix compilation errors

It seems we are now required to use a version of `wasm-bindgen-futures`
that won't compile with Rust nightly versions older than 2024-02-06, so
I upgraded the Rust toolchain to 2024-05-19, the latest version that
works without encountering an unrelated compilation error in the `time`
crate.

* Fix another release-mode-only compilation error

* Fix `BorrowMutError` in web builds

* Make IME work again in web builds

* Fix compiler warnings

* Add spacing at the bottom of the map editor top bar

This is to make it look consistent with how it was before the egui
update.

* Fix doc comment in crates/eframe/src/lib.rs

* Update `image` from 0.24 to 0.25

This fixes the displaying of the icon in the "About" window.

* Remove eframe text agent after panic in web builds

* Focus the HTML canvas on startup in web builds

The release notes for eframe 0.28.0 say you need to focus the canvas on
startup if you're creating a fullscreen app.

* Fix terminal scroll delta calculation when unit is pages

* Fix compiler warning in steam.rs
MolassesLover pushed a commit to MolassesLover/luminol-molasses that referenced this pull request Jul 23, 2024
* Merge from upstream egui 0.28.1

* Update everything else and fix compilation errors

It seems we are now required to use a version of `wasm-bindgen-futures`
that won't compile with Rust nightly versions older than 2024-02-06, so
I upgraded the Rust toolchain to 2024-05-19, the latest version that
works without encountering an unrelated compilation error in the `time`
crate.

* Fix another release-mode-only compilation error

* Fix `BorrowMutError` in web builds

* Make IME work again in web builds

* Fix compiler warnings

* Add spacing at the bottom of the map editor top bar

This is to make it look consistent with how it was before the egui
update.

* Fix doc comment in crates/eframe/src/lib.rs

* Update `image` from 0.24 to 0.25

This fixes the displaying of the icon in the "About" window.

* Remove eframe text agent after panic in web builds

* Focus the HTML canvas on startup in web builds

The release notes for eframe 0.28.0 say you need to focus the canvas on
startup if you're creating a fullscreen app.

* Fix terminal scroll delta calculation when unit is pages

* Fix compiler warning in steam.rs
@white-axe white-axe mentioned this pull request Jul 27, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants