Help me optimize this !
I try write this plugin. All working like what I want. But it make server lag and high ping. I think problem at FM_PlayerPreThink but I don't know how to fix it. Anyone here can help me optimize or teach me better way.
PHP Code:
|
Re: Help me optimize this !
using set_task?
set_task(0.1,"fwdPlayerPreThink",client,.flag s="b") |
Re: Help me optimize this !
please teach me how can do that :)
|
Re: Help me optimize this !
You are sending ScreenFade message 60 times per second per player. PreThink should ALWAYS be used only when there is no other way. I'm surprised you're not getting an overflow.
|
Re: Help me optimize this !
can you fix it for me :(
because I don't know what better make ScreenFade unlimit time on player ... |
Re: Help me optimize this !
Use FFADE_STAYOUT flag and send the message only once.
|
Re: Help me optimize this !
Quote:
|
Re: Help me optimize this !
okay
|
Re: Help me optimize this !
Quote:
please teach me how can send once time but it still unlimit time |
Re: Help me optimize this !
Put the fade and HUD code in on(id) function. Don't use PreThink for this.
|
| All times are GMT -4. The time now is 06:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.