Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 48 Guests
Online:

LATEST FORUM THREADS

»
run artillery on maps
CoD+UO Map + Mod Releases
Call of DutyŽ: WWII
CoD WW2 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
Author Topic: Weird Lags With a Script
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Tuesday, Aug. 10, 2010 07:37 am
Mmh weird, it lags even on stock maps. Its laggs always, with different people, so not the ping and i'm using ingame rcon.

What can make a server to use at least 30% of cpu ?? Thats seriously weird -,-
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2725
Last: May 17, 2016
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Tuesday, Aug. 10, 2010 07:44 am
the only other thing is i suppose your computer and your graphics settings if your running on standard try running on Dx7 (better FPS than Dx9) and turn auto analising off and "no" on sync every frame.

at least try it with all that so you know its not your computer.

if its the server, are you running it or is it a rented slot? if it is then they might have bad internet at the exchange point or something.
Share |
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Tuesday, Aug. 10, 2010 07:55 am
Actually what i did, is removing everything in my cod2 folder. I downloaded again paulus mod and i moved aaaZ20.iwd to my main with the zom.cfg. I launched a local server and it is using 00% of cpu when empty (thats normal), but when i add 40 bots (scr_testclients 40), the cpu is getting high, about 30-40....

I asked another zombie clan, and their server is using max 12% with paulus zombie mod (they got 64slots servers).

So whats wrong ? Maybe i'm installing paulus mod not correctly ?

Share |
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Tuesday, Aug. 10, 2010 07:57 am
ukdjaj writes...
Quote:
the only other thing is i suppose your computer and your graphics settings if your running on standard try running on Dx7 (better FPS than Dx9) and turn auto analising off and "no" on sync every frame.

at least try it with all that so you know its not your computer.

if its the server, are you running it or is it a rented slot? if it is then they might have bad internet at the exchange point or something.


No its not my computer, because i only lag on this server, and many people do.

When i check cpu usage on the machine where i'm hosting the server (a VPS), its high (30% at least) :s

I tried this mod on different hosters (3 or 4), and i get lag. Also the clan that is running a 64slots without lag and with paulus mod is hosted in same company as me (now i changed, i bought a VPS->cheaper ^^).

Share |
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Aug. 11, 2010 05:05 am
Ok appearently, running server with bots with 40% of cpu usage is normal.

So, got other few questions :

Can a weapon file make server to lag ? (like kar98k_mp)

Can a "lot" of precache make it to lag ? Like precaching 12 texts, 3 objets, 5-6 menus, 6 shaders and 1 iteam.
Share |
Xylozi
General Member
Since: Jul 12, 2008
Posts: 218
Last: Mar 1, 2012
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, Aug. 11, 2010 05:46 am
Often what causes lag is either faulty loops, or when multiple and expensive threads are ran in the same frame.
Share |
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Aug. 11, 2010 06:23 am
Oh...then it's probably the second one.

Last time i was reading a stock script, i saw a function that says : waittillframeend()

But i don't know when (and if) i should use it.

PS : Forgot to say that laggs is getting higher, when i get above 35 players (under 35 players, less lagg)
Share |
BraX
General Member
Since: Apr 29, 2008
Posts: 413
Last: May 26, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, Aug. 11, 2010 09:03 am
Add me on xfire: maciusiak
Share |
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Aug. 11, 2010 09:54 am
Ok i added you.
Share |
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Aug. 11, 2010 12:38 pm
Can someone explain more about waittillframeend ? Or the way i can avoid threads to run in one frame ?

PS : Brax, i talked to you on xf, but it seems that you are AFK..
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»