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

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
1 2 3 4 5 … 18 Next »
How to run heavy tasks without reaching quota ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
How to run heavy tasks without reaching quota ?
27-01-2025, 05:11 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: How to run heavy tasks without reaching quota ?
On the client, quota is assigned on a per-player basis, there is no global average quota being tracked. Thus you only have to worry about what cpuMax() and cpuTime() are telling you for the most part. Using cpuAverage() is not an accurate measure as it doesn't update in real-time, it updates once per frame. It can give you an indication of how close you are to triggering the average time check for the chip at the point the current frame started processing, but not beyond that.

There's also the burst quota which permits exceeding cpuMax() for a short time which can muddy the tracking slightly. But providing you're keeping below the max the vast majority of the time, you shouldn't hit quota exceeded errors, as the average will stay below the limit.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
How to run heavy tasks without reaching quota ? - by The17thDoctor - 26-01-2025, 11:15 PM
RE: How to run heavy tasks without reaching quota ? - by Person8880 - 27-01-2025, 05:11 PM
RE: How to run heavy tasks without reaching quota ? - by The17thDoctor - 27-01-2025, 06:05 PM
RE: How to run heavy tasks without reaching quota ? - by Person8880 - 27-01-2025, 06:58 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.