sunset performance optimizations and resolution stuff