Raised This Month: $ Target: $400
 0% 

Creating entities but my fps go down...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fearAR
Veteran Member
Join Date: Oct 2010
Old 06-15-2011 , 23:57   Creating entities but my fps go down...
Reply With Quote #1

I am making a plugin, where the player can choose appearence.

Well when player spawn, I set them a model but without head, and then I create an entity, It follows Player, and I set it a model like a head, Which has been chosen by Client after respawn, but for this reason my FPS down...
and I was thinking why the Lasermine plugin, makes when a lot of lasermines are in same places, and I saw them, my fps don't go down.

Please help me, Is there anyway where I can create an entity and my fps don't go down?

Because I am working on it for a long time and I cant believe that at last moment...

Thank you for reading it and I post a part of plugin for help if you didn't understand:

PHP Code:
/*Function Ham_Spawn... cabeza[id] is ent's variable, added like a global variable.*/
        
PonerleFollower(cabeza[id], idMOVETYPE_FOLLOW"models/ruso.mdl");
    
cs_set_user_model(id"selva");

//Anyway

stock PonerleFollower(entownermovetypeszModelEnt[]) {
    
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"));
        
    
set_pev(entpev_movetypemovetype);
    
set_pev(entpev_aimentowner);
    
engfunc(EngFunc_SetModelentszModelEnt);
    
set_pev(entpev_ownerowner);    
    
dllfunc(DLLFunc_Spawnent);

One more thing that can help, when I do all of this, the player seems as if breathing fast, but when I dont put any entity that follow player, the player dont breath fast.

Greetings.

Last edited by fearAR; 06-16-2011 at 00:56.
fearAR is offline
Send a message via MSN to fearAR
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-16-2011 , 01:55   Re: Creating entities but my fps go down...
Reply With Quote #2

Try with different models (head and bodies), high resolution models may lower your fps.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
fearAR
Veteran Member
Join Date: Oct 2010
Old 06-16-2011 , 02:12   Re: Creating entities but my fps go down...
Reply With Quote #3

Ok thank you, but my other problem is now when I set more than 1 entities in MOVETYPE_FOLLOW and AIMENT to a player, the player starts to accelerate his sequence rate. I tried to set him pev_framerate 1.0, and too to the entity, but it dont change anything. Can someone help me because the player throughout time accelerate his sequence's rate more faster and It looks like breathing fast.

Thanks
fearAR is offline
Send a message via MSN to fearAR
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:49.


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