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

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 8 9 10 11 12 … 18 Next »
Time quota exceeded.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Time quota exceeded.
11-07-2016, 05:02 PM,
#23
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Time quota exceeded.
OK, first of all, people are way over-reacting.

Second of all, this change has been a long time coming. Ops have never been a useful measurement of time spent. Many places will not report operations usage as they are not Lua functions, which left chips able to spike to insane amounts of time in one go and not be penalised for it. This is why the ops quota has been removed, and replaced with a hard limit on the amount of time allowed for a chip in a single tick/frame.

Thirdly, most of the "crashing" is down to bad optimisation. It is perfectly possible to have a chip not be affected by these changes. If your chips are being hit, that is your code's problem 99% of the time. I realise most people don't want to hear this, but it's the facts. I've tested these changes against my own chips and had no problems, and I'm sure others are fine too. That does not mean your chips are bad, just that you need to work a bit more on optimisation and thinking about performance.

Upcoming changes
For the 1% of the time where it's not directly your fault (i.e. sounds or models that haven't been loaded yet), there will be a new directive to precache these so they do not cause CPU spikes.
--@precache vo/k_lab/kl_fiddlesticks.wav,vo/k_lab/kl_dearme.wav
Use this directive for sound files or model paths your chip is going to use, and there should be no CPU spike when you then use them in the code.

I have increased the quota time slightly to account for holograms being a little costly, but it's not going to be possible to spawn dozens as it was before.

The reasoning behind quotas
I should point out, that increasing your CPU quota on your client allows any chip to freeze your game up for that time. So if you go and set your quota to something daft like 99, expect to be frozen for at least 99 seconds by someone's chip if they accidentally make an infinite loop.

Another point to make is that server time is not free. There is no magical endless supply of CPU power that can run everything and never lag. Software is a constant compromise, and requires actual care and attention to performance to make it work. It is unacceptable in my eyes for a chip to be able to spike CPU usage and cause the entire server to freeze up, which is why the quotas exist.

The alternative is constant, neverending lag where you cannot even move. People who have been around for a long time will remember the times of old, where the server would end up chugging along at about 2 ticks/s and no one could move. These quotas and many, many hours of optimisations on my part have all but eliminated that. Consider that when you reach the mindset of believing that all quotas are bad.

Some basic maths for those who don't realise the kind of time frames a game engine requires code to run in
The server runs at 66 tick rate. This means that each tick must not exceed 1 / 66 seconds, which is 15.151515ms. Thus, a chip that takes 2ms to execute in a single tick is using up 2/15.151515 * 100 = 13% of the time allocated for a single tick. That tick must also account for every single entity's thinking function, the time the engine takes to compute physics, and any time spent dealing with networking.

For your client, the same story applies. In order to run at 60FPS, your client's frame time must not exceed 1 / 60 seconds, which is 16.6666667ms. So nearly the same kind of time scales apply to your client.

The future
As a final point, none of these changes are made to break your chips. I am not sitting here thinking "how can I break everyone's stuff today?" with an evil grin. If there are more problems down the line (more functions that take strangely long to run, common mistakes) then more changes can be made to address them.

