Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Track the validity of the frame and hit tester to avoid redundant work. #3043
This lays the ground work for keeping track of the validity of the current frame and hit tester to allow only re-building them when something invalidates them.
This initial commit only skips redundant frame builds (typically when a scene is built and the vsync triggered transactions that follows doesn't scroll or use async animations). But after we separate building the frame and the hit tester, we'll be able to improve upon this by lazily building the frame and avoid double frame builds during scrolling and animations as well.
Also worth exploring as a followup: query the visibility of updated images so that we can skip frame building and rendering altogether if something animates off screen.