Skip to content

Commit

Permalink
refactor: delete unused systems
Browse files Browse the repository at this point in the history
  • Loading branch information
cs50victor committed Jan 24, 2024
1 parent 291cfd9 commit 8cfe9ff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 40 deletions.
10 changes: 5 additions & 5 deletions new_media/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ default-run = "new_media"
anyhow = "1.0.75"
async-net = "2.0.0"
base64 = "0.21.5"
bevy = { version = "0.12.0", default-features = false, features = [
"bevy_asset",
"bevy_core_pipeline",
"bevy_render",
] }
bevy_ws_server = { git = "https://github.com/cs50victor/bevy-ws-server.git", branch = "main" }
bevy_gaussian_splatting = { version = "2.0.2", default-features = true }
bevy_panorbit_camera = "0.10.0"
Expand All @@ -23,11 +28,6 @@ serde = { version = "1.0.192", features = ["derive"] }
serde_json = "1.0.108"
wgpu = "0.17.2"
tungstenite = "0.21.0"
bevy = { version = "0.12", default-features = false, features = [
"bevy_asset",
"bevy_core_pipeline",
"bevy_render",
] }

# [target.i686-unknown-linux-gnu.dependencies]
# winit = { version = "0.29.10", default-features = false, features = ["x11"]}
10 changes: 3 additions & 7 deletions new_media/src/frame_capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub mod image_copy {
};
use pollster::FutureExt;
use wgpu::Maintain;
// use wgpu::Maintain;

use std::sync::atomic::{AtomicBool, Ordering};

Expand Down Expand Up @@ -175,9 +174,9 @@ pub mod image_copy {
texture_extent,
);

let render_queue = world.get_resource::<RenderQueue>().unwrap();
let _render_queue = world.get_resource::<RenderQueue>().unwrap();
log::error!("0");
render_queue.submit(std::iter::once(encoder.finish()));
// render_queue.submit(std::iter::once(encoder.finish()));
log::error!("1");
}

Expand All @@ -195,15 +194,12 @@ pub mod scene {
prelude::*,
render::{
camera::RenderTarget,
render_resource::{
Extent3d, TextureDescriptor, TextureDimension, TextureFormat, TextureUsages,
},
renderer::RenderDevice,
},
};

use image::{ImageBuffer, ImageOutputFormat, Rgba, RgbaImage};
// use wgpu::{Extent3d, TextureDescriptor, TextureDimension, TextureFormat, TextureUsages};
use wgpu::{Extent3d, TextureDescriptor, TextureDimension, TextureFormat, TextureUsages};

use super::image_copy::ImageCopier;

Expand Down
4 changes: 0 additions & 4 deletions new_media/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#![feature(ascii_char, async_closure, slice_pattern)]
#[allow(clippy::type_complexity)]
mod controls;
mod frame_capture;
mod server;
mod video;

use bevy_ws_server::WsPlugin;

// use actix_web::{middleware, web::Data, App, HttpServer};

use bevy::{
app::ScheduleRunnerPlugin, core::Name, core_pipeline::tonemapping::Tonemapping, log::LogPlugin,
prelude::*, render::renderer::RenderDevice,
Expand Down
24 changes: 0 additions & 24 deletions new_media/src/video.rs

This file was deleted.

0 comments on commit 8cfe9ff

Please sign in to comment.