citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.41k stars 2.01k forks source link

FiveM gets spawned as child process of browser when launched from chromium browser #2510

Open Snowthisway opened 2 months ago

Snowthisway commented 2 months ago

What happened?

VVbtCA94-jY9AxJjJ-4RT2u4Bi-zJJEC2nW

https://github.com/citizenfx/fivem/assets/18295918/d8ebf6b1-a379-4e7f-a41b-4001e7b4b53b

FiveM appears to get spawned as a child process of the browser when launched from a chromium browser (chrome, edge, operagx) via fivem://connect/:. This causes major issues with browsers like OperaGX which limits the resources for its child processes (picture attached). When launched from Firefox this is not the case. I am unsure if performance is effected when its spawned under other browsers.

image (1) XhdTFkV4-h8fZaWvZ-nwP6tqmq-5Nj8dEaG

Expected result

FiveM should not be spawned as a child process of the browser

Reproduction steps

  1. Connect to a server via fivem://connect/: using a chromium browser like OperaGX, Edge or Chrome.
  2. Grab pslist64 and run it from the command line 'pslist64 -t'.
  3. You see FiveM running as a child process to the browser.

Importancy

Unknown

Area(s)

FiveM

Specific version(s)

FiveM 8036

Additional information

No response

Snowthisway commented 1 month ago

This is a big issue for us since we have a web based queue. It would be really nice if this could be looked at.