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

Improving optimisation + HDRP ? #3

Open
Myrmecoman opened this issue Jun 24, 2023 · 3 comments
Open

Improving optimisation + HDRP ? #3

Myrmecoman opened this issue Jun 24, 2023 · 3 comments

Comments

@Myrmecoman
Copy link

Myrmecoman commented Jun 24, 2023

Hello,

I know nothing about shaders, and wanted to know how I could make this work on HDRP. Currently no object is displayed if I run the Main scene in HDRP, but no error pops out either.

Also I would like to improve this using jobs for the renderers update. I might also improve some other things, need to look at the profiler for that. Will probably make a pull request shortly about that.

Thanks !

EDIT : after further investigation, Jobs cannot handle non native containers + unity objects state cannot be changed elsewhere then in the main thread... Welp

@scorpioservo
Copy link

Did you ever get this to work in HDRP? I have been looking around and tinkering but cannot figure it out.

@Myrmecoman
Copy link
Author

Hi, I did not try further sorry.

@SoftwareMechanic
Copy link

SoftwareMechanic commented Dec 6, 2024

Hello, I am trying to run this occlusion culling technique in Universal Render Pipeline. same issue.

the reason for all the objects to be invisible is this line:
_MeshRenderers[i][j].enabled = (Vector4.Dot(_Elements[i], _Elements[i]) > 0.0f); in HardwareOcclusion.cs.

but I am still trying to figure out why this happen and how the system should work.

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

3 participants