Comment by bhargavkk
12 hours ago
Hey, first author here. I do think we could apply a similar formal analysis to games, but this is complicated with the inclusion of depth and perception. This is not a concern in 2D rasterization for web browsers. The target for this sort of analysis would be the scene-graph, which describes how all the various objects are represented in a game spatially, and then you would somehow reduce the scene-graph to 2D modulo the view-port/camera of the game. This is much more complicated than what we did for Skia.
You would also need to do it sixty times a second. Games already try to do the "easy" culling of hidden geo, and you don't automatically know the screen-space bounds of the things you are drawing, like you generally would in Skia.