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

edited to work with -nullrhi flag #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gwh0014
Copy link

@gwh0014 gwh0014 commented Jan 29, 2025

I edited two files the gltfRuntimeAssetActor.cpp and the gltfRuntimeParserStaticMeshes.cpp in both files i added the #include "RHI.h" in order to add checks to see if the renderer was enabled

now when running a game in headless mode through an unreal engine 5 built game you can use the -nullrhi flag in order to disable the renderer without any errors

This personally sped my game up 4x

@rdeioris
Copy link
Owner

rdeioris commented Feb 3, 2025

Thanks, it will probably needs some refactoring but it is a good base to support nullrhi. I will be back to you as soon as I have some cycle for it. Thanks again.

@gwh0014
Copy link
Author

gwh0014 commented Feb 3, 2025

No problem!

@gwh0014
Copy link
Author

gwh0014 commented Feb 3, 2025

I apologize for the messiness I was adding checks to different parts of the code to see what worked until it worked

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

Successfully merging this pull request may close these issues.

2 participants