|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Tue Nov 28, 2006 2:40 am
[1.17] 99% CPU on long room descriptions |
This is a new cmud file made today in 1.16, now using 1.17
There are no triggers that would be firing on the lines that are causing CMUD to go to 99% CPU.
Best way to illustrate is with an avi probably.
Watch the CPU usage spike when visiting the two rooms with very long descriptions - the only reason it's not at 99% is because the vid capture prog is taking up half the cpu, otherwise CMUD would be higher.
http://www.megaupload.com/?d=QUYTSFVS
Rooms are after the short swim, and one north of that.
Sorry for the lame description, but the vid seemed the easiest way to show it.
It's on an Athlon 3200+ with 2GB RAM (also happens on my 1.9Ghz Pentium-M lappy with 512MB RAM), so there are no problems with having low resources etc. |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Nov 28, 2006 5:56 pm |
Not sure what to say...I can't reproduce this. All I can think of is that you do have some sort of trigger or script running. Have you tried doing a fresh install and creating a new, blank session for the MUD and then trying it?
|
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Tue Nov 28, 2006 6:07 pm |
Odd, I did a clean install with a blank session and everything was fine. I'll import the triggers one by one (it was a fairly new session I took that vid from, and only had a dozen or so triggers) to see which one causes the problem. Will see if I can find what's the issue.
Cheers |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Thu Nov 30, 2006 12:08 am |
Well bah, turns out I'm an idiot. Reason things went odd was that a trigger that I grabbed a regex trigger from zmud and removed the regex match characters and put it into cmud. Problem was that it was on the string
^\*\*\* PRESS RETURN OR Q TO QUIT: $
and I didn't escape the *'s when I moved it, so on a long room description it was matching 3 consecutive wildcards.
Changing to
^~*~*~* PRESS RETURN OR Q TO QUIT: $
Fixed things up nicely.
Shows that even after using zMUD for about 7 years I can still make trivial mistakes. |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
The Raven Magician
Joined: 13 Oct 2000 Posts: 463
|
Posted: Fri Dec 01, 2006 10:12 pm |
Ouch... nice trigger. :-)
|
|
|
|
|
|