What is “Rendercript Optim Level”?

风格不统一 提交于 2019-12-12 05:06:42

问题


Android Studio --> Open Module Settings --> Build Types --> Renderscript Optim Level --> (3) // by default

What is "Rendercript Optim Level" best value?


回答1:


It's best to use the default "optim" level 3.

In the renderscript source, level 3 corresponds to the value llvm::CodeGenOpt::Aggressive in the slang compiler.

It's the argument that sets the level of optimization slang uses to compile the .rs file into the intermediate bitcode (.bc) file that get shipped with your app.

Interestingly, the optim level is included in the script's .bc file, but ignored by the bcc compiler that finishes preparing the script on the device. It just discards the value and sets it to llvm::CodeGenOpt::Aggressive no matter what.

sources:

Where is the RenderScript source code



来源:https://stackoverflow.com/questions/43025223/what-is-rendercript-optim-level

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!