85 int normalOpenGLFps = 0;
86 int safeOpenGLFps = 0;
87 int modernOpenGLFps = 0;
89 std::string textureSizeStr;
93 for (
int f = 0; f < 6; f ++)
96 textureSize[f] = 1024;
101 if (videoDetectTest == 0)
112 info.append(
strprintf(
"%d.%d,%d,%d,%d.", soundTest, softwareTest,
113 normalOpenGLTest, safeOpenGLTest, modernOpenGLTest));
115 if (softwareTest == 0)
119 if (softFpsTest == 0)
140 if (modernOpenGLTest == 0)
144 if (modernOpenGLFpsTest == 0)
148 if (modernOpenGLFps == 0)
150 modernOpenGLTest = -1;
151 modernOpenGLFpsTest = -1;
161 modernOpenGLTest = -1;
165 if (normalOpenGLTest == 0)
169 if (normalOpenGLFpsTest == 0)
173 if (normalOpenGLFps == 0)
175 normalOpenGLTest = -1;
176 normalOpenGLFpsTest = -1;
186 normalOpenGLTest = -1;
190 if (safeOpenGLTest == 0)
194 if (safeOpenGLFpsTest == 0)
198 if (safeOpenGLFps == 0)
201 safeOpenGLFpsTest = -1;
216 int maxFps = softFps;
217 if (maxFps < normalOpenGLFps)
220 maxFps = normalOpenGLFps;
222 if (maxFps < modernOpenGLFps)
225 maxFps = modernOpenGLFps;
227 if (maxFps < safeOpenGLFps)
230 maxFps = safeOpenGLFps;
260 for (
int f = 0; f < 6; f ++)
264 textureSizeStr =
toString(textureSize[0]);
265 for (
int f = 1; f < 6; f ++)
266 textureSizeStr.append(
strprintf(
",%d", textureSize[f]));
269 if ((detectMode & 15) == 0)
273 soundTest,
info, batchSize, textureSizeStr, detectMode);
280 const std::string &
info,
282 const std::string &textureSize,
283 const int detectMode)
309 static_cast<bool>(detectMode & 1024));
311 static_cast<bool>(detectMode & 2048));
322 log->
log(
"value for %d = %d", ver, def);
333 if (!getline(file, tmp))
338 var = atoi(tmp.c_str());
339 if (ver != var || !getline(file, tmp))
344 def = atoi(tmp.c_str());
372 log->
log(
"%s: %d", test.c_str(), ret);
381 log->
log(
"%s: %d", test.c_str(), ret);
390 log->
log(
"%s: %d", test.c_str(), ret);
435 log->
log(
"%s: %d", test.c_str(), ret);
void setValue(const std::string &key, const std::string &value)
void init(const std::string &filename, const UseVirtFs useResManager, const SkipError skipError)
void log(const char *const log_text,...)
void setLogFile(const std::string &logFilename)
int invokeMobileOpenBatchTest(const std::string &test)
static int readValue(const int ver, int def)
int invokeNormalOpenGLRenderTest(const std::string &test)
int readValue2(const int ver)
int exec(const bool testAudio=true)
int invokeModernOpenGLRenderTest(const std::string &test)
int invokeTest(const std::string &test)
int invokeSafeOpenGLRenderTest(const std::string &test)
int invokeSoftwareRenderTest(const std::string &test)
void writeConfig(const RenderType openGLMode, const int rescale, const int sound, const std::string &info, const int batchSize, const std::string &textureSize, const int detectMode)
int invokeModernOpenBatchTest(const std::string &test)
int invokeNormalOpenBatchTest(const std::string &test)
int invokeSafeOpenBatchTest(const std::string &test)
bool info(InputEvent &event)
std::string toString(T const &value)
converts any type to a string
std::string getSelfName()
int execFileWait(const std::string &pathName, const std::string &name, const std::string &arg1, const std::string &arg2, int waitTime)
const bool SkipError_false
std::string strprintf(const char *const format,...)
std::string pathJoin(std::string str1, const std::string &str2)
const bool UseVirtFs_false