Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Help with slow implementation of Evolved's Water Shader

Author
Message
myertveho
15
Years of Service
User Offline
Joined: 3rd Oct 2010
Location:
Posted: 3rd Oct 2010 10:02
Hey all,

I'm super new to DB programming so my apologies for any stupidity in these matters, but I can't figure out exactly WHY this code is running so slowly.

As soon as I disable the update reflection camera code I'm back to full speed.

I've tried disabling pretty much every combination of code to find the source, but i'm stumped.

I've attached all my media and code as well as the code below.

bergice
19
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 3rd Oct 2010 13:14
Could be that you use
for all your objects, it really can kill your fps.

51fa1db0ec7c4af52d93a6f5d0e86bc5
Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 3rd Oct 2010 17:08
Try changing your SYNC RATE from 60 to 0, and adding a 1 to your SET DISPLAY MODE call to enable VSync. I have found that when rendering 2 cameras with the SYNC RATE at 60, the FPS halves to 30.

Also, as bergice said, those shadow shading commands can be a little slow sometimes. Try changing the "Use Shader" flag from 0 to 1-- that should speed things up a little


Guns, cinematics, stealth, items and more!

Login to post a reply

Server time is: 2026-07-22 03:51:25
Your offset time is: 2026-07-22 03:51:25