ID:2102970
 
(See the best response by GinjaNinja32.)
                                         Profile results (total time)
Proc Name Self CPU Total CPU Real Time Calls
---------------------------------------------------------- --------- --------- --------- ---------
/icon/proc/Blend 36.923 36.936 36.949 33173
/proc/Show_Damage 5.837 5.872 9649.847 5314
/icon/proc/RscFile 2.758 2.758 2.758 180
/mob/proc/Calc_Stats 2.117 2.893 2.914 149991
/mob/proc/Water_Check 1.457 1.464 1.487 149991

Problem:
Hello,I am having a lot problem with the character color,for example ,each time the user enter on water it checks user icon for see if everythings is alright that causes a lot lag. What should be done?
Best response
Don't use icon.Blend(), in short.

Look into replacing /icon operations with /image ones, blend modes, colors, color matrices, etc, rather than icon.Blend() etc.
In response to GinjaNinja32
Head.Blend(rgb(obodyr,obodyg,obodyb),ICON_ADD)
That is how I color the body,there has another way? like Image(rgb)? I use MapColors also
MapColors can probably be replaced with color matrices (search the ref for 'color matrix').

Blend() in ICON_ADD can probably also be replaced with a color matrix, likely list("#ff0000", "#00ff00", "#0000ff", "#000000ff", color)
In response to GinjaNinja32
Hi thanks for help, I think map colors dont gives a lot of lag,self cpu is how much it takes in individual client or host machine?
Don't use icon operations. They are server-side and generate dynamic resources. Like Ginja said, use color matrices and overlays/underlays instead.
Hi ,sorry to back to this post but I really tried to change Icon_add to color matrix but it no work with no way,someone can show me a exemple please? so I can understand better. Even if I remove rbg and things.
Head.Blend(rgb(obodyr,obodyg,obodyb),ICON_ADD)