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

Use the right event to render the HUD to benefit from HUD Caching #25

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Alexdoru
Copy link
Member

@Alexdoru Alexdoru commented Nov 17, 2024

Currently it is using the TickEvent.RenderTickEvent to render the HUD, first of all waila is not checking for event phase.START or END which means that currently it is rendering the HUD twice per frame. Moreover using this event doesn't benefit from HUD caching.

So I changed it to use the RenderGameOverlay Event to benefit from HUD caching

It also fixes this item shadow bug on the drawers :

Normal:
image

When you get in close enough range for waila to render, the item in the drawer turns dark
image

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.

1 participant