-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird jittery behavior when background()
is not called in draw()
while using the skia renderer.
#425
Comments
Thank you for submitting your first issue to p5py |
This seems to be related to some bug with swapping of frame buffer and this was not the case earlier. I think a good strategy would be to go a few commits back and identify for the buggy commit |
6b079cf -- This is the commit that produced this bug. Things are working fine before this commit. Would you like to do a fix for this ? |
We only need to disable this line - 6b079cf#diff-7a18b014da674a8330d705e9c488589c23a673a0062af59d7d1e1270181f673aL80 and test it on windows and then check for a possible fix. |
Cool! I'll get in on this. |
I'm slightly confused 😅 Adding back all three of those lines seems to work (yet to test on windows though). |
Adding back all three of those lines seems to error out on windows. This is the error that I get:
Adding back just the first two lines and commenting out |
My initial thought was that maybe the buffers were being swapped more than once in a single frame due to some bug. But I've just tested it and that doesn't seem to be the case. Unrelated note: I don't quite understand the role |
Sorry for all the confusion. I removed those 3 lines to remove the error that you were facing. Those lines are some configurations for GLFW related to anti-aliasing etc. you can read about them in the glfw docs.
This is what we have to fix for. Research why its throwing error on windows and workarounds for it. |
#399 - more context for you. |
Thanks for the clarification! I know what to do now :D |
Closed by #446 |
Describe the bug
When
background()
is not called indraw()
, there is a weird jittery behavior that is observed while the graphics are being rendered using the skia renderer.To Reproduce
Run an example program:
Expected behavior
Smooth rendering without any weird jittery behavior.
Screen capture
jittery.mov
System information:
Additional context
#423 (comment)
The text was updated successfully, but these errors were encountered: