什么是“ Rendercript Optim Level”? [英] What is “Rendercript Optim Level”?

查看:110
本文介绍了什么是“ Rendercript Optim Level”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android Studio->打开模块设置->构建类型->渲染脚本最佳级别 ->(3) //默认情况下

什么是 Rendercript Optim Level最佳值?

What is "Rendercript Optim Level" best value?

推荐答案

最好使用默认的最佳级别3。

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

在渲染脚本源中,级别3对应于值
slang 编译器。

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

此参数设置优化slang用来将 .rs 文件编译为中间位代码的级别( .bc )文件随应用一起提供。

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.

有趣的是,脚本的 .bc 文件,但忽略,该脚本已在设备上准备好脚本。它只是丢弃该值并将其设置为 llvm :: CodeGenOpt :: Aggressive 无论如何。

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.

来源:

RenderScript源代码在哪里代码

这篇关于什么是“ Rendercript Optim Level”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