Jump to content
The Dark Mod Forums

OBS + Ambient occlusion = low framerate recording


V-Man339
 Share

Recommended Posts

After thoroughly trial and error testing the possible cause of low FPS in recordings I can safely warn everyone else that despite having a strong graphics card ambient occlusion absolutely tanks output.

This doesn't show while playing the game, just in the finalized video. Not sure whether this is to be filed as a bug or a sad side effect, either way I hope this helps out in the coding process!

About a minute in the framerate takes a drastic drip. I am not sure what areas in particular cause this, what angles or why.

Equal amounts of drop in framerate are present in low to high. The only differential is turning it off altogether.

 

Edited by V-Man339

I like to record difficult stealth games, and right now you wonderful people are the only ones delivering on that front.

Click here for the crappy channel where that happens.

Link to comment
Share on other sites

Are you using SSAO high? ( r_ssao 3 )?

If so, you might squeeze some more performance by setting r_ssao 1 ( Low ) then adjusting the cvars

r_ssao_radius 64 or 128

(etc)

There will be more motion and resolution artifacts but it might be more playable with OBS.

  • Like 1

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

13 minutes ago, stgatilov said:
  • Do you say it does not happen without OBS?
  • Is it well-reproducible (slows down on same location)?
  • Did you try different recording mode (e.g. screen capture) ?
  • Is it on Linux or Windows?

 

This doesn't even happen in-game with OBS. It only shows in recordings, not in live gameplay. I found this out hours after finishing the videos.

It is reproducible.

No.

Windows.

I like to record difficult stealth games, and right now you wonderful people are the only ones delivering on that front.

Click here for the crappy channel where that happens.

Link to comment
Share on other sites

3 hours ago, V-Man339 said:

This doesn't even happen in-game with OBS. It only shows in recordings, not in live gameplay. I found this out hours after finishing the videos.

How many physical cores do you have?

TDM fully uses two threads, plus some minor time is taken by async thread and OpenAL mixing.
If you have two cores, then it is not surprising that OBS cannot find processing time.
Also there is "Frontend Acceleration", which assigns some job for more threads, probably you should disable it.

Did you try setting high priority to OBS in Process Explorer ?

Link to comment
Share on other sites

2 hours ago, stgatilov said:

How many physical cores do you have?

TDM fully uses two threads, plus some minor time is taken by async thread and OpenAL mixing.
If you have two cores, then it is not surprising that OBS cannot find processing time.
Also there is "Frontend Acceleration", which assigns some job for more threads, probably you should disable it.

Did you try setting high priority to OBS in Process Explorer ?

I tried disabling frontend acceleration and the differential was negligible.

I have not tried setting OBS to high priority.

My specs:

Computer Information:
    Manufacturer:  System manufacturer
    Model:  System Product Name
    Form Factor: Desktop
    No Touch Input Detected

Processor Information:
    CPU Vendor:  AuthenticAMD
    CPU Brand:  AMD Ryzen 7 3700X 8-Core Processor             
    CPU Family:  0x17
    CPU Model:  0x71
    CPU Stepping:  0x0
    CPU Type:  0x0
    Speed:  3593 Mhz
    16 logical processors
    8 physical processors
    HyperThreading:  Supported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Supported
    SSE41:  Supported
    SSE42:  Supported
    AES:  Supported
    AVX:  Supported
    AVX2:  Supported
    AVX512F:  Unsupported
    AVX512PF:  Unsupported
    AVX512ER:  Unsupported
    AVX512CD:  Unsupported
    AVX512VNNI:  Unsupported
    SHA:  Supported
    CMPXCHG16B:  Supported
    LAHF/SAHF:  Supported
    PrefetchW:  Unsupported

Operating System Version:
    Windows 10 (64 bit)
    NTFS:  Supported
    Crypto Provider Codes:  Supported 311 0x0 0x0 0x0

Video Card:
    Driver:  AMD Radeon RX 5600 XT
    DirectX Driver Name:  aticfx32.dll
    Driver Version:  27.20.14501.18003
    DirectX Driver Version:  27.20.14501.18003
    Driver Date: 11 13 2020
    OpenGL Version: 4.6
    Desktop Color Depth: 32 bits per pixel
    Monitor Refresh Rate: 59 Hz
    DirectX Card: AMD Radeon RX 5600 XT
    VendorID:  0x1002
    DeviceID:  0x731f
    Revision:  0xca
    Number of Monitors:  2
    Number of Logical Video Cards:  2
    No SLI or Crossfire Detected
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 3840 x 1080
    Primary Display Size: 23.54" x 13.23" (26.97" diag)
                                            59.8cm x 33.6cm (68.5cm diag)
    Primary Bus Type Not Detected
    Primary VRAM Not Detected
    Supported MSAA Modes:  2x 4x 8x

Sound card:
    Audio device: Headset Earphone (HyperX Virtua

Memory:
    RAM:  16292 Mb

VR Hardware:
    VR Headset: None detected

Miscellaneous:
    UI Language:  English
    Media Type:  Undetermined
    Total Hard Disk Space Available:  4971959 Mb
    Largest Free Hard Disk Block:  1441269 Mb
    OS Install Date: Dec 31 1969
    Game Controller: None detected
    MAC Address hash: 8b107809a01d2e770ffb3f2004155681399fbf2d
    Disk serial number hash: 295423e0

I like to record difficult stealth games, and right now you wonderful people are the only ones delivering on that front.

Click here for the crappy channel where that happens.

Link to comment
Share on other sites

What version of OBS are you using, is it the latest (26.1.1)? Also is OBS encoding using whatever AMD's GPU encoder is called or is it using raw CPU?

Might be worth logging CPU and GPU utilization when recording, maybe when the slowdown occurs something obvious will crop up on the logs. Maybe RAM as well, in case there's a leak somewhere.

Also:

Quote

    OS Install Date: Dec 31 1969

I know some people don't like reinstalling Windows that often but damn!

  • Haha 1

A word of warning, Agent Denton. This was a simulated experience; real LAMs will not be so forgiving.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recent Status Updates

    • Nort

      I want to be a fish, but I'm not a fish. My mom wants to be a fish too, and so she's killing herself eating plankton and sh***ng blood, and tells me to stop nagging her about taking her medication. I spent several hours today, just lying in bed, having anxiety over just existing, and not being a fish. You fish, you don't know how lucky you are. You can eat all the plankton you want. I tried eating plankton again yesterday, and I just got sick. I hate being a shark.
      · 0 replies
    • Nort

      I just gave myself vertigo. A pleasant kind of vertigo, like the world has been lifted off my shoulders. I'll explain:
      Yesterday I saw to my dismay, that I had made my entire map two - two - units too short on every level - that every set01 piece was sticking 2 units into the ceiling. That's basically 402 brushes that needs to be realigned (minus the ground floor brushes).
      I knew enough about selections to do all of that in a very tense five minutes, and it compiled without leaks. (Thank you so much, Dark Radiant devs, for making an editor with such care for precision that you can align hundreds of brushes perfectly at once (which is not something I can say for Valve's Hammer editor, which has some serious issues on that front, which actually made me just quit it in disgust).) However, the result is that the entire level has now been stretched a barely noticable 2 units, and it will take some getting used to psychologically.
      · 0 replies
    • Nort

      My workflow is basically running from a chain of disasters, eventually trying to seek shelter in former disasters. It's not ideal - it's just my life.
      When I abandoned my first map, it was out of a typical mental breakdown, and so I returned to find a skybox void where the kitchen door should have been (due to a misplaced visportal) and two overlapping brushes Z-fighting on the kitchen floor.
      I've now cleaned up the last bit of mess, by cleanly separating every floor into its own layer. Now I can finally work on each floor in peace.
      ...not that I really needed to. Once you get skilled enough, the orthographic messes, well, I'll let this video speak for itself:
       
      · 1 reply
    • Nort

      Beams, beams, beams...
      Support beams, and cross beams, and then beams to fixate the support beams to the cross beams. The more beams you have in a map, the better. There's walls, floors and ceilings, but the rest of the map is pretty much just beams. Beams makes a thief happy.
      · 0 replies
    • jaxa

      Embracer Group is Buying Square Enix Montréal, Eidos, and Crystal Dynamics for “Only” 300 Million USD: https://wccftech.com/embracer-group-square-enix-montreal-eidos-crystal-dynamics/
      · 1 reply
×
×
  • Create New...