HunT Posted October 12, 2011 Share Posted October 12, 2011 Shader Panel By PRO|Hunterix This panel active the shader water and shader vehicle or nothing on player join. (Better in Race Mode) --------------------------------------- Download Here https://community.multitheftauto.com/index.php?p= ... ls&id=3011 Panel By PRO|Race Community Main Panel Water enable effect Vehicle enable effect Close effect Warning : Many kids download my scripts and open the local server with tag PRO| (example PRO|Race 3.0 facepalm) The original server is : PRO|Race 24/7 1.1 Tnx For Download. Link to comment
JR10 Posted October 12, 2011 Share Posted October 12, 2011 Another awesome design, good job, keep up. Link to comment
HunT Posted October 12, 2011 Author Share Posted October 12, 2011 Tnx 60% of players in mta lag with shader effect.With this panel is possible select or no. My idea is onClientGuiClick check the fps. Example under 20 fps dont enable the function . . But is very hard for me i'm little scripter. (sorry for bad english i reply with telephone) Link to comment
Benevolence Posted October 12, 2011 Share Posted October 12, 2011 That's a good idea Hunterix. Read their FPS, if it's lower than for example 20, disable shaders. I like it. Link to comment
karlis Posted October 13, 2011 Share Posted October 13, 2011 you need a way to detect fps? i can help you in that case EDIT: here it is: local frames,fps,lastsec=0,0,0 addEventHandler("onClientRender",getRootElement(),function() local frameticks=getTickCount() frames=frames+1 if frameticks-1000>lastsec then local prog=(frameticks-lastsec) lastsec=frameticks fps=frames/(prog/1000) frames=fps*((prog-1000)/1000) end end) Link to comment
HunT Posted October 13, 2011 Author Share Posted October 13, 2011 you need a way to detect fps?i can help you in that case EDIT: here it is: local frames,fps,lastsec=0,0,0 addEventHandler("onClientRender",getRootElement(),function() local frameticks=getTickCount() frames=frames+1 if frameticks-1000>lastsec then local prog=(frameticks-lastsec) lastsec=frameticks fps=frames/(prog/1000) frames=fps*((prog-1000)/1000) end end) LoL realy Tnx. But This function work under 20 fps? Ok test and add else outputChatBox. Link to comment
karlis Posted October 13, 2011 Share Posted October 13, 2011 this should work for all fps, but when fps drop from high to low, or low to high, for 1 sec there can be little inaccuracy(because it uses fps of last frame when compensating offset from 1sec between last frame that fps got calculated, and this frame). to check fps just get fps variable. Link to comment
qaisjp Posted October 13, 2011 Share Posted October 13, 2011 This doesn't get the current FPS, but gets the FPS that occured on the previous frame (generally a fraction of a second) Link to comment
HunT Posted October 13, 2011 Author Share Posted October 13, 2011 But is possible call the "number fps" from the resource race_fps? Link to comment
karlis Posted October 13, 2011 Share Posted October 13, 2011 dunno, but imo its easier to just use my function. it cant get much more accurate. 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