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

Multistate implementation #21

Merged
merged 63 commits into from
Jan 26, 2024
Merged

Multistate implementation #21

merged 63 commits into from
Jan 26, 2024

Conversation

Foereaper
Copy link
Member

Requires the following PR and changing to Master submodule before merging
ElunaLuaEngine/Eluna#455

Multistate implementation to allow the use of multiple map update thread. Each map will have its own isolated Lua state, with a world state for thread-unsafe function calls.

Adds the following additional features:

  • Automatic bytecode precompilation and caching
  • Granular per-state script loading
  • Asynchronous SQL queries with function callbacks
  • Runtime persistent worldobject and map caching
  • Method state-specific tagging
  • Assorted methods for Map
  • Compatibility mode (enabled by default), allowing the engine to run like the old Eluna implementation

This will require some changes on both Mangos and Cmangos forks. I suggest staying on an older Eluna commit until thoroughly tested and implemented.

@Foereaper Foereaper marked this pull request as ready for review January 26, 2024 23:12
@Foereaper Foereaper merged commit fb48e0c into master Jan 26, 2024
2 checks passed
@Foereaper Foereaper deleted the multistate branch February 16, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants