Jump to content
The Dark Mod Forums

Development versions (2.12)


stgatilov

Recommended Posts

  • Replies 131
  • Created
  • Last Reply

Top Posters In This Topic

24 minutes ago, datiswous said:

I thought tdm already uses some features ported from Doom3 bfg.

Yes, we ported some BFG code. Both TDM and RB-DOOM3-BFG have radically changed the shader setup and render backends from vanilla (or vanilla BFG) so it may be difficult to reconcile the two. RB-DOOM3-BFG has a few things that we may be able to port without too much issue though.

  • Like 3

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

5 hours ago, lowenz said:

Static lights are cached and not recalculated unless either the light or something in its radius move, which technically speaking acts like an internal lightmap. Conventional lightmaps I only see as being useful for bounce lighting, though proper global illumination uses voxels instead... so all in all I think that old lighting technology is better off left dead.

Link to comment
Share on other sites

  • 3 weeks later...

Oh wow: Areas in my city I clearly remember yielding 60 FPS from some positions / angles now reach well over 80 FPS with latest dev, same quality settings just the new optimizations and defaults. While it was commonplace to get barely over 60 FPS in many zones, I barely found a spot where it now occasionally hits 69 FPS for just one frame :D

You've truly worked miracles with those optimizations. Didn't imagine even more performance could be squeezed out of the engine by software fixes alone. Haven't tested broadly but they'll be felt on every FM for sure. Thank you lots!

Edited by MirceaKitsune
Link to comment
Share on other sites

Nice work! I'm getting ~10% performance improvements even on my most potato computer, which is a very significant playability boost.

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                                                                                  A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Link to comment
Share on other sites

Noticed something rather shocking: Enabling 4x MSAA only seems to reduce performance by roughly 10 FPS now. This is a huge optimization, AntiAliasing would tank performance to a far greater extent! I'm seeing it on The Painter's Wife where performance is generally good, if it holds in other places I may be able to leave it enabled at last; Still wish we had an alternative like FXAA or TAA but now it may not be so urgent at least.

Edited by MirceaKitsune
  • Like 1
Link to comment
Share on other sites

On 6/12/2023 at 11:40 PM, MirceaKitsune said:

Noticed something rather shocking: Enabling 4x MSAA only seems to reduce performance by roughly 10 FPS now. This is a huge optimization, AntiAliasing would tank performance to a far greater extent! I'm seeing it on The Painter's Wife where performance is generally good, if it holds in other places I may be able to leave it enabled at last; Still wish we had an alternative like FXAA or TAA but now it may not be so urgent at least.

I guess the difference is because of long-standing issue was with stencil shadows: https://bugs.thedarkmod.com/view.php?id=5851

Other then that, multisampling is a big waste of memory bandwidth, so antialiasing will never become totally free in TDM.

  • Like 2
Link to comment
Share on other sites

2 hours ago, stgatilov said:

I guess the difference is because of long-standing issue was with stencil shadows: https://bugs.thedarkmod.com/view.php?id=5851

Other then that, multisampling is a big waste of memory bandwidth, so antialiasing will never become totally free in TDM.

I'm seeing the improvement with shadow maps too, albeit I keep their quality at lowest. Indeed MSAA is still costly even so, I kept it disabled even now for that reason. Fingers crossed the next release may get shader-based Anti-Aliasing: From my tests in Tesseract / Redeclipse, FXAA / SSAA / TAA all tend to be cheaper, hope we get at least one someday.

Link to comment
Share on other sites

27 minutes ago, MirceaKitsune said:

From my tests in Tesseract / Redeclipse, FXAA / SSAA / TAA all tend to be cheaper, hope we get at least one someday.

FXAA is cheap but looks awful.
Supersampling AA is strictly more expensive than multisampling, no reason to use it if multisampling looks OK.
Temporal AA requires major changes in the engine in order to be used, plus it kinda requires motion blur to hide its uselessness on fast camera motions.

So don't expect multisampling to be replaced soon.

  • Like 1
Link to comment
Share on other sites

Agree on FXAA indeed but it would be cool if you looked at SMAA (Enhanced subpixel morphological antialiasing) as well, is a upgraded version of MLAA (rival of FXAA) from AMD, made by Crytek and Universidad de Zaragoza.  Is always subjective but many say it looks better than both FXAA and MLAA while being almost as fast.

