Hey!
I´m trying to render 128*128 blocks like this:
let material = materials.add(Color::rgb(0.3, 0.5, 0.3).into());
let mesh = meshes.add(Mesh::from(shape::Cube { size: 1.0 }));
for x in 0..128 {
for y in 0..128 {
commands.spawn(
PbrBundle {
mesh: mesh.clone(),
material: material.clone(),
transform: Transform::from_xyz(
x as f32 - 64.0,
0.0,
y as f32 - 64.0,
),
..default()
}
);
}
}
I´m running this on windows using
CPU: AMD Ryzen 5 5600X 6-Core Processor
GPU: Geforce RTX 2070 Super
I get around 70 fps when all the blocks are in the view (90 in release mode).
I expected the performance to be way better as the amount of triangles is pretty low.
Am i simply doing something wrong?