Skip to content

Exposes AsyncCompute and JSON to Lua API#1130

Open
narknon wants to merge 13 commits into
mainfrom
asyncomputelua
Open

Exposes AsyncCompute and JSON to Lua API#1130
narknon wants to merge 13 commits into
mainfrom
asyncomputelua

Conversation

@narknon

@narknon narknon commented Dec 24, 2025

Copy link
Copy Markdown
Collaborator

Description

This pull request introduces the AsyncCompute and JSON functionalities to the Lua API, enabling Lua mods to perform asynchronous computations on worker threads and to serialize/deserialize data in JSON format. This enhances modding capabilities by allowing CPU-intensive tasks to be executed without blocking the main thread and facilitating data exchange (safely, unlike with ExecuteAsync that allows unrestricted access to main lua state).

Type of change

  • New feature (non-breaking change which adds functionality)
  • Is/requires documentation update

How has this been tested?

The new functionalities have been tested by implementing and executing sample asynchronous tasks (sleep, compute, other Lua code) and by encoding and decoding data structures to and from JSON format within Lua mods.

Checklist

  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • I have added the necessary description of this PR to the changelog, and I have followed the same format as other entries.

Screenshots

Additional context

The glaze library has been updated to v6.4.0 for improved JSON handling.

@github-actions

github-actions Bot commented Dec 24, 2025

Copy link
Copy Markdown
Contributor
CMAKE-Game__Debug__Win64 Download Logs
Build Details
Name Information
PR Commit 024d18d
Merge Commit 9bc507b
Size 38.13 MB
Last Updated Jan 6, 26, 10:18:04 PM UTC
Expires At Jan 20, 26, 10:18:00 PM UTC

CMAKE-Game__Shipping__Win64 Download Logs
Build Details
Name Information
PR Commit 024d18d
Merge Commit 9bc507b
Size 34.69 MB
Last Updated Jan 6, 26, 10:23:28 PM UTC
Expires At Jan 20, 26, 10:23:25 PM UTC

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