r/GraphicsProgramming • • Feb 28 '23

Need help: capture Hogwarts Legacy in RenderDoc?

Hi, I have Hogwarts Legacy for Steam.

I was curious to see how the spells are rendered, so I though I would give RenderDoc a try. But I having trouble, so I thought someone here could help me :)

I found the game executable at "C:\Program Files (x86)\Steam\steamapps\common\Hogwarts Legacy". Then, in RenderDoc, I check the "Capture Child Processes" checkbox, as the game launches as a child process of Steam.

First I get a a message box warning me that the game is being launched with the " Phoenix " command line arguments. I say OK to the pop up, and everything and the game seems to launch fine and I can even play around just fine. The problem comes when I hit F12 to capture: the game freezes for a while, and after 2 mins of so the game shuts down :(

I though the problem might be lack of RAM since I had only 16GB and task manager showed that I was running on the limit. But I bought more RAM (now I have 32GB) and the problem still persists, even though I only get about 17GB usage.

Has anyone managed to capture this game successfully? Or do you have any hints from having captured other Steam games?

Thanks in advance!

EDIT:

Thanks to all those that tried to help me!

I manged to get a few captures now :)

Still trying to figure things out, as I had to turn graphics down, and I'm also interested in knowing about the techniques that are enabled in the high settings. But this is promising! I'm so excited to see what can I learn from this game :))

10 Upvotes

23 comments sorted by

9

u/machinegod420 Feb 28 '23

There is a steamworks DRM which causes issues with attaching debuggers to steam games. Have you tried removing that?

3

u/tukett Feb 28 '23

No. Thanks for the suggestion. How do I remove that?

4

u/machinegod420 Feb 28 '23

https://github.com/atom0s/Steamless

No guarantee it will work though

3

u/tukett Feb 28 '23 edited Mar 03 '23

