Jump to content


Photo

Testers and reviewers wanted: BFG-style vertex cache


  • Please log in to reply
289 replies to this topic

#51 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 8987 posts

Posted 21 May 2018 - 09:50 AM

The lightgem on this branch *does* work, even better than before, because it's integrated into the frontend/backend split. It's the fbo/MSAA part that's not working with it :) And yeah, I'll fix that.


Right. I was referring to the "current" LightGem in SVN trunk with FBO changes, and not the Lightgem in this BFG branch. ;)
 
Thanks again.
Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

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

#52 cabalistic

cabalistic

    Member

  • Development Role
  • PipPip
  • 379 posts

Posted 21 May 2018 - 02:21 PM

It's done, I merged the changes.

Also did a quick fix for the lightgem; it turns out that the lightgem was rendering to the window, not the FBO. That should have been fine, but for some reason it didn't quite work. I haven't figured out why, yet. Possibly a clear missing somewhere or something similarly trivial. But for now I switched lightgem to the (primary) FBO, and that works fine on my machine. A separate FBO could still be worthwhile, especially if MSAA is enabled, because we really don't need to render the lightgem with MSAA...

 

New test executable: https://github.com/f...eDarkModx64.zip


  • nbohr1more and Anderson like this

#53 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 8987 posts

Posted 21 May 2018 - 02:31 PM

AWESOME!

(Now the wait to get home and test gets 1000x worse.) :)
Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

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

#54 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 1592 posts

Posted 21 May 2018 - 03:24 PM

One thing you might want to take a look at is the gamma settings, which are ignored, both in fullscreen and windowed mode. Everything else seems to work fine for me, and I think there is a boost in framerate. TDM tends to struggle in some places at 1440p, where people playing in 1080p don't have any problems. Looks like it handles those places better now.



#55 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 8987 posts

Posted 21 May 2018 - 03:38 PM

One thing you might want to take a look at is the gamma settings, which are ignored, both in fullscreen and windowed mode. Everything else seems to work fine for me, and I think there is a boost in framerate. TDM tends to struggle in some places at 1440p, where people playing in 1080p don't have any problems. Looks like it handles those places better now.


We've already begun moving to "soft gamma" in 2.07 so we'll no longer be plagued by Windows 10's poor Gamma interface.

http://forums.thedar...9-soft-r-gamma/
Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

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

#56 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 8987 posts

Posted 21 May 2018 - 08:50 PM

Good news:

 

1) Lightgem works again

2) Mission load time is shorter than ever

3) MSAA and FBO play nice

 

Bad news:

 

Missions crash at the Mission complete screen.

 

(SVN compile of the 32-bit executable.)

 

I'll test a few config changes to see if it happens with safer settings.

 

Edit: Disabling com_smp fixes the crash...

 

Edit: same behavior in x64

 

More bad news:

 

Reflective water renders the splash screen instead of the skybox.

Entering water freezes the last scratch image making any under-water navigation impossible.


  • Anderson likes this
Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

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

#57 HMart

HMart

    Advanced Member

  • Member
  • PipPipPip
  • 701 posts

Posted 22 May 2018 - 10:27 AM

It's done, I merged the changes.

Also did a quick fix for the lightgem; it turns out that the lightgem was rendering to the window, not the FBO. That should have been fine, but for some reason it didn't quite work. I haven't figured out why, yet. Possibly a clear missing somewhere or something similarly trivial. But for now I switched lightgem to the (primary) FBO, and that works fine on my machine. A separate FBO could still be worthwhile, especially if MSAA is enabled, because we really don't need to render the lightgem with MSAA...

 

New test executable: https://github.com/f...eDarkModx64.zip

 

Tested this on No Honor Among Thief's, got graphical problems, water was black and showed what looked like a small white dot pattern on it and the sky flickered like crazy. On the vanilla 2.06 x64 exe, water looks fine but the sky shows a translucid blueish plane moving with the view, if I noclip towards the blue plane it disappears and the sky looks normal, if i look down i can see it show up in the top of the screen, but if i look up it goes away, very strange, could be the fog acting bad again.

 

