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

Add a "sync" argument for vehicles, as is done for peds #3333

Closed
1 task done
FileEX opened this issue Mar 9, 2024 · 2 comments · Fixed by #3334
Closed
1 task done

Add a "sync" argument for vehicles, as is done for peds #3333

FileEX opened this issue Mar 9, 2024 · 2 comments · Fixed by #3334
Labels
enhancement New feature or request
Milestone

Comments

@FileEX
Copy link
Contributor

FileEX commented Mar 9, 2024

Is your feature request related to a problem? Please describe.

In the case of peds, when we create static peds that only stand, we can disable their synchronization by setting the "sync" argument to false, which is good for performance.

I think this possibility would also be useful in the case of vehicles, when we create some static vehicles that just stand and do not require synchronization.

I know - You can create a vehicle on the client side, but a ped can also be created on the client side. Why add such a synchronization argument for vehicles? Why not? Since it was added for peds, it would also be useful for vehicles, especially since sometimes a vehicle needs to be created, e.g. from a database, and this is a better solution than sending data from the database to the client.

Describe the solution you'd like

Add a "sync" argument for vehicles in createVehicle, as was done for peds in createPed

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
@FileEX FileEX added the enhancement New feature or request label Mar 9, 2024
@znvjder
Copy link
Contributor

znvjder commented Mar 9, 2024

Great idea. I've already added a PR that addresses that. We can also do the same for make static objects on serverside.

#3334

@MrDadosz
Copy link

MrDadosz commented Mar 10, 2024

I don't know if that's possible with RenderWare but there's should be option to disable vehicle physics for better client's performance and they should behave like objects. A lot of servers are using setElementFrozen for handbrake and they don't need to update vehicle physics, and it's CPU consuming. Even when they are frozen, they react to environment (they are jumping, glitching when you put an object inside it). That would boost up performance. Probably it should be another issue topic.

@botder botder added this to the 1.6.1 milestone May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants