Post: Hud Element EDIT question
02-03-2011, 07:11 PM #1
baremo
Pokemon Trainer
(adsbygoogle = window.adsbygoogle || []).push({}); Hello, i have add a new Hud element on my edit of the Blackstorm. (its just a text on topright)You must login or register to view this content.

It works very good but, yesterday, i have add an other Element.
Its a rectangle witj black shader around my text. ( like the elemnt around the information on DEvil v4 patch )

I haven't add this in "onPlayerSpawned" but i have a fonction "Test" in my menu.

The problem is.... when i launch the function with the menu, during 5second the lobby lag extremly (like an host migration) and after its good.You must login or register to view this content.


Why this HudElement make my lobby laggy please?

Sorry for my english You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});
02-03-2011, 07:13 PM #2
EliteMossy
TheDigitalBoard.com
without seeing the code, no one will know the anwser.
02-03-2011, 07:21 PM #3
divybc
Former Staff
Originally posted by baremo View Post
Hello, i have add a new Hud element on my edit of the Blackstorm. (its just a text on topright)You must login or register to view this content.

It works very good but, yesterday, i have add an other Element.
Its a rectangle witj black shader around my text. ( like the elemnt around the information on DEvil v4 patch )

I haven't add this in "onPlayerSpawned" but i have a fonction "Test" in my menu.

The problem is.... when i launch the function with the menu, during 5second the lobby lag extremly (like an host migration) and after its good.You must login or register to view this content.


Why this HudElement make my lobby laggy please?

Sorry for my english You must login or register to view this content.


Whats with the smiley link :confused:
02-03-2011, 07:30 PM #4
baremo
Pokemon Trainer
Sorry for the smiley and ... the code:

its just that:


    
Fondbaremo(){
baremo = NewClientHudElem( self );

baremo.alpha = 0.5;
baremo setshader("black", 100, 20);
baremo setPoint( "TOP", "TOP",260, -1 );
}



When I load it , my lobby lag

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo