-
Notifications
You must be signed in to change notification settings - Fork 279
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
Events not received during a RAF loop #179
Comments
@paulrouget Nice test case! However, it seems to be working correctly on Linux - I get a solid 60 fps reported and every mouse movement results in a new dot on the screen. Perhaps @pcwalton could take a look on mac and see if it's related to the mac event loop? |
@paulrouget BTW, you may find adding -Z wr-stats useful when debugging / profiling rAF or other performance related issues on WebRender. It lets you see the frame rate, when paints occur, and some basic stats about the scene. |
Glutin only send Interesting finding: if I run servo with the option |
@pcwalton any idea of what's going on? |
cocoa: Post Awakened events at the end of the queue to avoid floods. Closes servo/webrender#179. r? @glennw <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/glutin/72) <!-- Reviewable:end -->
Something like this:
… will prevent any window events to be received. Can't resize the window and key & mouse events are not received for example. But the UI is properly rendered and updated.
The exact code I'm using is:
I'm not sure it's a Webrender issue. Without Webrender, some events are received, but many mousemove are missing. And the CPU spike at 120% (50% with Webrender).
If it's not WR specific, let me know, I can move this issue to servo/servo.
The text was updated successfully, but these errors were encountered: