Slow Refresh Rate For Smooth Animations
The UI displays the vehicle, along with the current colours of neon lights and headlights. In smooth animations, such as 'breathing' and 'smooth', the colour can change 10-40 times a second, and every time, the colours on the UI should be updated. However, sending NUI messages at this rate can cause high resource usage. Setting the config below to 'true' results in the UI only updating with completely separate colours, not for every step in the transition.
-- Will provide a decrease in resource usage when players have the UI open - however, smooth animations will show gradual colour transitions on the UI
-- Turn this on if you really need the resources
Config.SlowRefreshRateForSmoothAnimations = true
Last updated