Thanks for the link, very interesting project! Unfortunately, Steamless doesn't seem to work for this game's executable :(

It gives an error: "[Steamless] Failed to unpack file"

2

u/machinegod420 Mar 01 '23

Yeah, its not tested on every game since its too much work. You might be out of luck if it's the DRM blowing it up

1

u/tukett Mar 03 '23

Do you know if there is any way to know if that's actually happening? The game just seems to run ok when I launch it from RenderDoc, and the "Press F12 to capture message" shows on top of the game. It's just that when I press F12 the game freezes :S

4

u/[deleted] Feb 28 '23

The trick to capturing Steam games is to enable global hooking and then setting it to the right exe. Then launch the game through Steam. Otherwise the game will just re-launch itself through Steam.

1

u/tukett Mar 03 '23

I tried that but same result :(

2

u/xan_da Feb 28 '23

I had what might be a similar experience capturing a frame for something else a few years ago. In my case it did very much come down to RAM. I needed to double mine, too - but I wasn't even running at the limit initially. Whatever the game was running inside of at the point of capture, I needed the same again on top. If you're running at 17 used out of 32 *before* hitting F12... hm. I'm not sure on that one. But don't go running out to buy even more just yet. How much RAM was it occupying before you upgraded, when you only had 16 gig? I'd suggest reading up on renderdocs' current requirements/documentation carefully. It sounds like it may be borderline, i'm really not sure on that one, sorry. The capture does hit the ram pretty damn hard... but it also might be relevant for people helping troubleshoot for you, to note how much VRAM your GPU has, since that (I think?) affects the size of the capture.

In my case I also had my game crash sometimes after a long capture, but the capture still survived and renderdoc was still running, so I was able to save to snapshot. When you say that your game is shutting down after 2 minutes - is that what's also causing renderdoc to fail the capture at that point?

Since HW:Legacy is an online game, is it perhaps the case that the game shutting down is a result of the capture freeze/delay causing a network desync? I used to have an improperly configured SSD that could freeze for a few minutes at a time, and when I was playing MMOs or online squad-based shooters, that meant a guaranteed disconnect every time it seized up.

Also, what sort of in-game resolution and texture quality have you tried capturing at? Maybe the capture could succeed faster with smaller framebuffers/textures to dump.

1

u/tukett Mar 03 '23 edited Mar 03 '23

It was around 17GB after pressing F12, before it was around 15GB.

I have 8GB of VRAM: Radeon 6600

Since the game shuts down RenderDoc doesn't receive the capture. RenderDoc doesn't really "fail", it's still running after the game shuts down :/

Hogwarts Legacy is not online AFAIK. Although it has some cloud sync for saving the progress.

I have tried fairly low resolutions. I will try to go even lower and see how it goes!

7

u/NotAPenguin_ Feb 28 '23

RenderDoc is only intended for capturing your own projects and provides zero support for licensed software.

8

u/the_Demongod Mar 01 '23

Indeed people should really not be soliciting help for this publicly if they can't figure it out on their own, baldurk does not approve of this usage of the program

4

u/tukett Mar 03 '23

That doesn't make any sense. No point in asking for help if you can figure it out on your own ¬¬

3

u/the_Demongod Mar 04 '23

The point is that you're creating public attention around a subject that should not be discussed. You're abusing an open-source tool that is graciously developed and provided for free by someone who has explicitly requested that it not be used in the way you're trying to use it. RenderDoc is very easy to use and if you're really that motivated to use it in this way, figure it out yourself. You're harming the reputation of the tool and its developers by calling attention to the fact that it can be misused in this way.

7

u/tukett Mar 06 '23 edited Mar 06 '23

"explicitly requested that it not be used in the way you're trying to use it" - source?

From my research I only found that Baldurk doesn't want to give support for issues related with capturing 3rd party programs (link), not that he doesn't want RenderDoc to be used in that way.

Already figured out it by myself, but I still think it's a good thing to ask for help when you need to.

I don't agree that it using RenderDoc for studying 3rd party software is a bad thing and harms the reputation of RenderDoc. There are plenty of graphics studies(many of them use RenderDoc) out there, and I think people appreciate them as a learning resource. If any, these graphics studies help to show how awesome RenderDoc is :)

I believe that people should be free to ask and share knowledge on any matter. And it should actually be encouraged, never discouraged.

Ultimately, I respect that you (or maybe Baldurk) don't like that people does that with the software, but I don't care, and I'll keep doing it because I want to :)

3

u/the_Demongod Mar 06 '23

He's pretty clear about it every time it's asked. Tracing copyrighted games is legally questionable, and tools like RenderDoc are often abused by people to do illegal asset ripping/reselling.

You're free to do what you want with the software on your own machine and I think most of us have done this too; the point is that, like Baldur, you should not be creating public guides about how to do it. We don't want to land RenderDoc or its creators in legal trouble because some media megacorp is mad about people using RD to reverse engineer their games, so you should have a vested interest in being discreet.

5

u/tukett Mar 06 '23

Not really "explicitly requesting RenderDoc not to be used in that way", just declining to give support.

"We don't want to land RenderDoc or its creators in legal trouble because some media megacorp..." - Sorry, I don't buy that argument. It's like saying Ocornut could get into trouble because people use ImGui for making game cheats, or that Microsoft could get into trouble because people use VS to make malware. RenderDoc is MIT licensed, and that license already specifies that the author doesn't take any responsibility due to misuse of the software.

1

u/quickscopesheep Aug 21 '25

the very fact its open source gives people free reign to use it however they please. And He is using it for purely educational purposes which in no way can be seen as immoral

1

u/the_Demongod Aug 21 '25

It draws the attention of litigious corporations that a volunteer open source project cannot hope to defend itself against. It's just a bad idea, regardless of the reasons. Do it all you like, but don't post about it publicly.

1

u/techmate24 Feb 28 '23

I tried same method ages ago but failed. Have you tried PIx for windows?

1

u/tukett Feb 28 '23

I guess you mean with other games, as Hogwarts Legacy was released just this month. I have not tried PIX, have you? I have never used PIX before

1

u/Separate-Fox-1240 Mar 01 '23

pix worked in a bunch of games where renderdoc gave me trouble (even after following the appropriate steps to run steam games through something that hooks its dll function calls). no idea why though.

1

u/techmate24 Mar 09 '23

Yeah, pix or razor is my default tool for perf capture on my personal renderer as well as in shipping AAA games at work