Video showing the problem.  

 

Some important info, because of a problem on my mobo, i add to go back to a old AMD GPU i add, the HD 5770 and because its a old GPU AMD has put its driver support into the legacy section, what that means is that there are no new drivers for it. So the last supported driver for this GPU is the Radeon Crimson 16.2.1.

 

Don't know if this would happen on my newer R9 270X with new drivers but i can't test it until i fix the mobo problem. 



#58 cabalistic

cabalistic

    Member

  • Development Role
  • PipPip
  • 379 posts

Posted 22 May 2018 - 11:06 AM

Crap, I forgot about the water. I kinda expected this to need work.

 

Also just debugged the mission end issue. It boils down to the mission end triggering a final savegame on the frontend thread, which in turn tries to take a screenshot, and that can no longer happen (if SMP is enabled) on the frontend because it no longer has a GL context. As i recall, the water is potentially a similar issue, with it trying to do stuff on the frontend that it shouldn't. Do either of you have a mission in mind where I can quickly get to some affected water?

 

Both issues need a slight refactor to properly adhere to the frontend/backend split. All perfectly doable. I'll try to get it fixed asap, but it might not happen before the weekend, sorry.


  • HMart and Anderson like this

#59 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 8987 posts

Posted 22 May 2018 - 11:25 AM

Use this demo:

http://www.moddb.com...ated-grass-demo

to cover lots of scenarios at once.
Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

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

#60 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 1592 posts

Posted 22 May 2018 - 01:24 PM

Volta 2 sewers, there's definitely something going on with water. Similar artefacts can be seen underwater, while facing up.

 

obraz.png



#61 cabalistic

cabalistic

    Member

  • Development Role
  • PipPip
  • 379 posts

Posted 22 May 2018 - 01:32 PM

Hm, underwater is expected for the reason I stated, underwater vision is doing stuff on the frontend it shouldn't. Over water artifacts I'm not sure, might be the same cause or something completely different. But I'll find out soon enough :) Thanks for letting me know.


  • Anderson likes this

#62 Bikerdude

Bikerdude

    Mod hero

  • Member
  • PipPipPipPipPip
  • 20181 posts

Posted 22 May 2018 - 02:48 PM

 there's definitely something going on with water. Similar artefacts can be seen underwater, while facing up

I've seen this weird effect prior to Cabalistic's update.


  • stgatilov likes this

#63 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 8987 posts

Posted 22 May 2018 - 03:07 PM

I've seen this weird effect prior to Cabalistic's update.


Probably the know issue with Depth Buffer access when FBO is enabled.
Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

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

#64 cabalistic

cabalistic

    Member

  • Development Role
  • PipPip
  • 379 posts

Posted 22 May 2018 - 03:07 PM

Okay, now I'm really confused. After looking at the code, any saving of the game happens in the frontend. How the hell is this even working at all with SMP enabled?! At the latest, my vertex cache changes should have broken it completely, at least the part that's trying to take a screenshot. And yet, somehow normal saves seem to work ok, even with screenshots, it's only the final save that crashes the game. I must be missing something...

 

Edit: Never mind, regular saves appear to be scheduled via the command queue, which is executed before the frontend/backend split. I was confused by the calls to SaveGame in RunGameTic(), which is apparently dead code? Because it's only triggered by setting the cvar 'saveGameName', but that one's set to read-only...


Edited by cabalistic, 22 May 2018 - 03:18 PM.

  • Anderson likes this

#65 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 1592 posts

Posted 23 May 2018 - 03:09 AM

I've seen this weird effect prior to Cabalistic's update.

 

The same effect is also visible on torches, so that would be a problem with heatHaze.vfp, right? Reverting to x64 from latest 2.06 update solves the problem, so that must have been fixed.


Edited by Judith, 23 May 2018 - 03:10 AM.

  • Anderson likes this

#66 cabalistic

cabalistic

    Member

  • Development Role
  • PipPip
  • 379 posts

Posted 23 May 2018 - 03:26 PM

I committed a partial fix for the crash on mission success. I moved where the final save is created so that it can now succeed. However, trying to quit the game afterwards freezes the game in an infinite loop. This is caused by some interactions not being properly cleaned up, or so the game claims. Will continue to investigate.


  • Judith and Anderson like this

#67 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 8987 posts

Posted 23 May 2018 - 07:44 PM

Thanks.

 

I completed Closemouthed Shadows without a crash at the end.


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

http://www.indiedb.c...ds/the-dark-mod

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

#68 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 1592 posts

Posted 24 May 2018 - 11:45 AM

You were right Biker, that effect is still there with latest 2.06 x64 exe.

obraz.png


  • Bikerdude likes this

#69 stgatilov

stgatilov

    Lead Programmer

  • Active Developer
  • PipPipPip
  • 1024 posts

Posted 27 May 2018 - 05:26 AM

I have problems with opening console in-game in windowed mode on the current trunk. Probably due to these changes?...

The console opens by tilde the first time, but it does not open after that (and it I spawn main menu, it opens there).

I hope I'm not alone who has the problem?  :unsure:



#70 cabalistic

cabalistic

    Member

  • Development Role
  • PipPip
  • 379 posts

Posted 27 May 2018 - 05:39 AM

Hm, console works fine for me in windowed mode. But there is still at least one slight rendering issue I'm currently tracking down. Perhaps, under the right conditions, it might stop the console from rendering properly?

 

Does the console react if you type a command blindly? If yes, it might be that rendering issue. If not, it sounds more like a logic issue and I'm not sure how these changes would have affected that.


  • Anderson likes this

#71 stgatilov

stgatilov

    Lead Programmer

  • Active Developer
  • PipPipPip
  • 1024 posts

Posted 27 May 2018 - 05:57 AM

Hm, console works fine for me in windowed mode. But there is still at least one slight rendering issue I'm currently tracking down. Perhaps, under the right conditions, it might stop the console from rendering properly?

 

Does the console react if you type a command blindly? If yes, it might be that rendering issue. If not, it sounds more like a logic issue and I'm not sure how these changes would have affected that.

When I try to open it for the second time, the window loses focus, and I start seeing my mouse cursor (which no longer affects player orientation). If I then press tilde again, TDM gets focus back. For the whole time, TDM renders without any problems just as nothing happened.

Maybe that's not a TDM problem at all, maybe I just messed somehow with generic Windows interface  :blush:



#72 cabalistic

cabalistic

    Member

  • Development Role
  • PipPip
  • 379 posts

Posted 27 May 2018 - 07:04 AM

That sounds a bit like a background process reacting to that keypress, or something along those lines? Can you switch focus back to TDM via alt-tab?


  • Anderson likes this

#73 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 8987 posts

Posted 27 May 2018 - 10:34 AM

Rev 7419

Reflective water and underwater now work as expected.

Enhanced Ambient renders black?
  • Anderson likes this
Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

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

#74 cabalistic

cabalistic

    Member

  • Development Role
  • PipPip
  • 379 posts

Posted 27 May 2018 - 11:19 AM

Actually, reflective water only sort of works if FBO is enabled, but still wrong without it. I'm trying to figure out what's going wrong, but I have a feeling some render copies are not created or used quite right. No clue why the BFG-style vertex cache would have any effect on those, though.


  • Anderson likes this

#75 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 8987 posts

Posted 28 May 2018 - 12:20 AM

OK. Don't get to angry with me. :blush:
 
I accidentally left Shadow Maps enabled (r_shadows 2). :blush:  :blush:
 
Setting back to Stencil Shadows resolved the ambient rendering issue.
 
Strange that there's such a disparity whereas Shadow Maps work in other missions.
 
Now I see the water rendering issues but it's at least the fully rendered scene.
Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users