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

Javascript server-side code is at 0.03 CPU msec even with no code #3021

Open
utkuali opened this issue Dec 20, 2024 · 1 comment
Open

Javascript server-side code is at 0.03 CPU msec even with no code #3021

utkuali opened this issue Dec 20, 2024 · 1 comment
Labels
bug triage Needs a preliminary assessment to determine the urgency and required action

Comments

@utkuali
Copy link
Contributor

utkuali commented Dec 20, 2024

What happened?

Even if the server code does not have any intervals, ticks or loops. or not even a code it uses ~3% time and 0.03ms in resource monitor.

Onesync and population is on, also these (not sure if makes a difference):

sv_experimentalOnesyncPopulation true
sv_experimentalNetGameEventHandler true
onesync_distanceCullVehicles true
onesync_forceMigration true

setr game_enableFlyThroughWindscreen true

Expected result

Should be 0.00ms while idle?

Reproduction steps

  1. simply create a resource folder and a javascript file
  2. add javascript file as server_script
  3. either write any code or none at all
  4. open resource monitor and see the results

Importancy

Slight inconvenience

Area(s)

FXServer

Specific version(s)

FXServer 12092, but happens on 7290 latest recommended too

Additional information

This might be the expected behavior; I was just concerned that every script has at least 0.03ms and 3% time usage. Thanks in advance.

@utkuali utkuali added bug triage Needs a preliminary assessment to determine the urgency and required action labels Dec 20, 2024
@thelindat
Copy link
Contributor

JS is never idle and runs every tick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

No branches or pull requests

2 participants