Skip to content

Use the correct event to render the HUD to benefit from HUD Caching - #25

Draft
Alexdoru wants to merge 2 commits into
masterfrom
hud-caching
Draft

Use the correct event to render the HUD to benefit from HUD Caching#25
Alexdoru wants to merge 2 commits into
masterfrom
hud-caching

Conversation

@Alexdoru

@Alexdoru Alexdoru commented Nov 17, 2024

Copy link
Copy Markdown
Member

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

@Alexdoru Alexdoru changed the title Use the right event to render the HUD to benefit from HUD Caching Use the correct event to render the HUD to benefit from HUD Caching Jul 11, 2025
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