Skip to content

Commit

Permalink
Reduce memory for refinement (#117)
Browse files Browse the repository at this point in the history
* Reduce memory for refinement

* Fix

* Force 1.85 on CI

* Wasm

* Dupes

* Simpler creation of optimizer
  • Loading branch information
ArthurBrussee authored Feb 24, 2025
1 parent 96634f0 commit 9b4fd2d
Show file tree
Hide file tree
Showing 37 changed files with 342 additions and 309 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.82.0
toolchain: 1.85.0
components: rustfmt, clippy

- name: Install packages (Linux)
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.82.0
toolchain: 1.85.0
targets: wasm32-unknown-unknown

- run: sudo apt-get update && sudo apt-get install libgtk-3-dev libatk1.0-dev
Expand Down
68 changes: 33 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = ["crates/*", "examples/*"]
default-members = ["crates/brush-app"]

[workspace.package]
edition = "2021"
edition = "2024"
version = "0.2.0"
readme = "README.md"
license = "Apache-2.0"
Expand Down Expand Up @@ -71,13 +71,13 @@ ply-rs.git = "https://github.com/ArthurBrussee/ply-rs.git"
burn = { git = "https://github.com/tracel-ai/burn", features = [
'wgpu',
'autodiff',
] } # Various burn packages. Currently need to use burn at head.
burn-cubecl = { git = "https://github.com/tracel-ai/burn" }
burn-ir = { git = "https://github.com/tracel-ai/burn" }
], branch = "remove-wasm-shared-sum" } # Various burn packages. Currently need to use burn at head.
burn-cubecl = { git = "https://github.com/tracel-ai/burn", branch = "remove-wasm-shared-sum" }
burn-ir = { git = "https://github.com/tracel-ai/burn", branch = "remove-wasm-shared-sum" }
burn-wgpu = { git = "https://github.com/tracel-ai/burn", features = [
"exclusive-memory-only",
] }
burn-fusion = { git = "https://github.com/tracel-ai/burn" }
], branch = "remove-wasm-shared-sum" }
burn-fusion = { git = "https://github.com/tracel-ai/burn", branch = "remove-wasm-shared-sum" }

egui = "0.31.0"
eframe = { version = "0.31.0", default-features = false, features = [
Expand Down
2 changes: 1 addition & 1 deletion crates/brush-android/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![cfg(target_os = "android")]

use jni::sys::{jint, JNI_VERSION_1_6};
use jni::sys::{JNI_VERSION_1_6, jint};
use std::os::raw::c_void;
use std::sync::Arc;

Expand Down
8 changes: 2 additions & 6 deletions crates/brush-app/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::panels::{DatasetPanel, PresetsPanel, ScenePanel, StatsPanel, TracingP
use brush_dataset::Dataset;
use brush_process::data_source::DataSource;
use brush_process::process_loop::{
start_process, ControlMessage, ProcessArgs, ProcessMessage, RunningProcess,
ControlMessage, ProcessArgs, ProcessMessage, RunningProcess, start_process,
};
use brush_render::camera::Camera;
use brush_train::scene::SceneView;
Expand Down Expand Up @@ -73,11 +73,7 @@ impl egui_tiles::Behavior<PaneType> for AppTree {
/// Width of the gap between tiles in a horizontal or vertical layout,
/// and between rows/columns in a grid layout.
fn gap_width(&self, _style: &egui::Style) -> f32 {
if self.zen {
0.0
} else {
0.5
}
if self.zen { 0.0 } else { 0.5 }
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/brush-app/src/channel.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use tokio::sync::mpsc::{channel, Receiver};
use tokio::sync::mpsc::{Receiver, channel};
use tokio_with_wasm::alias as tokio_wasm;

pub fn reactive_receiver<T: Send + 'static>(
Expand Down
Loading

0 comments on commit 9b4fd2d

Please sign in to comment.