Rudi Schneider

Results 9 comments of Rudi Schneider

I was learning for an exam (which I had today) within the last week, but yeah, I'll work on this in the near future. @rustbot claim

I see! So sometimes individual atoms can be missing in spite of a "+" mask. But can we assume that each (0, 0, 0) atom is in fact just missing...

> Correct. I believe the mask is on the residue level and not the atom level. Ah, true! If I'm not overlooking something, it doesn't seem to be mentioned in...

`Context::new()` also doesn't seem to be thread safe.

The following may be the root issue: "That's because a window (more precisely its OpenGL context) cannot be active in more than one thread at the same time." - https://www.sfml-dev.org/tutorials/2.5/graphics-draw.php...

One partial solution to this would to add a dummy &RenderWindow parameter to Key::is_pressed. This should prevent it from being called in another thread than where the RenderWindow lives, because...

What about adding a `static unique_threadid: OnceCell` containing the thread id of the thread in which a RenderWindow is spawned. And in `RenderWindow::new()` one - sets `unique_threadid` to `thread::current().id()` if...