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 / how are you? I have a problem with the distort effect of DarkShader

Author
Message
Progrssive320
1
Years of Service
User Offline
Joined: 9th Apr 2022
Location:
Posted: 29th Jul 2023 15:07
hello everyone. I hope all is well.

I'm telling you that I have a problem with the darkshader distort.fx call effect. When playing for several hours, the effect drops its framerate drastically to approximately 15fps and the game continues to be at a stable 60fps. The funniest thing is that if I restart the PC, it resolves itself, but after hours go back to the same thing. It is as if a memory cache was put together. thanks for your help. Greetings.

flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 1st Aug 2023 13:11
Yeah, the restart-fixing-it makes it sound like a memory or vram issue. I never used DarkShader, so I don't think I'm fit to help
Although I'm comfortable with shaders in general and no alarm bells are ringing looking at the shader you shared.

Maybe post how you're using the shader? How are you passing the textures?
Progrssive320
1
Years of Service
User Offline
Joined: 9th Apr 2022
Location:
Posted: 5th Aug 2023 19:10
HELLOOO. Thanks for your time and answering my question. The code is simple.


rem Initialise
sync on
sync rate 60

rem Load model and shader effect
load object "Sphere.dbo",1
autocam off
load effect "Distort.dbs",1,1
set object effect 1,1

do
rem Draw main camera
sync mask %001 : sync
loop




Thank you

Login to post a reply

Server time is: 2024-02-27 20:00:16
Your offset time is: 2024-02-27 20:00:16