Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update obs-vkcapture to obs-gamecapture #562

Merged
merged 2 commits into from
Aug 30, 2022
Merged

Conversation

zany130
Copy link
Collaborator

@zany130 zany130 commented Aug 29, 2022

@frostworx
Copy link
Collaborator

what is this PR supposed to do? can't see any useful effect. Is it supposed to be complete.
more information please

@sonic2kk
Copy link
Owner

I believe it's meant to replace obs-vkcapture with obs-gamecapture, which accomplishes the same thing as obs-vkcapture but can detect if a program is OpenGL or Vulkan and from there it can internally select the right backend to record with.

From #530:

also as also wanted OpenGL capture I tried replacing obs-vkcapture with obs-gamecapture which automatically selects the correct one depending if the game is OpenGL or Vulkan seems to work here I'll post a PR shortly.

@frostworx
Copy link
Collaborator

frostworx commented Aug 30, 2022

I thought so, but the PR does nothing effectively. That's why I asked if it is supposed to be complete.

edit: I.e: the string "obs-gamecapture" does not occur even once in the PR.
And even if it did, I'd like to know where the program could be found.

@zany130
Copy link
Collaborator Author

zany130 commented Aug 30, 2022

Wdym?

I changed the internal variable OBSVKto OBSCAP as it no longer just Vulkan capture.

And i changed obs-vkcapture to obs-gamecapture so it can work with OpenGL and Vulkan

I tested these changes in Witcher enhanced edition using WINED3D (so OpenGl) and DXVK (so Vulkan) obs was able to see and capture the game both times

@frostworx
Copy link
Collaborator

And i changed obs-vkcapture to obs-gamecapture so it can work with OpenGL and Vulkan

where?

and what is obs-gamecapture and where is its project page?

@sonic2kk
Copy link
Owner

@frostworx
Copy link
Collaborator

wtf! when I open the https://github.com/frostworx/steamtinkerlaunch/pull/562/commits
I only see
2022-08-30_18-23
besides the other correct variable renames.
thanks for clarification. Sorry, but of course, I wouldn't have asked otherwise 🤔

@zany130
Copy link
Collaborator Author

zany130 commented Aug 30, 2022

Yeah in the first push i forgot to change the actual value of the variable to obs-gamecapture I immediately pushed a second commit to fix that and update the lang files

@frostworx
Copy link
Collaborator

hah, excellent. thanks for the heads up and thanks for a great new feature! merging immediately! 😀

@frostworx frostworx merged commit 93b3610 into sonic2kk:master Aug 30, 2022
@zany130
Copy link
Collaborator Author

zany130 commented Aug 30, 2022

NP sorry about the confusion anyway something I didn't do in this PR Is remove the check for if we are using wine and if so disable obs-gamecapture

here https://github.com/frostworx/steamtinkerlaunch/blob/de990bcf54c07780ac275d1d9558c1b45274b8ec/steamtinkerlaunch#L16684

Is this necessary ? I assumed the reason was because wine would use WINED3D (thus OpenGL) instead of DXVK (thus Vulkan) but that's not an issue with obs-gamecapture and the user might expect it to work only to realize it was disabled because they are using wine instead of proton

and secondly IDK if changing OBSVKC to OBSCAP might mess up existing configs with OBSVK at least from my testing it doesn't cause any problems

@frostworx
Copy link
Collaborator

I don't think that the valid renaming of the variable has a deeper impact, because the function is pretty new and probaby only a few game configs of very few people are affected.
Can't remember why I added the wine check, but I guess it had some reason. If someone wants it removed, I wouldn't care as well though :)

@frostworx
Copy link
Collaborator

Oh, you edited while replying: yes, might have been wine3d related indeed :D

@zany130
Copy link
Collaborator Author

zany130 commented Aug 30, 2022

yeah sorry I have a bad habit of pressing submit or whatever in mid thought and then I'm like "oh should of clarified this" LOL I try to put EDIT whenever possible but If I always did that you would just see edit everywhere lol, so I just try to edit as fast as I can and hope no one notices 😅

anyway yeah I think that can be removed as a user might want to capture a game that is run with pure wine, before it might have prevented the game from working or maybe just silently failed but, the new obs-gamecapture should be able to handle this and automatically switch to OpenGL mode.

frostworx pushed a commit that referenced this pull request Aug 31, 2022
@frostworx
Copy link
Collaborator

hehe, np 😀
just removed the if-clause. thanks for suggesting 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants