real-time scene optimization