Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upEvents 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? |
Closes servo/webrender#179.
Closes servo/webrender#179.
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 -->
Closes servo/webrender#179.


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.