madsmtm on update-contact-links
madsmtm on master
Update contact links (#1379) (compare)
maroider on master
Added missing character in word… (compare)
:point_up: Edit: edit: resolved (see below)
Question about window resize events & scale factors:
I create a window that is 800x600 on a monitor with scale factor 1.0. I then click, drag, and drop the window to a different monitor with scale factor 1.5. Here's the (somewhat filtered) events in the order they get consumed by my event loop:
winit v0.25, Linux/x11
block_onis fairly easy to use: https://docs.rs/futures/0.3.17/futures/executor/fn.block_on.html, and there's more complex things there too if you need more control.
Since I joined this room there have been some discussions which revolved around the constraints the event loop imposes on one's own implementation. I now completely get that this is how OSes work and winit is really just wrapping this in safe cross platform rust code, but I still find this unpleasant to work with (by the OSes, not by winit). Anyhow, I just found this GIST on Tokio's Gitter, which I found to be a clean enough route to deal with this
I am just sharing this if anyone here finds this interesting and maybe it will be useful for the next person who needs an idea for moving control to their own code
Gpustructure into the event loop closure
objcto a proper level first, and need to get my studies in order. Maybe in a few months
Hey! I have a question about exiting the EventLoop:
I am following a tutorial on wgpu (https://sotrh.github.io/learn-wgpu/) and it uses winit 0.25
I got to the end of the Surface part (https://sotrh.github.io/learn-wgpu/beginner/tutorial2-surface/#challenge)
but when I get to
*control_flow = ControlFlow::Exit the window closes but the app is still waiting in the terminal. I was unable to find the proper way to exit a winit app as anything I put after
event_loop.run() is unreachable code, returning after setting the control_flow also doesn't seem to do any difference. The example code does the same, but there seems to be no explanation in the tutorial for this. Do you know what my issue may be or what i am missing?
ps I am using Linux/X11
but the app is still waiting in the terminal
so you're saying the program never stops running?
v0.25.0or did you just use