Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:50
    dabreegster edited #1283
  • 00:50
    dabreegster edited #1283
  • 00:50
    dabreegster opened #1283
  • Feb 27 20:34
    dvc94ch commented #1271
  • Feb 19 23:19
    icefoxen commented #1271
  • Feb 19 19:06
    jfizz commented #1209
  • Feb 19 09:11
    vinhig opened #1282
  • Feb 19 08:37
    dvc94ch synchronize #1274
  • Feb 19 05:53
    paulrouget opened #1281
  • Feb 19 05:42
    paulrouget unpinned #1167
  • Feb 19 05:42
    paulrouget unpinned #1160
  • Feb 19 05:42
    paulrouget unpinned #1172
  • Feb 17 23:10
    goddessfreya edited #1271
  • Feb 17 22:16
    dvc94ch synchronize #1274
  • Feb 17 19:47
    dvc94ch synchronize #1274
  • Feb 17 18:08
    dvc94ch synchronize #1274
  • Feb 17 18:07
    dvc94ch synchronize #1274
  • Feb 17 17:56
    dvc94ch synchronize #1274
  • Feb 17 17:50
    dvc94ch synchronize #1274
  • Feb 17 17:45
    dvc94ch synchronize #1274
matrixbot
@matrixbot
UndeadLeech on Freenode Oh, sorry. I expected the event loop to be owned.
UndeadLeech on Freenode Which raises the question, why is it not?
heeen on Freenode maybe it could be owned
UndeadLeech on Freenode I'd assume that would fix the error.
heeen on Freenode I don't know. I'm a rust beginner, really, coming from c++
heeen on Freenode and this code is trying to make ashs examples build with winit master
UndeadLeech on Freenode Try removing the RefCell in the event_loop struct type and then the Refcell::new and the borrow_mut.
UndeadLeech on Freenode Then it should work.
heeen on Freenode because at older winit was just not delivering window events in time or at all
UndeadLeech on Freenode I'm not sure who ash is.
UndeadLeech on Freenode Unless you're talking about pokemon that is.
heeen on Freenode UndeadLeech: https://github.com/MaikKlein/ash
heeen on Freenode ok, that seems to work so far. not sure if the full example will still work though.
heeen on Freenode thanks.
heeen on Freenode the second fixme is about the F parameter not living long enough
heeen on Freenode should it be +'static?
UndeadLeech on Freenode I don't see why it wouldn't.
UndeadLeech on Freenode By which I mean I don't immediately see why the events_loop is in a refcell in the example.
heeen on Freenode actually, no it does not work
heeen on Freenode annot move out of self.event_loop which is behind a shared reference
heeen on Freenode without the refcell
matrixbot
@matrixbot
UndeadLeech on Freenode Try taking self instead of &self.
UndeadLeech on Freenode The method will never return anyways.
matrixbot
@matrixbot
gentz > gentz, do you know how with_hardware_acceleration(None) should behave on macOS? Under which circumstances would that accelerate?
UndeadLeech, None would mean don't care, so I guess it might give no hardware acceleration? It should probably prefer to hardware accelerate, but like, I don't know anything about the MacOS backend, so /shrug
matrixbot
@matrixbot
furiouzz stdweb features does already work on winit? https://github.com/rust-windowing/winit/issues/944#issuecomment-575991946
matrixbot
@matrixbot
gentz Pinged ryanisaacg, furiouzz
matrixbot
@matrixbot
furiouzz Thanks gentz
gentz btw, I'd check if master builds, if so, the gamepad branch probably needs a rebase
matrixbot
@matrixbot
furiouzz It already needs a rebase with the Hash Trait missing on instant library
furiouzz I made a pull request to the instant repos and the author accepted. But I saw that on the master branch, we removed the Hash Trait on Event in event.rs
matrixbot
@matrixbot
sebk greetings, so I using winit 0.20 on X11
sebk and trying to draw on Event::RedrawRequested
sebk
eventloop.run(move |event, , control_flow| {
dbg!(&event);
match event {
Event::NewEvents(StartCause::Init) => {
windowed_context.window().request_redraw();
println!("init");
*controlflow = ControlFlow::Poll;
}
Event::RedrawRequested(
) => {
sebk but that never happens
sebk NewEvents(Init) is emitted
sebk and then WindowEvent { event: Focused }
matrixbot
@matrixbot
UndeadLeech on Freenode You have to requset a redraw yourself.
UndeadLeech on Freenode I'd assume you're expecting to get a RedrawRequested every 1/60 seconds or something?
sebk UndeadLeech: I assume to get it at least once
sebk I thought windowed_context.window().request_redraw(); does request a redraw?
matrixbot
@matrixbot
sebk I tried calling it before entering the event loop, but no luck either
sebk In fact I don't get any further events…
UndeadLeech on Freenode Yeah, request_redraw() should do it.
UndeadLeech on Freenode Wait, you don't get any?
UndeadLeech on Freenode Which platform are you on? If you're not on Wayland, have you tried the examples?
sebk I get NewEvent(Init) and then WindowEvent::Focused
sebk after that nothing
sebk good point. let me clone the repo
sebk I am on ubuntu 18? using x11
matrixbot
@matrixbot
sebk (kde)