## 概述

PhonePC/2in1Tablet

声明游戏场景感知的类型及相关接口。

**引用文件：** <GameServiceKit/game\_performance.h>

**库：** libgame\_performance.z.so

**系统能力：** SystemCapability.GameService.GamePerformance

**起始版本：** 5.0.2(14)

**相关模块：** [GamePerformance](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance)

## 汇总

PhonePC/2in1Tablet

### 类型定义

PhonePC/2in1Tablet

展开

| 名称 | 描述 |
| --- | --- |
| typedef struct [GamePerformance\_DeviceInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfo) [GamePerformance\_DeviceInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfo) | 定义设备性能信息。 |
| typedef struct [GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo) [GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo) | 定义GPU性能信息。 |
| typedef struct [GamePerformance\_CpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpuinfo) [GamePerformance\_CpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpuinfo) | 定义CPU性能信息。 |
| typedef struct [GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo) [GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo) | 定义温度信息。 |
| typedef struct [GamePerformance\_ThermalInfoQueryParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfoqueryparameters) [GamePerformance\_ThermalInfoQueryParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfoqueryparameters) | 定义温度信息的查询参数。 |
| typedef struct [GamePerformance\_InitParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_initparameters) [GamePerformance\_InitParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_initparameters) | 定义初始化参数。 |
| typedef struct [GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo) [GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo) | 定义游戏包信息。 |
| typedef struct [GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) [GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) | 定义游戏配置信息。 |
| typedef struct [GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) [GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) | 定义游戏场景信息。 |
| typedef struct [GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo) [GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo) | 定义游戏网络信息。 |
| typedef struct [GamePerformance\_PlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_playerinfo) [GamePerformance\_PlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_playerinfo) | 定义游戏玩家信息。 |
| typedef enum [GamePerformance\_EngineType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_enginetype-1) [GamePerformance\_EngineType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_enginetype) | 定义游戏引擎类型。 |
| typedef enum [GamePerformance\_GameType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gametype-1) [GamePerformance\_GameType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gametype) | 定义游戏类型。 |
| typedef enum [GamePerformance\_PictureQualityLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_picturequalitylevel-1) [GamePerformance\_PictureQualityLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_picturequalitylevel) | 定义画质等级。 |
| typedef enum [GamePerformance\_SceneImportanceLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneimportancelevel-1) [GamePerformance\_SceneImportanceLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneimportancelevel) | 定义游戏场景重要程度。 |
| typedef enum [GamePerformance\_CpuLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpulevel-1) [GamePerformance\_CpuLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpulevel) | 定义CPU等级。 |
| typedef enum [GamePerformance\_GpuLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpulevel-1) [GamePerformance\_GpuLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpulevel) | 定义GPU等级。 |
| typedef enum [GamePerformance\_DdrLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_ddrlevel-1) [GamePerformance\_DdrLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_ddrlevel) | 定义DDR等级。 |
| typedef enum [GamePerformance\_NetLoad](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netload-1) [GamePerformance\_NetLoad](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netload) | 定义网络负载等级。 |
| typedef enum [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode) | 定义错误码。 |
| typedef enum [GamePerformance\_DeviceInfoType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfotype-1) [GamePerformance\_DeviceInfoType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfotype) | 定义设备性能信息类型。 |
| typedef void(\*[GamePerformance\_ThermalLevelChangedCallback](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermallevelchangedcallback)) ([GamePerformance\_DeviceInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfo) \*deviceInfo, void \*userData) | [HMS\_GamePerformance\_RegisterThermalLevelChangedCallback](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_registerthermallevelchangedcallback)中使用的回调函数。当温度等级改变并且温度等级小于3档时，该函数将被调用一次。当温度等级大于或等于3档时，该函数将每10秒调用一次。 |

### 枚举

PhonePC/2in1Tablet

展开