Never tried it in TDM but I know that Reshade has a SMAA shader, could be a way for you to test how it looks in comparation to FXAA ingame and later decided if is worth to write a inhouse one.

And IMO no need to replace multisampling it can work along side post process AA systems very well. 

Edited by HMart
  • Like 1
Link to comment
Share on other sites

Yes, it does seem a little bit quicker.

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                                                                                  A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Link to comment
Share on other sites

The new update sounds very exciting! Already got it and will probably play a new FM again soon. I wasn't sure if lights make full use of portals in order to ditch even more calculations, awesome to hear that's now on the list too :D

Reminds me of something I asked a while ago, don't think anyone knew the answer with certainty: When using a targeted light / spotlight, does it improve performance compared to omni lights? I wasn't sure if the engine knows to calculate only inside the cone they're pointing at, or if behind the curtains it still treats them as 360* projections and just visually makes them a cone.

If there's an improvement I was wondering if hooded lights could be made like that by default. Visually there should be no difference: I experimented with the outdoor lamp once, by default it still shines in all directions... you don't see anything above anyway since the model self-shadows, we could likely get it looking almost identical with a wide cone. Just thought it might be a good idea to bring this up now that I remembered, for now a nice new optimization to enjoy :)

Link to comment
Share on other sites

5 hours ago, MirceaKitsune said:

Reminds me of something I asked a while ago, don't think anyone knew the answer with certainty: When using a targeted light / spotlight, does it improve performance compared to omni lights? I wasn't sure if the engine knows to calculate only inside the cone they're pointing at, or if behind the curtains it still treats them as 360* projections and just visually makes them a cone.

Every light volume is represented as a frustum. Indeed, spotlight has smaller frustum than ordinary point light which is shadowed, so it generates less interactions. It should be faster in most cases.

Currently shadow maps always use cubemap, even for spotlights. But I hope we'll change that too in the future.

  • Like 1
Link to comment
Share on other sites

OMG... can't wait to try this one out! It's a shame I don't know the engine code and C++ in general: I always think of optimizations but all I can do is share them hoping it may inspire a developer for their idea. stgatilov did some amazing work I wasn't expecting we could see, thank you for that it's awesome :D

Link to comment
Share on other sites

Indeed I saw a big increase in performance has well. This new light culling system is doing wonders, fantastic job.

Btw to test this new version, I played Volta 2 for a while and in that part where you need to swim against the current, to get too the gold bottle, I was unable to do so, no matter how much i tried, but I remember being able to do that very easily, does the swimming system got changed or is a bug?

Link to comment
Share on other sites

"might give some more performance" is quite the understatement. It is now achievable to get Iris to runs on the Steamdeck at 60fps, where as before most of the map was stuck between 30-40 regardless of settings, resolution scaling, etc.

In terms of frame render times that is a much bigger performance jump than even 180-300.

Really fantastic job devs!

Now we can tank performance with even more elaborate and unoptimized scenes.

  • Like 1
  • Haha 1

-=  IRIS  =-    ♦    = SLL =

Link to comment
Share on other sites

1 hour ago, HMart said:

Indeed I saw a big increase in performance has well. This new light culling system is doing wonders, fantastic job.

Btw to test this new version, I played Volta 2 for a while and in that part where you need to swim against the current, to get too the gold bottle, I was unable to do so, no matter how much i tried, but I remember being able to do that very easily, does the swimming system got changed or is a bug?

I was just going to create a bug tracker yesterday for that.

That uses id_forcefield, and the impulse on the player is either increased or happens more often as FPS goes up.

Just set your FPS to 60 at that spot, then change it back.

That bug has probably been around since uncapped FPS made it's debut.

  • Like 1

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

Did just a quick test on a rather intensive FM I've almost finished: In a place where I know I previously had 60 FPS, I'm now getting 80 FPS instead... not bad at all! In most areas I'm getting roughly 100, 90 - 110 give or take. You can really feel the extra smoothness all in all, really extraordinary stuff!

Link to comment
Share on other sites

33 minutes ago, AluminumHaste said:

I was just going to create a bug tracker yesterday for that.
That uses id_forcefield, and the impulse on the player is either increased or happens more often as FPS goes up.

Maybe this: https://bugs.thedarkmod.com/view.php?id=6244 ?

If yes, please leave a comment there about how much it breaks existing mission.
Such circumstances greatly raise significance of an issue, at least in my eyes 😉

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.


  • Recent Status Updates

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 2 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 5 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...