Enable recording on steam deck with warning, use vbr on steam deck and add -bm bitrate mode option for qp or vbr

This commit is contained in:
dec05eba
2024-08-31 00:26:22 +02:00
parent c99b986149
commit 1d7c1e7d14
3 changed files with 244 additions and 190 deletions

View File

@@ -377,7 +377,7 @@ bool gl_get_gpu_info(gsr_egl *egl, gsr_gpu_info *info) {
const unsigned char *gl_renderer = egl->glGetString(GL_RENDERER);
info->gpu_version = 0;
info->is_known_broken_driver = false;
info->is_steam_deck = false;
if(!gl_vendor) {
fprintf(stderr, "gsr error: failed to get gpu vendor\n");
@@ -410,7 +410,7 @@ bool gl_get_gpu_info(gsr_egl *egl, gsr_gpu_info *info) {
if(gl_renderer) {
if(info->vendor == GSR_GPU_VENDOR_NVIDIA)
sscanf((const char*)gl_renderer, "%*s %*s %*s %d", &info->gpu_version);
info->is_known_broken_driver = strstr((const char*)gl_renderer, "vangogh") != NULL;
info->is_steam_deck = strstr((const char*)gl_renderer, "vangogh") != NULL;
}
end: