A framework to optimize away3d and starling integrations