Add a generation number to rasterized events to manage rasterization cache