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

Core: Introduce luautils::callGlobal helper and more caching (big performance improvement ⏩) #6780

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

Conversation

zach2good
Copy link
Contributor

I affirm:

  • I understand that if I do not agree to the following points by completing the checkboxes my PR will be ignored.
  • I understand I should leave resolving conversations to the LandSandBoat team so that reviewers won't miss what was said.
  • I have read and understood the Contributing Guide and the Code of Conduct.
  • I have tested my code and the things my code has changed since the last commit in the PR and will test after any later commits.

What does this pull request do?

Allow calling of functions in Lua from C++ without needing to manually prepare so many things for Lua, or to manually/dangerously access the lua state:

        luautils::callGlobal<void>("xi.server.onServerStart");

etc.

@zach2good zach2good changed the title Core: Introduce luautils::callGlobal helper Core: Introduce luautils::callGlobal helper and more caching Jan 21, 2025
@zach2good zach2good force-pushed the lua_auto_wrap branch 3 times, most recently from 635a0d0 to 8793c87 Compare January 22, 2025 13:58
@zach2good zach2good marked this pull request as ready for review January 22, 2025 13:59
@zach2good zach2good force-pushed the lua_auto_wrap branch 2 times, most recently from 68ebea6 to a230320 Compare January 22, 2025 14:10
@zach2good
Copy link
Contributor Author

Ready for review, works with hot-reloading. Will do some performance testing this week to see if we gain anything from the caching layer

@zach2good zach2good changed the title Core: Introduce luautils::callGlobal helper and more caching Core: Introduce luautils::callGlobal helper and more caching (big performance improvement ⏩) Jan 22, 2025
@zach2good zach2good added the hold On hold, pending further action/info label Jan 22, 2025
@zach2good zach2good force-pushed the lua_auto_wrap branch 2 times, most recently from 0514bb6 to 4e0cce6 Compare January 22, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold On hold, pending further action/info
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants