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

ALTV-659: JS module optimizations #351

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

Conversation

monntecc
Copy link

Main changes:

  • Added ability to create JS bindings, same as v2-module do
  • Moved some bindings from C++ to JS side (performance improved up to 200% for some calls)
  • Changed script for JS bindings generation (moved from v2 module)
  • Optimized a little bit v8 stack trace
  • Added new magic_enum dependency (for enums manipulation)

Next bindings was moved from C++ to JS side:

  • alt.hash

  • alt.Vector3

  • alt.Vector2

  • alt.RGBA

  • alt.Quaternion

  • getMeta, setMeta, hasMeta, getMetaKeys

  • getSyncedMeta, setSyncedMeta, hasSyncedMeta, getSyncedMetaKeys

  • getStreamSyncedMeta, setStreamSyncedMeta. hasStreamSyncedMeta. getStreamSyncedMetaKeys

  • alt.setInterval

  • alt.clearInterval

  • alt.setTimeout

  • alt.clearTimeout

  • alt.time

  • alt.timeEnd

  • alt.everyTick

  • alt.nextTick

  • alt.clearEveryTick

  • alt.clearNextTick

  • alt.clearTimer

  • static COUNT method on entities

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