DP water

Discuss anything not covered by any of the other categories.
Post Reply
deathmedic
Posts: 1
Joined: Sat Nov 20, 2010 7:52 pm

DP water

Post by deathmedic »

I've always wondered why the water effect in darkplaces massivly reduces the framerate when it's turned on.

with all the goodness turned on apart from the water i get a stable framerate over 60fps with nothing to reduce it.
As soon as I turn it on it all starts to slowdown when facing water then speeds up when water isn't in view, but the overall frame rate is reduced to about 50fps or lower.

I'd of though a Phenom x4 and two ati 4870's would be able to handle it, but seems it can't.
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Post by Spike »

because it requires rendering the scene 3 or so times instead of once.
hondobondo
Posts: 207
Joined: Tue Sep 26, 2006 2:48 am
Contact:

Re: DP water

Post by hondobondo »

deathmedic wrote:I've always wondered why the water effect in darkplaces massivly reduces the framerate when it's turned on.

with all the goodness turned on apart from the water i get a stable framerate over 60fps with nothing to reduce it.
As soon as I turn it on it all starts to slowdown when facing water then speeds up when water isn't in view, but the overall frame rate is reduced to about 50fps or lower.

I'd of though a Phenom x4 and two ati 4870's would be able to handle it, but seems it can't.
the general rule in graphics rendering is "the prettier the slower"
Dark$oul71
Posts: 58
Joined: Sat Dec 05, 2009 6:56 pm

Re: DP water

Post by Dark$oul71 »

hondobondo wrote: the general rule in graphics rendering is "the prettier the slower"
Plus the fact that we are takling about an old engine here (even if it's extremely revamped).
That is the same what you can see if you play SDQuake...lot of enemies plus certain graphic effects (namely flames) turn your PC into a snail although it is cabable to run modern games with much more detailed graphics fluently.
qbism
Posts: 1238
Joined: Thu Nov 04, 2004 5:51 am
Contact:

Post by qbism »

Water reflection+refraction is very expensive compared to refraction only. The fastest water effect example I can think of is kmquake2, very fast water effect, but no reflections.
Boss429
Posts: 39
Joined: Sun Dec 03, 2006 7:29 pm
Contact:

Post by Boss429 »

Is there a way to do a prerendered reflection that only reflects the world and not entities in Darkplaces? this seems like it would greatly increase framerates.
leileilol
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Post by leileilol »

dp_reflectcube

Basically, you first render an 'envmap' ingame where you have your water with a console command that calculates it all. I forgot what it was called

THEN you fix up your custom water shader to use that envmap as a dp_reflectcube


And yes, it does freaking increase framerates while sacrificing reflection functionality. This method has been a dirty water reflection alternative for the early past decade when Geforce3/FX was the consumer choice. Technically the Geforce256 can do it too, but without refraction of the cubemap and I don't know if DP has gf256 support for it.
i should not be here
Post Reply