Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance issues #18

Open
hiban1 opened this issue Aug 6, 2024 · 5 comments
Open

performance issues #18

hiban1 opened this issue Aug 6, 2024 · 5 comments

Comments

@hiban1
Copy link

hiban1 commented Aug 6, 2024

Im using this but the game is lagging, if there is too much lights I'm modyfying the global_lightning function but its not enought, I guess the shader is very recursfull

@DevTRUCKer
Copy link

Hey there idk if I'm late or not but I have a fix for your performance issues.
Go to sh_shadow_map.fsh

and change these like this
#define BLEND_ITERATIONS 4 // 8
#define BLEND_TEXELS 32.0 // 64.0
I put a comment for the default value so you can revert it or just use undo...
I know the shadow or lighting will feel a little odd but trust me it's better.

Tell me if your game now runs better with these changes.
Oh man I just hope the Authors come back...

@hiban1
Copy link
Author

hiban1 commented Aug 15, 2024

Yes I've done it but it doesn't change anything, all I know is that it's comming from the lights because when my camera is in the shadow nothing happen, or maybe it's comming from my computer because I don't have a dedicated graphicall card but when I test the project on his own and not in my game it works well...

@DevTRUCKer
Copy link

hmm... yea I think the issue from your computer OR I still also feel it's from the lighting system itself because it did not get updated for so long time so maybe it's not compatible a little with your GMS version, idk your GMS version, if you are using "Monthly" or "Beta" maybe try the "LTS" version in a separate project.

Also, I have a suggestion, and I know it still will not do anything but did you change the in_TexCoord to in_TextureCoord in the two shaders? check this (#7)

So yeah, I don't have any other suggestions the last thing I can tell you is... (nope not upgrade your PC) it is you can give me an example project with the same lights and shadows to see if my PC too can handle it.
Yep, that's it I hope you find a solution SeeYa.

@hiban1
Copy link
Author

hiban1 commented Aug 28, 2024

Ok I will try next time because I have a lot of things to do on my game. Hope I manage to do it, it will bring a lot...

@DevTRUCKer
Copy link

Suggest!
You can use beta with the new GMRT if you don't have but Please backup your project first.
GMRT focuses on Performance so your game may work better with it but if any errors show up you may work again on whatever version and runtime you were using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants