Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Expression 2 v
« Previous 1 … 4 5 6 7 8 Next »
E2 : cpu time quota exceeded
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pages (2): 1 2 Next »
Threaded Mode
E2 : cpu time quota exceeded
28-04-2014, 03:01 PM,
#1
FiringFox Offline
Moderator
*****
Posts: 13
Threads: 3
Joined: Apr 2014
E2 : cpu time quota exceeded
Hi,

Last time i came on the server I spawned my drone i never had a problem with and this time i got this message : Expression 2 : cpu time quota exceeded. I have no while() in this E2.

What should I do ?

Thx
Find
Reply
28-04-2014, 04:12 PM,
#2
Blackhawk Offline
GMod Admin
Posts: 204
Threads: 9
Joined: Sep 2013
RE: E2 : cpu time quota exceeded
Your cpu time is too high that means you have to optimize your chip.
You should increase the interval a bit (for example from interval(100) to interval(300)), you could also put some stuff into the first() function.
Find
Reply
28-04-2014, 04:32 PM,
#3
FiringFox Offline
Moderator
*****
Posts: 13
Threads: 3
Joined: Apr 2014
RE: E2 : cpu time quota exceeded
Thank you for your answer !
I've set the interval to 10000 and it's the same x(
Find
Reply
28-04-2014, 04:40 PM,
#4
Blackhawk Offline
GMod Admin
Posts: 204
Threads: 9
Joined: Sep 2013
RE: E2 : cpu time quota exceeded
Well, I think I have to take a look at the code to help you. It would be nice if you paste the code here.
Find
Reply
03-05-2014, 12:58 AM,
#5
Skyteks Offline
Game Programmer
****
Posts: 109
Threads: 19
Joined: Nov 2013
RE: E2 : cpu time quota exceeded
Well Person minimized the cpu time quota so u have to make ur e2 be less recourse wasting. I had this problem with my SGC E2 too, just do somestuff like putting "creating stuff" lines in a first() and change egpText's to egpSetText's if same position.
Not shure if making stuff invisible and back visible, or remova and create is better...
But i think u get the point.

[Image: giphy.gif]
Find
Reply
17-05-2014, 02:10 AM,
#6
Gbob2005 Offline
Banned
Posts: 7
Threads: 3
Joined: Mar 2014
RE: E2 : cpu time quota exceeded
I was wrecking the HELL out of the Targetting Computer Rev 2 and I got the same warning 2 times. I just click on the E2 again with the same E2 code.
Find
Reply
17-06-2014, 09:16 AM,
#7
Anubis Offline
Banned
Posts: 10
Threads: 2
Joined: Jun 2014
RE: E2 : cpu time quota exceeded
(28-04-2014, 03:01 PM)FiringFox Wrote: Hi,

Last time i came on the server I spawned my drone i never had a problem with and this time i got this message : Expression 2 : cpu time quota exceeded. I have no while() in this E2.

What should I do ?

Thx

use perf() or perf(N) check wiremod wiki
Find
Reply
17-06-2014, 03:43 PM,
#8
Kosmos Offline
GMod Admin
Posts: 180
Threads: 3
Joined: Dec 2013
RE: E2 : cpu time quota exceeded
My random guess would be that you are iterating through all entities in the world somewhere. Since there sometimes are over 2000 on the server, that would be a lot of used CPU time.
I am not sure how wiremod calculates the CPU time, but chances are that (if the server is already overburdened) the time required by your E2 will increase even more.
If those are wrong I agree with BlackHawk, that you should post at least parts of the code.
Find
Reply
17-06-2014, 04:08 PM,
#9
FiringFox Offline
Moderator
*****
Posts: 13
Threads: 3
Joined: Apr 2014
RE: E2 : cpu time quota exceeded
Well thank you for your answers i shoud have posted what was the issue that is now resolved ! In fact i just forgot to write @trigger none and so the chip would ignore my interval()... Now it all works perfectly ! ;D
Find
Reply
17-06-2014, 06:25 PM,
#10
Veegi Offline
Marker Translator
Posts: 90
Threads: 6
Joined: Sep 2013
RE: E2 : cpu time quota exceeded
There was something wrong with E2/SF, I also had this with my chips that don't even do anything, it should be fixed now.

ohai
Find
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.