no print in event loop!!!!!!

This commit is contained in:
Quaternions 2023-10-24 21:05:02 -07:00
parent e2fdf9442c
commit 2116621672
2 changed files with 2 additions and 2 deletions

View File

@ -24,6 +24,7 @@ pub fn new<'a>(
crate::compat_worker::INWorker::new(move |ins:Instruction|{ crate::compat_worker::INWorker::new(move |ins:Instruction|{
match ins{ match ins{
Instruction::Resize(size,user_settings)=>{ Instruction::Resize(size,user_settings)=>{
println!("Resizing to {:?}",size);
config.width=size.width.max(1); config.width=size.width.max(1);
config.height=size.height.max(1); config.height=size.height.max(1);
surface.configure(&device,&config); surface.configure(&device,&config);

View File

@ -234,7 +234,7 @@ impl SetupContextSetup{
//the thread that spawns the physics thread //the thread that spawns the physics thread
let mut run_thread=run.into_worker(setup_context); let mut run_thread=run.into_worker(setup_context);
println!("Entering render loop..."); println!("Entering event loop...");
let root_time=std::time::Instant::now(); let root_time=std::time::Instant::now();
event_loop.run(move |event,elwt|{ event_loop.run(move |event,elwt|{
let time=crate::integer::Time::from_nanos(root_time.elapsed().as_nanos() as i64); let time=crate::integer::Time::from_nanos(root_time.elapsed().as_nanos() as i64);
@ -257,7 +257,6 @@ impl SetupContextSetup{
winit::event::WindowEvent::Resized(size),//ignoring scale factor changed for now because mutex bruh winit::event::WindowEvent::Resized(size),//ignoring scale factor changed for now because mutex bruh
window_id:_, window_id:_,
} => { } => {
println!("Resizing to {:?}",size);
run_thread.send(TimedInstruction{time,instruction:RunInstruction::Resize(size)}).unwrap(); run_thread.send(TimedInstruction{time,instruction:RunInstruction::Resize(size)}).unwrap();
} }
winit::event::Event::WindowEvent{event,..}=>match event{ winit::event::Event::WindowEvent{event,..}=>match event{