| 名称 | 描述 |
| --- | --- |
| [GamePerformance\_EngineType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_enginetype-1) {  GAME\_PERFORMANCE\_ENGINE\_TYPE\_UNITY = 1,  GAME\_PERFORMANCE\_ENGINE\_TYPE\_UNREAL = 2,  GAME\_PERFORMANCE\_ENGINE\_TYPE\_MESSIAH = 3,  GAME\_PERFORMANCE\_ENGINE\_TYPE\_COCOS = 4,  GAME\_PERFORMANCE\_ENGINE\_TYPE\_OTHERS = 200  } | 此枚举描述引擎类型。 |
| [GamePerformance\_GameType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gametype-1) {  GAME\_PERFORMANCE\_GAME\_TYPE\_MOBA = 1,  GAME\_PERFORMANCE\_GAME\_TYPE\_RPG = 2,  GAME\_PERFORMANCE\_GAME\_TYPE\_FPS = 3,  GAME\_PERFORMANCE\_GAME\_TYPE\_FTG = 4,  GAME\_PERFORMANCE\_GAME\_TYPE\_RAC = 5,  GAME\_PERFORMANCE\_GAME\_TYPE\_OTHERS = 200  } | 此枚举描述游戏类型。 |
| [GamePerformance\_PictureQualityLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_picturequalitylevel-1) {  GAME\_PERFORMANCE\_PQL\_SMOOTH = 1,  GAME\_PERFORMANCE\_PQL\_BALANCED = 2,  GAME\_PERFORMANCE\_PQL\_HD = 3,  GAME\_PERFORMANCE\_PQL\_HDR = 4,  GAME\_PERFORMANCE\_PQL\_UHD = 5  } | 此枚举描述画质等级。 |
| [GamePerformance\_SceneImportanceLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneimportancelevel-1) {  GAME\_PERFORMANCE\_SIL\_LEVEL1 = 1,  GAME\_PERFORMANCE\_SIL\_LEVEL2 = 2,  GAME\_PERFORMANCE\_SIL\_LEVEL3 = 3,  GAME\_PERFORMANCE\_SIL\_LEVEL4 = 4,  GAME\_PERFORMANCE\_SIL\_LEVEL5 = 5  } | 此枚举描述场景重要程度。 |
| [GamePerformance\_CpuLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpulevel-1) {  GAME\_PERFORMANCE\_CPU\_LEVEL\_LOW = 1,  GAME\_PERFORMANCE\_CPU\_LEVEL\_MIDDLE = 2,  GAME\_PERFORMANCE\_CPU\_LEVEL\_HIGH = 3  } | 此枚举描述CPU等级。 |
| [GamePerformance\_GpuLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpulevel-1) {  GAME\_PERFORMANCE\_GPU\_LEVEL\_LOW = 1,  GAME\_PERFORMANCE\_GPU\_LEVEL\_MIDDLE = 2,  GAME\_PERFORMANCE\_GPU\_LEVEL\_HIGH = 3  } | 此枚举描述GPU等级。 |
| [GamePerformance\_DdrLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_ddrlevel-1) {  GAME\_PERFORMANCE\_DDR\_LEVEL\_LOW = 1,  GAME\_PERFORMANCE\_DDR\_LEVEL\_MIDDLE = 2,  GAME\_PERFORMANCE\_DDR\_LEVEL\_HIGH = 3  } | 此枚举描述DDR等级。 |
| [GamePerformance\_NetLoad](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netload-1) {  GAME\_PERFORMANCE\_NET\_LOAD\_LIGHT = 1,  GAME\_PERFORMANCE\_NET\_LOAD\_MODERATE = 2,  GAME\_PERFORMANCE\_NET\_LOAD\_HEAVY = 3  } | 此枚举描述网络负载等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) {  GAME\_PERFORMANCE\_SUCCESS = 0,  GAME\_PERFORMANCE\_PARAM\_INVALID = 401,  GAME\_PERFORMANCE\_INTERNAL\_ERROR = 1010300001,  GAME\_PERFORMANCE\_AUTH\_FAILED = 1010300002,  GAME\_PERFORMANCE\_INVALID\_REQUEST = 1010300003,  GAME\_PERFORMANCE\_PARAM\_ERROR = 1010300004  } | 此枚举描述错误码。  GAME\_PERFORMANCE\_PARAM\_ERROR 从6.0.2(22)开始支持。 |
| [GamePerformance\_DeviceInfoType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfotype-1) {  GAME\_PERFORMANCE\_DEVICEINFO\_TYPE\_THERMAL = 0,  GAME\_PERFORMANCE\_DEVICEINFO\_TYPE\_GPU = 1,  GAME\_PERFORMANCE\_DEVICEINFO\_TYPE\_CPU = 2  } | 此枚举描述设备性能信息类型。  GAME\_PERFORMANCE\_DEVICEINFO\_TYPE\_CPU 从6.0.2(22)开始支持。 |

