View Issue Details

IDProjectCategoryView StatusLast Update
0009866New Feature Requests[All Projects] Generalpublic2018-07-08 07:16
ReporterMrDadoszAssigned To 
PrioritylowSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0009866: Vehicle optimisation
Description

GTA is calculating vehicle physics even if it's frozen. This causes high CPU usage in places, where are a lot of cars. MTA should disable physics for vehicles (if it's possible) when someone is using the setElementFrozen or setElementCollisionsEnabled functions. That should help for RPG servers, where many players have + 3 vehicles.

Steps To Reproduce
  1. Go to airport and check CPU usage.
  2. run local d = 0; for i = 1, 20 do local v = createVehicle(404, 1769+d,-2581,13.6,0,0,0); d = d - 2.5; end
  3. check CPU usage
    4, run local d = 0; for i = 1, 20 do local v = createVehicle(404, 1769+d,-2581,13.6,0,0,0); setElementFrozen(v, true); d = d - 2.5; end
  4. check CPU usage
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change