Compare commits

...

1 Commits

Author SHA1 Message Date
ReinUsesLisp
9a58ffc4c3 renderer_opengl: Disable vsync (DO NOT MERGE)
Vsync causes performance issues on recent Nvidia drivers.
As a temporary fix, disable it.

DO NOT MERGE
2020-09-19 17:15:30 -03:00

View File

@@ -60,20 +60,7 @@ struct ScreenRectVertex {
/// Returns true if any debug tool is attached
bool HasDebugTool() {
const bool nsight = std::getenv("NVTX_INJECTION64_PATH") || std::getenv("NSIGHT_LAUNCHED");
if (nsight) {
return true;
}
GLint num_extensions;
glGetIntegerv(GL_NUM_EXTENSIONS, &num_extensions);
for (GLuint index = 0; index < static_cast<GLuint>(num_extensions); ++index) {
const auto name = reinterpret_cast<const char*>(glGetStringi(GL_EXTENSIONS, index));
if (!std::strcmp(name, "GL_EXT_debug_tool")) {
return true;
}
}
return false;
return true;
}
/**