@@ -31,27 +31,27 @@ of this software and associated documentation files (the "Software"), to deal
31
31
import com .oppo .oiface .engine .OifaceGameEngineManager ;
32
32
33
33
public class Cocos2dxDataManager {
34
- public static void setOptimise (String thing , float value ){
34
+ public static void setOptimise (String thing , String value ){
35
35
String jsonStr = "{\" " + thing + "\" :" + String .valueOf (value ) + "}" ;
36
36
OifaceGameEngineManager .getInstance ().updateGameEngineInfo (jsonStr );
37
37
}
38
38
39
39
public static void setProcessID (int pid ){
40
- setOptimise ("render_pid" , pid );
40
+ setOptimise ("render_pid" , String . valueOf ( pid ) );
41
41
}
42
42
public static void setFrameSize (int width , int height ){
43
- setOptimise ("buffer_size" , width * height );
43
+ setOptimise ("buffer_size" , String . valueOf ( width * height ) );
44
44
}
45
45
public static void onSceneLoaderBegin (){
46
- setOptimise ("load_scene" , 1 );
46
+ setOptimise ("load_scene" , String . valueOf ( 1 ) );
47
47
}
48
48
public static void onSceneLoaderEnd (){
49
- setOptimise ("load_scene" , 0 );
49
+ setOptimise ("load_scene" , String . valueOf ( 0 ) );
50
50
}
51
51
public static void onShaderLoaderBegin (){
52
- setOptimise ("shader_compile" , 1 );
52
+ setOptimise ("shader_compile" , String . valueOf ( 1 ) );
53
53
}
54
54
public static void onShaderLoaderEnd (){
55
- setOptimise ("shader_compile" , 0 );
55
+ setOptimise ("shader_compile" , String . valueOf ( 0 ) );
56
56
}
57
57
}
0 commit comments