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

Link benchmark timers to resource #135

Closed
xxshady opened this issue Apr 6, 2022 · 2 comments
Closed

Link benchmark timers to resource #135

xxshady opened this issue Apr 6, 2022 · 2 comments
Assignees
Labels
type: enhancement New feature or request

Comments

@xxshady
Copy link
Contributor

xxshady commented Apr 6, 2022

Description of the problem

Currently timers (alt.time()) are just static, which cause problems when using resource restart

Desired solution for the problem

Timers should be linked to the creator resource and cleared on resource stop

Alternatives you considered

No response

Additional context

No response

Version

dev/10.0-dev10

Scope

shared

@xxshady xxshady added the type: enhancement New feature or request label Apr 6, 2022
@LeonMrBonnie
Copy link
Contributor

Which timers do you mean?

@xxshady
Copy link
Contributor Author

xxshady commented Apr 6, 2022

benchmark timers, alt.time, alt.timeEnd

@LeonMrBonnie LeonMrBonnie self-assigned this Apr 12, 2022
LeonMrBonnie added a commit that referenced this issue May 20, 2022
* shared: Add resource class

* shared: Update SDK

* shared: Add ConfigNodeToV8 helper

* server: Add resource.config getter

* server: Add alt.getServerConfig

* shared: Check for number in scalar config nodes

* client: Add hasLocalMeta and getLocalMeta

* Revert "client: Add hasLocalMeta and getLocalMeta"

This reverts commit 81ea00a.

* general: Fix test-client workflow submodule pull

* shared: Fix missing exception description

* server: Fix missing voice channel constructor check

* shared: Add SetLazyAccessor helper

* client: Use SetLazyAccessor helper for rml element style

* client: Add netOwnerChange event

* client: Implement support for synthetic modules

* client: Use synthetic module for JSON modules

* client: Fix crash on worker destroy

* client: Fix json import assertion

* client: Only lock when needed

* client: Fix worker.pause and worker.resume

* shared: Change throw to console warning when clearing invalid timer

* shared: Add missing return

* shared: Show source location in invalid timer warning

* shared: Update SDK

* client: Add windowFocusChange event

* client: Move unlock

* shared: Update SDK

* client: Update TakeScreenshot and TakeScreenshotGameOnly

* client: Improve take screenshot functions

* client: Add no flush bytecode flag to fix bytecode module

* server: Fix linux build

* shared: Fix linux build

* client: Add setMinimapComponentPosition

* client: Add setMinimapIsRectangle

* shared: Fix crash in GetCurrentSourceOrigin

* shared: Implement async event callback waiting

* shared: Enable async event callback wait for resourceStart and resourceStop

