Implement rendering only when exporting.
Try to use more advanced compiling options.