AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Which is low cpu usge? (https://forums.alliedmods.net/showthread.php?t=90176)

YKH =] 04-14-2009 21:57

Which is low cpu usge?
 
set_pev(id, pev_effects, pev(id, pev_effects) | EF_BRIGHTLIGHT)

or TE_DLIGHT?

_lol_ 04-14-2009 22:04

Re: Which is low cpu usge?
 
i think the brightlight...but it is only white...you can not optimize it..

Hunter-Digital 04-15-2009 07:30

Re: Which is low cpu usge?
 
Well, this is what I think (I *may* be wrong in some slight details but overall I think I'm right :P)

EF_BRIGHTLIGHT it's just a flag on a model and it's processed client side (light color, size, decay, etc), the server only sends another "flag" along with the entity data... and yeah, can be set only on another entity
and this has one more comunication with the module...

TE_DLIGHT creates another entity (info_target, at the specified origin) that emits one dynamic light that can be customized... this however has alot of comunications to the module setting each param

if you REALLY need TE_DLIGHT you can use it, but EF_BRIGHTLIGHT is a good alternative... for flares, model world-light glows, etc.


All times are GMT -4. The time now is 02:25.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.