You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resizing a pixel app on OSX results in a black screen until the mouse is released. I believe this is because glfw blocks in PollEvents during the resize, so this loop won't clear the background during that period.
for !win.Closed() {
win.Clear(colornames.Lightgrey)
win.Update()
}
However, as mentioned in glfw/glfw#408, one can get the desired behavior by rendering in a refresh callback. Is there anyway for pixel to incorporate this behavior?
The text was updated successfully, but these errors were encountered:
Hi! Currently, there is no way incorporate this behavior using Pixel. I don't think it ever will. I understand it can be useful, but Pixel's I/O API is not event based and thus this kind of callback falls out of scope.
Resizing a pixel app on OSX results in a black screen until the mouse is released. I believe this is because glfw blocks in PollEvents during the resize, so this loop won't clear the background during that period.
However, as mentioned in glfw/glfw#408, one can get the desired behavior by rendering in a refresh callback. Is there anyway for pixel to incorporate this behavior?
The text was updated successfully, but these errors were encountered: