# boost\_gpu

Source: [https://docs.qualcomm.com/doc/80-PK177-134Y/topic/qape_boost_gpu.html](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/qape_boost_gpu.html)

将 GPU 上的 GPU 负载增加一定的百分比，具体值由输入参数 boost\_val 指定。API 调用的持续时间为 2 s。当应用程序预计 GPU 负载会瞬时增加时，需要使用此 API。例如，在 GPU 任务繁重的游戏中的场景切换。

boost_gpu()Copy to clipboard

注意：

持续提速可能更耗电，并可能影响整体电池使用时间。建议在预计 GPU 工作负载会突然增加时使用。

注释： 此 API 在 10 秒内只能调用 3 次。

注释： boost\_gpu API 仅供 OEM 使用。不支持第三方使用。

## 参数

| 参数 | API 类型 | 数据类型 | 说明 |
| --- | --- | --- | --- |
| boost\_val | Java | int | 将 GPU 负载率增加 boost\_val%<br><br><br>有效范围为 1% 至 100% |
| boost\_val | 原生 | uint8 | 将 GPU 负载率增加 boost\_val%<br><br><br>有效范围为 1% 至 100% |
|  |  |  |  |

## 返回结果

| API 类型 | 返回结果 | 说明 |
| --- | --- | --- |
| Java | int | <ul class="ul"><br>                <li class="li">0 - 成功</li><br><br>                <li class="li">-1 – 提速请求失败</li><br><br>                <li class="li">-2 - 建立会话失败；确认在此 API 之前调用了 API set_pkg 名称</li><br><br>              <li class="li">-3 - 请求提速失败；在 10 秒内超过了允许的提速次数 (3)</li><br><br>              </ul> |
| 原生 | int8 | <ul class="ul"><br>                <li class="li">0 - 成功</li><br><br>                <li class="li">-1 – 提速请求失败</li><br><br>                <li class="li">-2 - 建立会话失败；确认在此 API 之前调用了 API set_pkg 名称</li><br><br>              <li class="li">-3 - 请求提速失败；在 10 秒内超过了允许的提速次数 (3)</li><br><br>              </ul> |
|  |  |  |

**上一级主题：** [QAPE API](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/qape_api.html)

Last Published: Jun 22, 2023

[Previous Topic
boost\_cpu](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/qape_boost_cpu.md) [Next Topic
hint\_low\_latency](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/qape_hint_low_latency.md)