What you suggested has been done before - you might find a review of the literature fun if this sort of thing interests you, even if academic papers are pretty dry reading normally.
Also game engines need to do painting very fast
Also game engines need to do painting very fast