Carmack-level graphics optimization.