Skip to content

Commit aec1329

Browse files
Change the default method to CPU on the web
1 parent 7888fe6 commit aec1329

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/app.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,16 @@ impl ParticleApp {
9595
let default_method = if has_compute {
9696
SimulationMethod::ComputeShader
9797
} else {
98-
SimulationMethod::TransformFeedback
98+
// SimulationMethod::TransformFeedback
99+
SimulationMethod::Cpu
99100
};
100101

101102
let surface_format = wgpu_render_state.target_format;
102103

103104
let initial_particles;
104105
let simulation: Box<dyn ParticleSimulation> = match default_method {
105106
SimulationMethod::Cpu => {
106-
initial_particles = 10_000;
107+
initial_particles = 100_000;
107108
Box::new(CpuParticleSimulation::new(
108109
device,
109110
initial_particles,

0 commit comments

Comments
 (0)