* Fixed up, down, forward, back Vector3 static fields (#112)

* shared: Update SDK

* server: Add serverStarted event

* client: Shut down V8 in runtime OnDispose

* client: Adjustments for module reloading

* shared: Allow catching errors from V8Class::New

* shared: Update SDK

* client: Add alt.getScreenResolution

* shared: Update SDK

* client: Add normalized param to getCursorPos

* shared: Update SDK

* client: Add windowResolutionChange event

* shared: Update SDK

* client: Add normalized param to setCursorPos

* shared: Update SDK

* client: Fix setCursorPos type

* shared/client/server: Refactor raw emits (go brrr now)

* shared: Update sdk

* server: add boat anchor

* Updated for latest SDK changes

* Updated SDK

* general: Add shared folder to test workflows

* shared: Remove EventHandler reference debug log

* client: Adjust for SDK changes

* client: Fix path to C++ SDK

* client: Only include alt-sdk in dynamic builds

* client: Adjust export for new sdk

* shared: Update SDK

* shared: Add support for Vector2i and Vector3i in bind helpers

* client: Add webview size and pos property

* general: Fix test client workflow

* server: Refactor node initilization and add inspector config option

* server: Add source-maps config option

* server: Add custom-loader config option

* server: Add comment for each config option

* server: Add heap-profiler config option

* server: Fix blip attachedTo getter (#117)

* shared: Add performance profiler

* server: Add performance profiler support

* shared: Add missing header

* shared: Update SDK

* server: Return result for clothes & props setting

* client: Fix dynamic import (fixes #116)

* shared: Write all profiler samples to file

* general: Add profiler tool

* general: Unfuck formatting

* shared: Fix raw value emits sending invalid entity types (fixes #119)

* shared: Fix raw value instance check

* shared: Move invalid raw value type to enum start

* shared: Update SDK

* shared: Add base path arg to profiler dump method

* server: Fix missing base path arg

* shared: Update SDK

* client: Enable profiler if set in config

* Update NodeJS to v17 (#121)

* server: Update NodeJS to v17.7.0

* server: Move bootstrap code to external JS file

* server: Update NodeJS binaries

* server: Remove deprecated function

* server: Remove custom-loader config option

* server: Add config options for fetch, webcrypto and network imports

* general: Fix Linux deploy

* server: Remove dead code from bootstrapper

* server: Move NodeJS binaries to CDN

* server: Fix NodeJS download from CDN

* server: Remove left over binaries

* server: Fix bootstrapper typo

* server: Stop NodeJS event loop on resource stop

* server: Remove usage of some deprecated NodeJS APIs

* server: Remove Vector2 check from ColshapePolygon ctor

* shared: Update SDK

* shared: Add alt.stringToSHA256

* server: Fix server build task on Linux

* server: Display deps version

* shared/client/server: Refactor deps download

* Add client bootstrapper (#124)

* client: Add bootstrapper

* client: Use std::vector instead of raw C array

* client: Remove some redundant code

* client/server/shared: Add support for JS bindings

* client: Use alt functions instead of global variable

* shared: Move Vector3 bindings to JS

* shared: Add Vector3 angleTo and angleToDegrees (Thanks zziger)

* shared: Add RGBA JS bindings

* shared: Add Vector2 JS bindings

* shared: Fix Vector2 bindings typo

* shared: Remove redundant newline

* shared: Fix RGBA toInt

* general: Add intellisense to JS bindings files

* shared: Add Vector3 and Vector2 distanceToSquared

* client: Fix bootstrapper

* shared/client: Add main bindings and Utils class

* shared: Rename Main bindings to Utils bindings

* shared: Cache Resource class instances

* shared/client/server: Cleanup in shared resource class on stop

* shared: Add more JS util functions (#127)

* shared/server/client: Remove some alt::String usages

* shared: Add RGBA toArray method

* shared: Add RGBA constructor overloads

* server: Improve bootstrapper

* fix client js compilation

* shared/server: Add config option to disable profiler logs

* shared: Add frozen and collision property (#131)

* shared: Fixed float parse in Vector methods (#132)

* shared: Don't mark rejected promise in events as handled

* shared: Update SDK

* server: Fix server hang on exit

* shared: Update SDK

* client: Add blip.isRemote

* client: Add world-screen overloads (#134)

* shared: Start timer ids at 1

* general: Use require instead of import in profiler script

* shared: Update SDK

* client: Fix exceptions in top level code stack trace

* shared/client: Add new JS utils (#136)

* shared: Move shared Utils on top & add waitFor

* shared: Use waitFor in Utils & fix requestCutscene

* shared: Fix Utils formatting

* shared: Replace requestClipSet with a ref to requestAnimSet

* shared: Replace waitFor interval with everyTick

* shared: Fix Utils waitFor everyTick

* shared/client/server: Exterminate alt::String and alt::StringView (#137)

* shared: Update SDK

* shared: Update SDK

* server: Add playerRequestControl event

* server: Fix inspector config options

* shared: Fix RGBA constructor

* shared: Add CreateCustomObject helper

* shared: Add V8_GET_DATA macro

* client: Update rml element style object code

* shared: Track benchmark timers per resource (Closes #135)

* Add alt.isCursorVisible method (#139)

* shared: Add enumerator and query callback to CreateCustomObject

* shared: Allow converting all v8::Name values to string with helper

* shared: Freeze custom objects

* server: Return responsive object for vehicle.neon (Closes #138)

* shared: Add missing CppValue overloads

* client/server/shared: Do more cleanup in resource stop

* server: Don't use deprecated way of creating uv loop

* shared: Fix RGBA constructor uninitialized variables

* client/shared: Fix small errors

* client: Fix workers

* client: More thread safety in CEventHandler

* client: Add context info to alt.Profiler.heapStats

* client: Add global handle size to alt.Profiler.heapStats and heap cmd

* shared: Fix conversion of 33-53bit integer values

* shared: Fix some compiler warnings

* server: Use consistent string specifiers in bootstrapper

* server: Bootstrapper cleanup

* update cpp-sdk

* update cpp-sdk

* client: add discord api functions

* server: add hasAutoAttachTrailer to GetVehicleModelByHash

* server: Fix bootstrapper

* client: Fix potential memory leak

* shared: Update SDK

* client: Refactor Discord OAuth2 API

* shared: Don't log error in Utils.waitFor

* client: Reject with error instead of string

* shared: Set original stack to new error

* client: Fix resource import/export

* client: Add timeout to resource start

* client: Add (unfinished) exception handler for V8 JIT code

* server: Add discordUserID property to beforeConnect connection info obj

* shared: Update SDK

* server: Proper connection info object management

* server: Pass connection info instance in  beforePlayerConnect event

* server: Add isAccepted getter to ConnectionInfo

* Revert "client: Add (unfinished) exception handler for V8 JIT code"

This reverts commit 9627faa.

* client: Remove redundant TODOs

* shared: Fix conversion for big integer values

* shared: Remove debug logs

* shared/client: Add V8_CHECK_NORETN & fix emitClient return (#142)

* shared: Add V8_CHECK_NORETN macro

* server: Fix emitClient and emitClientRaw not sending events

* server: Fix redundant calls in emitClient & emitClientRaw

* Removed debug log (#144)

* shared: Throw error instead of warning when clearing invalid timer

* general/client: Delete some unused files

* server/shared: Deprecate some outdated resource functions

* client: Disable webview pos setter for now

* shared: Fix rc into dev merge

* client: Fix workers (kinda...)

* shared: Emit resourceError event even when source file is unknown

* client/shared: Add stack trace argument to resourceError event

* server: Temp fix for NodeJS version

* Revert "server: Temp fix for NodeJS version"

This reverts commit 45c2391.

Co-authored-by: Dzhemesiuk Artem <programming@zziger.me>
Co-authored-by: Blue <florian.uaz@web.de>
Co-authored-by: Vadim Zubkov <vadzz@vadzz.dev>
Co-authored-by: xshady <54737754+xxshady@users.noreply.github.com>
Co-authored-by: YannBcf <54820465+YannBcf@users.noreply.github.com>
Co-authored-by: Fabian Terhorst <fabian.terhorst@gmail.com>
Co-authored-by: Egor <32245758+JustCup@users.noreply.github.com>
Co-authored-by: Vektor <whiteman.chr@hotmail.com>
Co-authored-by: tastydev <39250826+tastydev@users.noreply.github.com>
LeonMrBonnie added a commit that referenced this issue Jun 6, 2022
* shared: Add resource class

* shared: Update SDK

* shared: Add ConfigNodeToV8 helper

* server: Add resource.config getter

* server: Add alt.getServerConfig

* shared: Check for number in scalar config nodes

* client: Add hasLocalMeta and getLocalMeta

* Revert "client: Add hasLocalMeta and getLocalMeta"

This reverts commit 8075dfe [formerly 81ea00a].

* general: Fix test-client workflow submodule pull

* shared: Fix missing exception description

* server: Fix missing voice channel constructor check

* shared: Add SetLazyAccessor helper

* client: Use SetLazyAccessor helper for rml element style

* client: Add netOwnerChange event

* client: Implement support for synthetic modules

* client: Use synthetic module for JSON modules

* client: Fix crash on worker destroy

* client: Fix json import assertion

* client: Only lock when needed

* client: Fix worker.pause and worker.resume

* shared: Change throw to console warning when clearing invalid timer

* shared: Add missing return

* shared: Show source location in invalid timer warning

* shared: Update SDK

* client: Add windowFocusChange event

* client: Move unlock

* shared: Update SDK

* client: Update TakeScreenshot and TakeScreenshotGameOnly

* client: Improve take screenshot functions

* client: Add no flush bytecode flag to fix bytecode module

* server: Fix linux build

* shared: Fix linux build

* client: Add setMinimapComponentPosition

* client: Add setMinimapIsRectangle

* shared: Fix crash in GetCurrentSourceOrigin

* shared: Implement async event callback waiting

* shared: Enable async event callback wait for resourceStart and resourceStop

* Fixed up, down, forward, back Vector3 static fields (#112)

* shared: Update SDK

* server: Add serverStarted event

* client: Shut down V8 in runtime OnDispose

* client: Adjustments for module reloading

* shared: Allow catching errors from V8Class::New

* shared: Update SDK

* client: Add alt.getScreenResolution

* shared: Update SDK

* client: Add normalized param to getCursorPos

* shared: Update SDK

* client: Add windowResolutionChange event

* shared: Update SDK

* client: Add normalized param to setCursorPos

* shared: Update SDK

* client: Fix setCursorPos type

* shared/client/server: Refactor raw emits (go brrr now)

* shared: Update sdk

* server: add boat anchor

* Updated for latest SDK changes

* Updated SDK

* general: Add shared folder to test workflows

* shared: Remove EventHandler reference debug log

* client: Adjust for SDK changes

* client: Fix path to C++ SDK

* client: Only include alt-sdk in dynamic builds

* client: Adjust export for new sdk

* shared: Update SDK

* shared: Add support for Vector2i and Vector3i in bind helpers

* client: Add webview size and pos property

* general: Fix test client workflow

* server: Refactor node initilization and add inspector config option

* server: Add source-maps config option

* server: Add custom-loader config option

* server: Add comment for each config option

* server: Add heap-profiler config option

* server: Fix blip attachedTo getter (#117)

* shared: Add performance profiler

* server: Add performance profiler support

* shared: Add missing header

* shared: Update SDK

* server: Return result for clothes & props setting

* client: Fix dynamic import (fixes #116)

* shared: Write all profiler samples to file

* general: Add profiler tool

* general: Unfuck formatting

* shared: Fix raw value emits sending invalid entity types (fixes #119)

* shared: Fix raw value instance check

* shared: Move invalid raw value type to enum start

* shared: Update SDK

* shared: Add base path arg to profiler dump method

* server: Fix missing base path arg

* shared: Update SDK

* client: Enable profiler if set in config

* Update NodeJS to v17 (#121)

* server: Update NodeJS to v17.7.0

* server: Move bootstrap code to external JS file

* server: Update NodeJS binaries

* server: Remove deprecated function

* server: Remove custom-loader config option

* server: Add config options for fetch, webcrypto and network imports

* general: Fix Linux deploy

* server: Remove dead code from bootstrapper

* server: Move NodeJS binaries to CDN

* server: Fix NodeJS download from CDN

* server: Remove left over binaries

* server: Fix bootstrapper typo

* server: Stop NodeJS event loop on resource stop

* server: Remove usage of some deprecated NodeJS APIs

* server: Remove Vector2 check from ColshapePolygon ctor

* shared: Update SDK

* shared: Add alt.stringToSHA256

* server: Fix server build task on Linux

* server: Display deps version

* shared/client/server: Refactor deps download

* Add client bootstrapper (#124)

* client: Add bootstrapper

* client: Use std::vector instead of raw C array

* client: Remove some redundant code

* client/server/shared: Add support for JS bindings

* client: Use alt functions instead of global variable

* shared: Move Vector3 bindings to JS

* shared: Add Vector3 angleTo and angleToDegrees (Thanks zziger)

* shared: Add RGBA JS bindings

* shared: Add Vector2 JS bindings

* shared: Fix Vector2 bindings typo

* shared: Remove redundant newline

* shared: Fix RGBA toInt

* general: Add intellisense to JS bindings files

* shared: Add Vector3 and Vector2 distanceToSquared

* client: Fix bootstrapper

* shared/client: Add main bindings and Utils class

* shared: Rename Main bindings to Utils bindings

* shared: Cache Resource class instances

* shared/client/server: Cleanup in shared resource class on stop

* shared: Add more JS util functions (#127)

* shared/server/client: Remove some alt::String usages

* shared: Add RGBA toArray method

* shared: Add RGBA constructor overloads

* server: Improve bootstrapper

* fix client js compilation

* shared/server: Add config option to disable profiler logs

* shared: Add frozen and collision property (#131)

* shared: Fixed float parse in Vector methods (#132)

* shared: Don't mark rejected promise in events as handled

* shared: Update SDK

* server: Fix server hang on exit

* shared: Update SDK

* client: Add blip.isRemote

* client: Add world-screen overloads (#134)

* shared: Start timer ids at 1

* general: Use require instead of import in profiler script

* shared: Update SDK

* client: Fix exceptions in top level code stack trace

* shared/client: Add new JS utils (#136)

* shared: Move shared Utils on top & add waitFor

* shared: Use waitFor in Utils & fix requestCutscene

* shared: Fix Utils formatting

* shared: Replace requestClipSet with a ref to requestAnimSet

* shared: Replace waitFor interval with everyTick

* shared: Fix Utils waitFor everyTick

* shared/client/server: Exterminate alt::String and alt::StringView (#137)

* shared: Update SDK

* shared: Update SDK

* server: Add playerRequestControl event

* server: Fix inspector config options

* shared: Fix RGBA constructor

* shared: Add CreateCustomObject helper

* shared: Add V8_GET_DATA macro

* client: Update rml element style object code

* shared: Track benchmark timers per resource (Closes #135)

* Add alt.isCursorVisible method (#139)

* shared: Add enumerator and query callback to CreateCustomObject

* shared: Allow converting all v8::Name values to string with helper

* shared: Freeze custom objects

* server: Return responsive object for vehicle.neon (Closes #138)

* shared: Add missing CppValue overloads

* client/server/shared: Do more cleanup in resource stop

* server: Don't use deprecated way of creating uv loop

* shared: Fix RGBA constructor uninitialized variables

* client/shared: Fix small errors

* client: Fix workers

* client: More thread safety in CEventHandler

* client: Add context info to alt.Profiler.heapStats

* client: Add global handle size to alt.Profiler.heapStats and heap cmd

* shared: Fix conversion of 33-53bit integer values

* shared: Fix some compiler warnings

* server: Use consistent string specifiers in bootstrapper

* server: Bootstrapper cleanup

* update cpp-sdk

* update cpp-sdk

* client: add discord api functions

* server: add hasAutoAttachTrailer to GetVehicleModelByHash

* server: Fix bootstrapper

* client: Fix potential memory leak

* shared: Update SDK

* client: Refactor Discord OAuth2 API

* shared: Don't log error in Utils.waitFor

* client: Reject with error instead of string

* shared: Set original stack to new error

* client: Fix resource import/export

* client: Add timeout to resource start

* client: Add (unfinished) exception handler for V8 JIT code

* server: Add discordUserID property to beforeConnect connection info obj

* shared: Update SDK

* server: Proper connection info object management

* server: Pass connection info instance in  beforePlayerConnect event

* server: Add isAccepted getter to ConnectionInfo

* Revert "client: Add (unfinished) exception handler for V8 JIT code"

This reverts commit b33d6b8 [formerly 9627faa].

* client: Remove redundant TODOs

* shared: Fix conversion for big integer values

* shared: Remove debug logs

* shared/client: Add V8_CHECK_NORETN & fix emitClient return (#142)

* shared: Add V8_CHECK_NORETN macro

* server: Fix emitClient and emitClientRaw not sending events

* server: Fix redundant calls in emitClient & emitClientRaw

* Removed debug log (#144)

* shared: Throw error instead of warning when clearing invalid timer

* general/client: Delete some unused files

* server/shared: Deprecate some outdated resource functions

* client: Disable webview pos setter for now

* shared: Fix rc into dev merge

* client: Fix workers (kinda...)

* shared: Emit resourceError event even when source file is unknown

* client/shared: Add stack trace argument to resourceError event

* server: Temp fix for NodeJS version

* Revert "server: Temp fix for NodeJS version"

This reverts commit b8a883f [formerly 45c2391].

Co-authored-by: Dzhemesiuk Artem <programming@zziger.me>
Co-authored-by: Blue <florian.uaz@web.de>
Co-authored-by: Vadim Zubkov <vadzz@vadzz.dev>
Co-authored-by: xshady <54737754+xxshady@users.noreply.github.com>
Co-authored-by: YannBcf <54820465+YannBcf@users.noreply.github.com>
Co-authored-by: Fabian Terhorst <fabian.terhorst@gmail.com>
Co-authored-by: Egor <32245758+JustCup@users.noreply.github.com>
Co-authored-by: Vektor <whiteman.chr@hotmail.com>
Co-authored-by: tastydev <39250826+tastydev@users.noreply.github.com>
Former-commit-id: cac555d
LeonMrBonnie added a commit that referenced this issue Jun 6, 2022
* shared: Add resource class

* shared: Update SDK

* shared: Add ConfigNodeToV8 helper

* server: Add resource.config getter

* server: Add alt.getServerConfig

* shared: Check for number in scalar config nodes

* client: Add hasLocalMeta and getLocalMeta

* Revert "client: Add hasLocalMeta and getLocalMeta"

This reverts commit 01489cd [formerly 9d50865].

* general: Fix test-client workflow submodule pull

* shared: Fix missing exception description

* server: Fix missing voice channel constructor check

* shared: Add SetLazyAccessor helper

* client: Use SetLazyAccessor helper for rml element style

* client: Add netOwnerChange event

* client: Implement support for synthetic modules

* client: Use synthetic module for JSON modules

* client: Fix crash on worker destroy

* client: Fix json import assertion

* client: Only lock when needed

* client: Fix worker.pause and worker.resume

* shared: Change throw to console warning when clearing invalid timer

* shared: Add missing return

* shared: Show source location in invalid timer warning

* shared: Update SDK

* client: Add windowFocusChange event

* client: Move unlock

* shared: Update SDK

* client: Update TakeScreenshot and TakeScreenshotGameOnly

* client: Improve take screenshot functions

* client: Add no flush bytecode flag to fix bytecode module

* server: Fix linux build

* shared: Fix linux build

* client: Add setMinimapComponentPosition

* client: Add setMinimapIsRectangle

* shared: Fix crash in GetCurrentSourceOrigin

* shared: Implement async event callback waiting

* shared: Enable async event callback wait for resourceStart and resourceStop

* Fixed up, down, forward, back Vector3 static fields (#112)

* shared: Update SDK

* server: Add serverStarted event

* client: Shut down V8 in runtime OnDispose

* client: Adjustments for module reloading

* shared: Allow catching errors from V8Class::New

* shared: Update SDK

* client: Add alt.getScreenResolution

* shared: Update SDK

* client: Add normalized param to getCursorPos

* shared: Update SDK

* client: Add windowResolutionChange event

* shared: Update SDK

* client: Add normalized param to setCursorPos

* shared: Update SDK

* client: Fix setCursorPos type

* shared/client/server: Refactor raw emits (go brrr now)

* shared: Update sdk

* server: add boat anchor

* Updated for latest SDK changes

* Updated SDK

* general: Add shared folder to test workflows

* shared: Remove EventHandler reference debug log

* client: Adjust for SDK changes

* client: Fix path to C++ SDK

* client: Only include alt-sdk in dynamic builds

* client: Adjust export for new sdk

* shared: Update SDK

* shared: Add support for Vector2i and Vector3i in bind helpers

* client: Add webview size and pos property

* general: Fix test client workflow

* server: Refactor node initilization and add inspector config option

* server: Add source-maps config option

* server: Add custom-loader config option

* server: Add comment for each config option

* server: Add heap-profiler config option

* server: Fix blip attachedTo getter (#117)

* shared: Add performance profiler

* server: Add performance profiler support

* shared: Add missing header

* shared: Update SDK

* server: Return result for clothes & props setting

* client: Fix dynamic import (fixes #116)

* shared: Write all profiler samples to file

* general: Add profiler tool

* general: Unfuck formatting

* shared: Fix raw value emits sending invalid entity types (fixes #119)

* shared: Fix raw value instance check

* shared: Move invalid raw value type to enum start

* shared: Update SDK

* shared: Add base path arg to profiler dump method

* server: Fix missing base path arg

* shared: Update SDK

* client: Enable profiler if set in config

* Update NodeJS to v17 (#121)

* server: Update NodeJS to v17.7.0

* server: Move bootstrap code to external JS file

* server: Update NodeJS binaries

* server: Remove deprecated function

* server: Remove custom-loader config option

* server: Add config options for fetch, webcrypto and network imports

* general: Fix Linux deploy

* server: Remove dead code from bootstrapper

* server: Move NodeJS binaries to CDN

* server: Fix NodeJS download from CDN

* server: Remove left over binaries

* server: Fix bootstrapper typo

* server: Stop NodeJS event loop on resource stop

* server: Remove usage of some deprecated NodeJS APIs

* server: Remove Vector2 check from ColshapePolygon ctor

* shared: Update SDK

* shared: Add alt.stringToSHA256

* server: Fix server build task on Linux

* server: Display deps version

* shared/client/server: Refactor deps download

* Add client bootstrapper (#124)

* client: Add bootstrapper

* client: Use std::vector instead of raw C array

* client: Remove some redundant code

* client/server/shared: Add support for JS bindings

* client: Use alt functions instead of global variable

* shared: Move Vector3 bindings to JS

* shared: Add Vector3 angleTo and angleToDegrees (Thanks zziger)

* shared: Add RGBA JS bindings

* shared: Add Vector2 JS bindings

* shared: Fix Vector2 bindings typo

* shared: Remove redundant newline

* shared: Fix RGBA toInt

* general: Add intellisense to JS bindings files

* shared: Add Vector3 and Vector2 distanceToSquared

* client: Fix bootstrapper

* shared/client: Add main bindings and Utils class

* shared: Rename Main bindings to Utils bindings

* shared: Cache Resource class instances

* shared/client/server: Cleanup in shared resource class on stop

* shared: Add more JS util functions (#127)

* shared/server/client: Remove some alt::String usages

* shared: Add RGBA toArray method

* shared: Add RGBA constructor overloads

* server: Improve bootstrapper

* fix client js compilation

* shared/server: Add config option to disable profiler logs

* shared: Add frozen and collision property (#131)

* shared: Fixed float parse in Vector methods (#132)

* shared: Don't mark rejected promise in events as handled

* shared: Update SDK

* server: Fix server hang on exit

* shared: Update SDK

* client: Add blip.isRemote

* client: Add world-screen overloads (#134)

* shared: Start timer ids at 1

* general: Use require instead of import in profiler script

* shared: Update SDK

* client: Fix exceptions in top level code stack trace

* shared/client: Add new JS utils (#136)

* shared: Move shared Utils on top & add waitFor

* shared: Use waitFor in Utils & fix requestCutscene

* shared: Fix Utils formatting

* shared: Replace requestClipSet with a ref to requestAnimSet

* shared: Replace waitFor interval with everyTick

* shared: Fix Utils waitFor everyTick

* shared/client/server: Exterminate alt::String and alt::StringView (#137)

* shared: Update SDK

* shared: Update SDK

* server: Add playerRequestControl event

* server: Fix inspector config options

* shared: Fix RGBA constructor

* shared: Add CreateCustomObject helper

* shared: Add V8_GET_DATA macro

* client: Update rml element style object code

* shared: Track benchmark timers per resource (Closes #135)

* Add alt.isCursorVisible method (#139)

* shared: Add enumerator and query callback to CreateCustomObject

* shared: Allow converting all v8::Name values to string with helper

* shared: Freeze custom objects

* server: Return responsive object for vehicle.neon (Closes #138)

* shared: Add missing CppValue overloads

* client/server/shared: Do more cleanup in resource stop

* server: Don't use deprecated way of creating uv loop

* shared: Fix RGBA constructor uninitialized variables

* client/shared: Fix small errors

* client: Fix workers

* client: More thread safety in CEventHandler

* client: Add context info to alt.Profiler.heapStats

* client: Add global handle size to alt.Profiler.heapStats and heap cmd

* shared: Fix conversion of 33-53bit integer values

* shared: Fix some compiler warnings

* server: Use consistent string specifiers in bootstrapper

* server: Bootstrapper cleanup

* update cpp-sdk

* update cpp-sdk

* client: add discord api functions

* server: add hasAutoAttachTrailer to GetVehicleModelByHash

* server: Fix bootstrapper

* client: Fix potential memory leak

* shared: Update SDK

* client: Refactor Discord OAuth2 API

* shared: Don't log error in Utils.waitFor

* client: Reject with error instead of string

* shared: Set original stack to new error

* client: Fix resource import/export

* client: Add timeout to resource start

* client: Add (unfinished) exception handler for V8 JIT code

* server: Add discordUserID property to beforeConnect connection info obj

* shared: Update SDK

* server: Proper connection info object management

* server: Pass connection info instance in  beforePlayerConnect event

* server: Add isAccepted getter to ConnectionInfo

* Revert "client: Add (unfinished) exception handler for V8 JIT code"

This reverts commit be59f33 [formerly d98b314].

* client: Remove redundant TODOs

* shared: Fix conversion for big integer values

* shared: Remove debug logs

* shared/client: Add V8_CHECK_NORETN & fix emitClient return (#142)

* shared: Add V8_CHECK_NORETN macro

* server: Fix emitClient and emitClientRaw not sending events

* server: Fix redundant calls in emitClient & emitClientRaw

* Removed debug log (#144)

* shared: Throw error instead of warning when clearing invalid timer

* general/client: Delete some unused files

* server/shared: Deprecate some outdated resource functions

* client: Disable webview pos setter for now

* shared: Fix rc into dev merge

* client: Fix workers (kinda...)

* shared: Emit resourceError event even when source file is unknown

* client/shared: Add stack trace argument to resourceError event

* server: Temp fix for NodeJS version

* Revert "server: Temp fix for NodeJS version"

This reverts commit 86008b0 [formerly 7e7397f].

Co-authored-by: Dzhemesiuk Artem <programming@zziger.me>
Co-authored-by: Blue <florian.uaz@web.de>
Co-authored-by: Vadim Zubkov <vadzz@vadzz.dev>
Co-authored-by: xshady <54737754+xxshady@users.noreply.github.com>
Co-authored-by: YannBcf <54820465+YannBcf@users.noreply.github.com>
Co-authored-by: Fabian Terhorst <fabian.terhorst@gmail.com>
Co-authored-by: Egor <32245758+JustCup@users.noreply.github.com>
Co-authored-by: Vektor <whiteman.chr@hotmail.com>
Co-authored-by: tastydev <39250826+tastydev@users.noreply.github.com>
Former-commit-id: cac555d
zziger pushed a commit to zziger/altv-js-module that referenced this issue Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants