Accelerating legacy applications with spatial computing devices