Rather than instantly decrying changes, try instead to keep an open mind and work with them and me. I have no intention of making things less fun, only ensuring that one person's fun is not disrupting everyone else's.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Time quota exceeded. - by 4N0NYM - 10-07-2016, 10:11 PM
RE: Time quota exceeded. - by [EXIN] AlwayzPatrick - 10-07-2016, 10:55 PM
RE: Time quota exceeded. - by Skeleton - 10-07-2016, 11:06 PM
RE: Time quota exceeded. - by Red The Blue Color - 10-07-2016, 11:10 PM
RE: Time quota exceeded. - by Nova Viper Dwagon - 10-07-2016, 11:13 PM
RE: Time quota exceeded. - by pho - 10-07-2016, 11:33 PM
RE: Time quota exceeded. - by Red The Blue Color - 10-07-2016, 11:41 PM
RE: Time quota exceeded. - by тѕсм.Hikari Naomi - 11-07-2016, 02:29 AM
RE: Time quota exceeded. - by Yuri6037 - 11-07-2016, 10:43 AM
RE: Time quota exceeded. - by The_Doctor - 11-07-2016, 11:26 AM
RE: Time quota exceeded. - by 4N0NYM - 11-07-2016, 11:29 AM
RE: Time quota exceeded. - by Yuri6037 - 11-07-2016, 11:34 AM
RE: Time quota exceeded. - by The_Doctor - 11-07-2016, 11:53 AM
RE: Time quota exceeded. - by ILoveYou - 11-07-2016, 12:29 PM
RE: Time quota exceeded. - by Yuri6037 - 11-07-2016, 01:10 PM
RE: Time quota exceeded. - by Red The Blue Color - 11-07-2016, 02:34 PM
RE: Time quota exceeded. - by Yuri6037 - 11-07-2016, 02:43 PM
RE: Time quota exceeded. - by pho - 11-07-2016, 04:27 PM
RE: Time quota exceeded. - by Red The Blue Color - 11-07-2016, 04:44 PM
RE: Time quota exceeded. - by haraldmbs - 11-07-2016, 04:06 PM
RE: Time quota exceeded. - by pho - 11-07-2016, 04:46 PM
RE: Time quota exceeded. - by Red The Blue Color - 11-07-2016, 04:47 PM
RE: Time quota exceeded. - by Person8880 - 11-07-2016, 05:02 PM
RE: Time quota exceeded. - by Red The Blue Color - 11-07-2016, 05:07 PM
RE: Time quota exceeded. - by 4N0NYM - 11-07-2016, 05:17 PM
RE: Time quota exceeded. - by Red The Blue Color - 11-07-2016, 05:24 PM
RE: Time quota exceeded. - by Yuri6037 - 11-07-2016, 05:10 PM
RE: Time quota exceeded. - by Red The Blue Color - 11-07-2016, 05:16 PM
RE: Time quota exceeded. - by Nova Viper Dwagon - 11-07-2016, 05:34 PM
RE: Time quota exceeded. - by Person8880 - 11-07-2016, 05:57 PM
RE: Time quota exceeded. - by Nova Viper Dwagon - 11-07-2016, 06:14 PM
RE: Time quota exceeded. - by Person8880 - 11-07-2016, 06:23 PM
RE: Time quota exceeded. - by 4N0NYM - 12-07-2016, 05:44 PM
RE: Time quota exceeded. - by pho - 12-07-2016, 05:54 PM
RE: Time quota exceeded. - by Yuri6037 - 12-07-2016, 06:15 PM
RE: Time quota exceeded. - by Person8880 - 12-07-2016, 07:31 PM
RE: Time quota exceeded. - by Destiny's Player - 13-07-2016, 12:42 PM
RE: Time quota exceeded. - by Yuri6037 - 13-07-2016, 04:48 PM
RE: Time quota exceeded. - by TheOneAndOnlyTee - 13-07-2016, 10:03 PM
RE: Time quota exceeded. - by Yuri6037 - 14-07-2016, 06:30 AM
RE: Time quota exceeded. - by Liizzii - 20-07-2016, 06:10 PM
RE: Time quota exceeded. - by Yuri6037 - 22-07-2016, 09:08 PM
RE: Time quota exceeded. - by Red The Blue Color - 22-07-2016, 09:10 PM
RE: Time quota exceeded. - by TheOneAndOnlyTee - 23-07-2016, 02:17 AM
RE: Time quota exceeded. - by Yuri6037 - 23-07-2016, 07:12 AM
RE: Time quota exceeded. - by Red The Blue Color - 23-07-2016, 07:24 AM
RE: Time quota exceeded. - by SuperPlayer - 23-07-2016, 08:05 AM
RE: Time quota exceeded. - by Person8880 - 23-07-2016, 11:36 AM
RE: Time quota exceeded. - by Yuri6037 - 23-07-2016, 12:27 PM
RE: Time quota exceeded. - by Person8880 - 23-07-2016, 12:39 PM
RE: Time quota exceeded. - by Yuri6037 - 23-07-2016, 01:16 PM
RE: Time quota exceeded. - by Person8880 - 23-07-2016, 03:03 PM

  • View a Printable Version
Forum Jump:


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

Powered By MyBB, © 2002-2026 MyBB Group.