Drakath Posted June 7, 2014 Share Posted June 7, 2014 Can someone list all those from fastest to slowest? onClientRender, onClientHUDRender, onClientPreRender, setTimer ( func, 50, 0 ) Link to comment
xXMADEXx Posted June 7, 2014 Share Posted June 7, 2014 All the renders are basically the same, they just trigger at different times in the frame. https://wiki.multitheftauto.com/wiki/Ga ... sing_Order Link to comment
cheez3d Posted June 7, 2014 Share Posted June 7, 2014 1) onClientRender - This event is triggered every time GTA renders a new frame. 2) onClientHUDRender - This event is triggered before GTA renders the HUD. 3) onClientPreRender - This event is triggered every time before GTA renders a new frame. 4) setTimer(function,50,0) - Executes every 50 milliseconds => 20 executions per second. 1,2 and 3 - execution speed depends directly on your framerate (if you have 10 FPS it will only get executed 10 times per second, but if you have 60 FPS it will get executed 60 times per second) Link to comment
Drakath Posted June 7, 2014 Author Share Posted June 7, 2014 What about commands showhud and showchat, do they remove render event when command is executed? Link to comment
xXMADEXx Posted June 7, 2014 Share Posted June 7, 2014 No, they don't remove the event. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now