Replies: 3 comments 7 replies
-
sorry,this all Code |
Beta Was this translation helpful? Give feedback.
-
Also, there are existing Minecraft clone project as your reference |
Beta Was this translation helpful? Give feedback.
-
I found a library: https://github.com/splashdust/bevy_voxel_world. It may help you. I'm feeling a bit lazy, so let me speak Chinese (since there is Chinese in your code). 我最近也在学习关于render的知识,以下是我的想法 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Just started learning programming, so please forgive my poor code.

Introduction: I intend to use the Bevy engine to create a world generated by noise, but currently, the FPS is very low, and I'm unsure of the reason.
The current generation scope should be 12832128, and the FPS is approximately 18~20 FPS.
I want to know what I need to learn or which demos I can refer to in order to improve the FPS.
Note: Apologies for my poor English; this is the translated text.
Here is all the code from my project:
`use bevy::{
dev_tools::fps_overlay::{FpsOverlayConfig, FpsOverlayPlugin}, prelude::, render::render_resource::Face
};
use bevy_flycam::prelude::;
use fastnoise_lite::*;
#[derive(Component)]
struct Block{
block_id: u32,
block_type: BlockType,
}
#[derive(Component)]
struct BlockType{
block_name: String,
x: u32,
y: u32,
z: u32,
}
fn main() {
App::new()
.add_plugins((
DefaultPlugins,
FpsOverlayPlugin {
config: FpsOverlayConfig {
text_config: TextStyle {
// Here we define size of our overlay
font_size: 50.0,
// We can also change color of the overlay
color: Color::srgb(0.0, 1.0, 0.0),
// If we want, we can use a custom font
font: default(),
},
},
},
PlayerPlugin,
))
.add_systems(Startup, setup)
.run();
}
/// set up a simple 3D scene
fn setup(
mut commands: Commands,
mut meshes: ResMut<Assets>,
mut materials: ResMut<Assets>,
) {
}`
Beta Was this translation helpful? Give feedback.
All reactions