#17mov_Hud reduce resmon by using ox_lib caching
1 messages · Page 1 of 1 (latest)
I think Malizniak will be against this since he doesn’t want to use any external libs or create his one, I completely understand his decision.
Maybe he could create his own caching inside of the HUD
An idea that reduces script usage is using 2 seperate loops with different waits, store health, speed etc in a global variable and then have a loop that runs say every 200ms to update those values but only send the new values to UI every 2000ms or whatever
and make sure you're only sending updates if something actually changes about the state