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

[Renderers/Raylib] PERF: Fixed many allocations per frame for each string to render. #298

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hexmaster111
Copy link

Updated renderers/raylib/clay_renderer_raylib.c to store the malloc'd buffer, so we dont need to malloc and free every string part.

Also added Clay_Raylib_Close() to free the buffer.

@hexmaster111 hexmaster111 marked this pull request as ready for review March 3, 2025 22:09
@hexmaster111
Copy link
Author

I just looked through the examples, and it looks like we are missing a few calls to CloseWindow() in raylib, If this is merged, ill update the raylib examples to call Clay_Raylib_Close() to de-init raylib, as well as free the stored buffer.

@nicbarker nicbarker changed the title [Raylib Render] PERF: Fixed many allocations per frame for each string to render. [Renderers/Raylib] PERF: Fixed many allocations per frame for each string to render. Mar 3, 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