### 函数

PhonePC/2in1Tablet

展开

| 名称 | 描述 |
| --- | --- |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_CreateInitParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_createinitparameters) ([GamePerformance\_InitParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_initparameters) \*\*initParameters) | 创建[GamePerformance\_InitParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_initparameters)实例，该实例在[HMS\_GamePerformance\_Init](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_init)方法中使用。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DestroyInitParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_destroyinitparameters) ([GamePerformance\_InitParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_initparameters) \*\*initParameters) | 当[GamePerformance\_InitParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_initparameters)实例不再使用，销毁该实例。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_InitParameters\_SetBundleName](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_initparameters_setbundlename) ([GamePerformance\_InitParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_initparameters) \*initParameters, const char \*bundleName) | 为[GamePerformance\_InitParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_initparameters)实例设置包名。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_InitParameters\_SetAppVersion](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_initparameters_setappversion) ([GamePerformance\_InitParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_initparameters) \*initParameters, const char \*appVersion) | 为[GamePerformance\_InitParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_initparameters)实例设置版本号。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_Init](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_init) ([GamePerformance\_InitParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_initparameters) \*initParameters) | 初始化游戏场景感知。  **说明**：调用HMS\_GamePerformance\_Init前，必须已设置bundleName，appVersion。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_CreatePackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_createpackageinfo) ([GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo) \*\*packageInfo) | 创建[GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo)实例，该实例在[HMS\_GamePerformance\_UpdatePackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_updatepackageinfo)方法中使用。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DestroyPackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_destroypackageinfo) ([GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo) \*\*packageInfo) | 当[GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo)实例不再使用，销毁该实例。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_PackageInfo\_SetBundleName](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_packageinfo_setbundlename) ([GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo) \*packageInfo, const char \*bundleName) | 为[GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo)实例设置包名。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_PackageInfo\_SetAppVersion](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_packageinfo_setappversion) ([GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo) \*packageInfo, const char \*appVersion) | 为[GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo)实例设置版本号。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_PackageInfo\_SetEngineType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_packageinfo_setenginetype) ([GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo) \*packageInfo, const [GamePerformance\_EngineType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_enginetype-1) engineType) | 为[GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo)实例设置引擎类型。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_PackageInfo\_SetEngineVersion](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_packageinfo_setengineversion) ([GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo) \*packageInfo, const char \*engineVersion) | 为[GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo)实例设置引擎版本号。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_PackageInfo\_SetGameType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_packageinfo_setgametype) ([GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo) \*packageInfo, const [GamePerformance\_GameType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gametype-1) gameType) | 为[GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo)实例设置游戏类型。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_PackageInfo\_SetVulkanSupported](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_packageinfo_setvulkansupported) ([GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo) \*packageInfo, const bool vulkanSupported) | 为[GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo)实例设置是否支持vulkan。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_UpdatePackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_updatepackageinfo) ([GamePerformance\_PackageInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_packageinfo) \*packageInfo) | 更新游戏包信息。  **说明**：调用HMS\_GamePerformance\_UpdatePackageInfo前，必须已设置bundleName，appVersion。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_CreateConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_createconfiginfo) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*\*configInfo) | 创建[GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo)实例，该实例在[HMS\_GamePerformance\_UpdateConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_updateconfiginfo)方法中使用。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DestroyConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_destroyconfiginfo) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*\*configInfo) | 当[GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo)实例不再使用，销毁该实例。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ConfigInfo\_SetMaxPictureQualityLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_configinfo_setmaxpicturequalitylevel) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*configInfo, const [GamePerformance\_PictureQualityLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_picturequalitylevel-1) maxPictureQualityLevel) | 为[GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo)实例设置最大画质等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ConfigInfo\_SetCurrentPictureQualityLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_configinfo_setcurrentpicturequalitylevel) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*configInfo, const [GamePerformance\_PictureQualityLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_picturequalitylevel-1) currentPictureQualityLevel) | 为[GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo)实例设置当前画质等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ConfigInfo\_SetMaxFrameRate](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_configinfo_setmaxframerate) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*configInfo, const int64\_t maxFrameRate) | 为[GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo)实例设置最大帧率。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ConfigInfo\_SetCurrentFrameRate](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_configinfo_setcurrentframerate) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*configInfo, const int64\_t currentFrameRate) | 为[GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo)实例设置当前帧率。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ConfigInfo\_SetMaxResolution](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_configinfo_setmaxresolution) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*configInfo, const char \*maxResolution) | 为[GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo)实例设置最大分辨率。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ConfigInfo\_SetCurrentResolution](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_configinfo_setcurrentresolution) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*configInfo, const char \*currentResolution) | 为[GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo)实例设置当前分辨率。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ConfigInfo\_SetAntiAliasingEnabled](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_configinfo_setantialiasingenabled) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*configInfo, const bool antiAliasingEnabled) | 为[GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo)实例设置是否开启抗锯齿。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ConfigInfo\_SetShadowEnabled](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_configinfo_setshadowenabled) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*configInfo, const bool shadowEnabled) | 为[GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo)实例设置是否开启阴影。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ConfigInfo\_SetMultithreadingEnabled](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_configinfo_setmultithreadingenabled) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*configInfo, const bool multithreadingEnabled) | 为[GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo)实例设置开启多线程。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ConfigInfo\_SetParticleEnabled](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_configinfo_setparticleenabled) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*configInfo, const bool particleEnabled) | 为[GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo)实例设置粒子效果。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ConfigInfo\_SetHdModeEnabled](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_configinfo_sethdmodeenabled) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*configInfo, const bool hdModeEnabled) | 为[GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo)实例设置开启高清模式。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_UpdateConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_updateconfiginfo) ([GamePerformance\_ConfigInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_configinfo) \*configInfo) | 更新游戏配置信息。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_CreateSceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_createsceneinfo) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*\*sceneInfo) | 创建[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例，该实例在[HMS\_GamePerformance\_UpdateSceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_updatesceneinfo)方法中使用。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DestroySceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_destroysceneinfo) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*\*sceneInfo) | 当[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例不再使用，销毁该实例。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetSceneID](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setsceneid) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const int64\_t sceneID) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置场景ID。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetDescription](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setdescription) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const char \*description) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置场景描述。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetSubSceneID](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setsubsceneid) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const char \*subSceneID) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置子场景ID。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetSubDescription](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setsubdescription) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const char \*subDescription) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置子场景描述。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetImportanceLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setimportancelevel) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const [GamePerformance\_SceneImportanceLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneimportancelevel-1) importanceLevel) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置场景重要程度。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetSceneFrequency](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setscenefrequency) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const int64\_t sceneFrequency) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置该场景在一局游戏中出现的次数。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetSceneTime](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setscenetime) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const int64\_t sceneTime) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置场景持续时间。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetRecommendedCpuLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setrecommendedcpulevel) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const [GamePerformance\_CpuLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpulevel-1) recommendedCpuLevel) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置推荐的CPU等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetRecommendedGpuLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setrecommendedgpulevel) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const [GamePerformance\_GpuLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpulevel-1) recommendedGpuLevel) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置推荐的GPU等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetRecommendedDdrLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setrecommendedddrlevel) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const [GamePerformance\_DdrLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_ddrlevel-1) recommendedDdrLevel) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置推荐的DDR等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetMaxFrameRate](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setmaxframerate) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const int64\_t maxFrameRate) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置场景最大帧率。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetCurrentFrameRate](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setcurrentframerate) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const int64\_t currentFrameRate) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置场景当前帧率。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetKeyThread](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setkeythread) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const char \*keyThread) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置关键线程。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetDrawCallCount](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setdrawcallcount) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const int64\_t drawCallCount) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置每帧的平均Drawcall数。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetVertexCount](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setvertexcount) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const int64\_t vertexCount) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置每帧的平均模型顶点数。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetTriangleCount](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_settrianglecount) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const int64\_t triangleCount) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置每帧的平均模型三角形数。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetShaderCount](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setshadercount) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const int64\_t shaderCount) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置每帧的平均shader数量。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetTextureCount](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_settexturecount) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const int64\_t textureCount) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置每帧的平均纹理数量。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetMeshCount](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setmeshcount) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const int64\_t meshCount) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置每帧的平均mesh数量。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetChannelCount](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setchannelcount) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const int64\_t channelCount) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置每帧渲染的通道数。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_SceneInfo\_SetParticipantCount](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_sceneinfo_setparticipantcount) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo, const int64\_t participantCount) | 为[GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo)实例设置场景下的同屏人数。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_UpdateSceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_updatesceneinfo) ([GamePerformance\_SceneInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_sceneinfo) \*sceneInfo) | 更新游戏场景信息。  **说明**：调用HMS\_GamePerformance\_UpdateSceneInfo前，必须已设置sceneID，importanceLevel。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_CreateNetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_createnetinfo) ([GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo) \*\*netInfo) | 创建[GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo)实例，该实例在[HMS\_GamePerformance\_UpdateNetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_updatenetinfo)方法中使用。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DestroyNetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_destroynetinfo) ([GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo) \*\*netInfo) | 当[GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo)实例不再使用，销毁该实例。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_NetInfo\_SetTotalLatency](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_netinfo_settotallatency) ([GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo) \*netInfo, const int64\_t total) | 为[GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo)实例设置总网络时延。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_NetInfo\_SetUplinkLatency](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_netinfo_setuplinklatency) ([GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo) \*netInfo, const int64\_t up) | 为[GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo)实例设置上行网络时延。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_NetInfo\_SetDownlinkLatency](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_netinfo_setdownlinklatency) ([GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo) \*netInfo, const int64\_t down) | 为[GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo)实例设置下行网络时延。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_NetInfo\_SetServerLatency](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_netinfo_setserverlatency) ([GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo) \*netInfo, const int64\_t server) | 为[GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo)实例设置服务器网络时延。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_NetInfo\_SetNetLoad](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_netinfo_setnetload) ([GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo) \*netInfo, const [GamePerformance\_NetLoad](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netload-1) netLoad) | 为[GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo)实例设置网络负载。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_UpdateNetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_updatenetinfo) ([GamePerformance\_NetInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_netinfo) \*netInfo) | 更新游戏网络信息。  **说明**：调用HMS\_GamePerformance\_UpdateNetInfo前必须已设置totalLatency。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_CreatePlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_createplayerinfo) ([GamePerformance\_PlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_playerinfo) \*\*playerInfo) | 创建[GamePerformance\_PlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_playerinfo)实例，该实例在[HMS\_GamePerformance\_UpdatePlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_updateplayerinfo)方法中使用。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DestroyPlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_destroyplayerinfo) ([GamePerformance\_PlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_playerinfo) \*\*playerInfo) | 当[GamePerformance\_PlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_playerinfo)实例不再使用，销毁该实例。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_PlayerInfo\_SetGamePlayerId](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_playerinfo_setgameplayerid) ([GamePerformance\_PlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_playerinfo) \*playerInfo, const char \*gamePlayerId) | 为[GamePerformance\_PlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_playerinfo)实例设置游戏玩家ID。  **说明**：gamePlayerId、teamPlayerId和thirdOpenId不能同时为空。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_PlayerInfo\_SetTeamPlayerId](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_playerinfo_setteamplayerid) ([GamePerformance\_PlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_playerinfo) \*playerInfo, const char \*teamPlayerId) | 为[GamePerformance\_PlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_playerinfo)实例设置团队玩家ID。  **说明**：gamePlayerId、teamPlayerId和thirdOpenId不能同时为空。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_PlayerInfo\_SetThirdOpenId](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_playerinfo_setthirdopenid) ([GamePerformance\_PlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_playerinfo) \*playerInfo, const char \*thirdOpenId) | 为[GamePerformance\_PlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_playerinfo)实例设置游戏官方账号。  **说明**：gamePlayerId、teamPlayerId和thirdOpenId不能同时为空。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_UpdatePlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_updateplayerinfo) ([GamePerformance\_PlayerInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_playerinfo) \*playerInfo) | 更新游戏玩家信息。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_RegisterThermalLevelChangedCallback](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_registerthermallevelchangedcallback) ([GamePerformance\_DeviceInfoType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfotype-1) \*types[], size\_t size, [GamePerformance\_ThermalLevelChangedCallback](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermallevelchangedcallback) callback, void \*userData) | 订阅温度变化事件，注册温度变化回调，当达到触发点时，将调用回调函数。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_UnregisterThermalLevelChangedCallback](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_unregisterthermallevelchangedcallback) ([GamePerformance\_ThermalLevelChangedCallback](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermallevelchangedcallback) callback) | 取消注册指定温度变化回调。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_UnregisterAllThermalLevelChangedCallbacks](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_unregisterallthermallevelchangedcallbacks) (void) | 取消注册所有温度变化回调。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_CreateThermalInfoQueryParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_createthermalinfoqueryparameters) ([GamePerformance\_ThermalInfoQueryParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfoqueryparameters) \*\*parameters) | 创建[GamePerformance\_ThermalInfoQueryParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfoqueryparameters)实例，该实例在[HMS\_GamePerformance\_QueryThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_querythermalinfo)方法中使用。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DestroyThermalInfoQueryParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_destroythermalinfoqueryparameters) ([GamePerformance\_ThermalInfoQueryParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfoqueryparameters) \*\*parameters) | 当[GamePerformance\_ThermalInfoQueryParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfoqueryparameters)实例不再使用，销毁该实例。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ThermalInfoQueryParameters\_SetNeedsPrediction](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_thermalinfoqueryparameters_setneedsprediction) ([GamePerformance\_ThermalInfoQueryParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfoqueryparameters) \*parameters, const bool needsPrediction) | 为[GamePerformance\_ThermalInfoQueryParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfoqueryparameters)实例设置是否需要预测温升趋势。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ThermalInfoQueryParameters\_SetTargetThermalLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_thermalinfoqueryparameters_settargetthermallevel) ([GamePerformance\_ThermalInfoQueryParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfoqueryparameters) \*parameters, const int32\_t targetThermalLevel) | 为[GamePerformance\_ThermalInfoQueryParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfoqueryparameters)实例设置预测温升趋势的目标温度等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_QueryThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_querythermalinfo) ([GamePerformance\_ThermalInfoQueryParameters](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfoqueryparameters) \*parameters, [GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo) \*\*thermalInfo) | 查询温度信息。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DestroyThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_destroythermalinfo) ([GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo) \*\*thermalInfo) | 当[GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo)实例不再使用，销毁该实例。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_QueryGpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_querygpuinfo) ([GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo) \*\*gpuInfo) | 查询GPU性能信息。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DestroyGpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_destroygpuinfo) ([GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo) \*\*gpuInfo) | 当[GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo)实例不再使用，销毁该实例。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_QueryCpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_querycpuinfo) ([GamePerformance\_CpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpuinfo) \*\*cpuInfo) | 查询CPU性能信息。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DestroyCpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_destroycpuinfo) ([GamePerformance\_CpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpuinfo) \*\*cpuInfo) | 当[GamePerformance\_CpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpuinfo)实例不再使用，销毁该实例。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DeviceInfo\_GetThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_deviceinfo_getthermalinfo) ([GamePerformance\_DeviceInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfo) \*deviceInfo, [GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo) \*\*thermalInfo) | 从设备性能信息[GamePerformance\_DeviceInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfo)中获取温度信息[GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo)。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ThermalInfo\_GetThermalMargin](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_thermalinfo_getthermalmargin) ([GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo) \*thermalInfo, int32\_t \*thermalMargin) | 从温度信息[GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo)中获取温度时间裕量。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ThermalInfo\_GetThermalTrend](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_thermalinfo_getthermaltrend) ([GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo) \*thermalInfo, int32\_t \*thermalTrend) | 从[GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo)中获取温升趋势。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ThermalInfo\_GetThermalLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_thermalinfo_getthermallevel) ([GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo) \*thermalInfo, int32\_t \*thermalLevel) | 从[GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo)中获取温度等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ThermalInfo\_GetRecommendNormalizedCurrent](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_thermalinfo_getrecommendnormalizedcurrent) ([GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo) \*thermalInfo, int32\_t \*recommendCurrent) | 从[GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo)中获取系统建议的工作电流。若当前的工作电流高于此值，温升趋势thermalTrend会大于0，设备有发烫风险。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ThermalInfo\_GetNowNormalizedCurrent](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_thermalinfo_getnownormalizedcurrent) ([GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo) \*thermalInfo, int32\_t \*nowCurrent) | 从[GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo)中获取当前的工作电流。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_ThermalInfo\_GetRecommendMaxNormalizedCurrent](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_thermalinfo_getrecommendmaxnormalizedcurrent) ([GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo) \*thermalInfo, int32\_t \*recommendMaxCurrent) | 从[GamePerformance\_ThermalInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_thermalinfo)中获取系统建议的最大工作电流。若当前的工作电流高于此值，设备会立即发烫。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DeviceInfo\_GetGpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_deviceinfo_getgpuinfo) ([GamePerformance\_DeviceInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfo) \*deviceInfo, [GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo) \*\*gpuInfo) | 从设备性能信息[GamePerformance\_DeviceInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfo)中获取GPU性能信息[GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo)。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_GpuInfo\_GetGpuLoadLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_gpuinfo_getgpuloadlevel) ([GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo) \*gpuInfo, int32\_t \*gpuLoadLevel) | 从[GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo)中获取GPU负载信息。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_GpuInfo\_GetVertexLoadLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_gpuinfo_getvertexloadlevel) ([GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo) \*gpuInfo, int32\_t \*vertexLoadLevel) | 从[GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo)中获取GPU顶点处理负载等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_GpuInfo\_GetFragmentLoadLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_gpuinfo_getfragmentloadlevel) ([GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo) \*gpuInfo, int32\_t \*fragmentLoadLevel) | 从[GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo)中获取GPU片元处理负载等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_GpuInfo\_GetTextureLoadLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_gpuinfo_gettextureloadlevel) ([GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo) \*gpuInfo, int32\_t \*textureLoadLevel) | 从[GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo)中获取GPU纹理处理负载等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_GpuInfo\_GetBandwidthLoadLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_gpuinfo_getbandwidthloadlevel) ([GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo) \*gpuInfo, int32\_t \*bandwidthLoadLevel) | 从[GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo)中获取GPU带宽负载等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_GpuInfo\_GetCurrentFrequency](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_gpuinfo_getcurrentfrequency) ([GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo) \*gpuInfo, int32\_t \*currentFrequency) | 从[GamePerformance\_GpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_gpuinfo)中获取GPU频点信息。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DeviceInfo\_GetCpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_deviceinfo_getcpuinfo) ([GamePerformance\_DeviceInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfo) \*deviceInfo, [GamePerformance\_CpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpuinfo) \*\*cpuInfo) | 从设备性能信息[GamePerformance\_DeviceInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfo)中获取CPU性能信息[GamePerformance\_CpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpuinfo)。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_CpuInfo\_GetCpuLoadLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_cpuinfo_getcpuloadlevel) ([GamePerformance\_CpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpuinfo) \*cpuInfo, int32\_t \*cpuLoadLevel) | 从[GamePerformance\_CpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpuinfo)中获取CPU负载整体等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_CpuInfo\_GetSingleThreadLoadLevel](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_cpuinfo_getsinglethreadloadlevel) ([GamePerformance\_CpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpuinfo) \*cpuInfo, int32\_t \*singleThreadLoadLevel) | 从[GamePerformance\_CpuInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_cpuinfo)中获取游戏最重线程的负载整体等级。 |
| [GamePerformance\_ErrorCode](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_errorcode-1) [HMS\_GamePerformance\_DestroyDeviceInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#hms_gameperformance_destroydeviceinfo) ([GamePerformance\_DeviceInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfo) \*\*deviceInfo) | 当[GamePerformance\_DeviceInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/gameservice-game-performance#gameperformance_deviceinfo)实例不再使用，销毁该实例。 |