![]() |
|
Time quota exceeded. - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Starfall (https://teamscm.co.uk/forum-7.html) +--- Thread: Time quota exceeded. (/thread-1840.html) |
RE: Time quota exceeded. - pho - 11-07-2016 yeah because it crashes RE: Time quota exceeded. - Red The Blue Color - 11-07-2016 (11-07-2016, 04:46 PM)pho Wrote: yeah because it crashes No because ops have been removed.... I thought that joke was kind of obvious. Besides my chips work fine RE: Time quota exceeded. - Person8880 - 11-07-2016 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.
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. RE: Time quota exceeded. - Red The Blue Color - 11-07-2016 (11-07-2016, 05:02 PM)Person8880 Wrote: OK, first of all, people are way over-reacting. Only part I needed to read. RE: Time quota exceeded. - Yuri6037 - 11-07-2016 Thank you Person ! So all you want is me to leave ?! I tried ALL I COULD it crashes on random lines ! The if blocks are also crashing. You can no longer do anything server side !!!!!! Is that what you wanted ?! Because visibly you did not understand the problem ! I don't know how you managed to not make your scripts crashing but on my side I can't even run two chips without this shit quota ! You say "I have no intention of making things less fun" : THAT IS EXACTLY WHAT YOU ARE DOING BY ADDING THOSE QUOTAS ! I'm sorry but I will no longer play on that server. I don't want to spend my whole time at bypassing your FUCKING LIMITS ! This time it's over. Play your "chip destroying game" yoiurself with the rest of the comunity. RE: Time quota exceeded. - Red The Blue Color - 11-07-2016 (11-07-2016, 05:10 PM)Yuri6037 Wrote: Thank you Person ! Jesus dude this only slightly sets me back your code is obviously really flawed if it crashes like that RE: Time quota exceeded. - 4N0NYM - 11-07-2016 (11-07-2016, 05:02 PM)Person8880 Wrote: 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. in the past this never happend or very very rare and i think all say it is ok to have sometimes lag but can use the old codes again. RE: Time quota exceeded. - Red The Blue Color - 11-07-2016 (11-07-2016, 05:17 PM)тѕсм.4N0NYM [G3R] Wrote:(11-07-2016, 05:02 PM)Person8880 Wrote: 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. Maybe it did this before either of us joined TSCM he did say people who have been around a long time RE: Time quota exceeded. - Nova Viper Dwagon - 11-07-2016 Im going back to E2, My code is basic it should not be spiking. Furthermore, Im quite pissed off, As some one who just learned starfall to have all his chips suddenly crash randomly to random spikes is perfetic, I don't even know why it randomly spikes! worst thing is, I logged on last night and it was all fine, then 1h later it shit its self and always crashed then was fine for a short time.... Its fucked up and I honestly can't figer out. Adding onto this, People come up to me asking how to optimise there e2's and its easy to fix (Usealy involving taking away runOnTick(1) and removing some constanly running finders or EGP's), when it comes to starfall every one is ether busy or never on making starfall impossible to learn when nobody knows how / busy or are never on (Or says "its easy" and because your not a pro lua coder you don't even know wtf there talking about). Furthermore I would like to apologies if this seams harsh but Starfall was hard to learn for me and having this making it next to impossible again just really hits me the wrong way, I only moved away from E2 so people who do E2 don't randomly crash because of me using finding and stuff, and for thouse who comment "Starfall is not impossible" I learn differently and for me its hard. RE: Time quota exceeded. - Person8880 - 11-07-2016 (11-07-2016, 05:34 PM)Nova Viper Dwagon Wrote: Adding onto this, People come up to me asking how to optimise there e2's and its easy to fix (Usealy involving taking away runOnTick(1) and removing some constanly running finders or EGP's), when it comes to starfall every one is ether busy or never on making starfall impossible to learn when nobody knows how / busy or are never on (Or says "its easy" and because your not a pro lua coder you don't even know wtf there talking about).There's the profiler tool for a start. That can point you in the right direction. There's also a forum board where you can ask questions about Starfall in which this thread is currently sitting, you don't have to wait for people to be on the server. To help address people's concerns, the time quota is being changed slightly to allow for somewhat higher spikes, as long as they're rare. So if your chip only very rarely spikes CPU time a bit, it should no longer hit the quota. Again, this change was not meant to break people's chips. The ops quota was misleading and had to go. The goal is to get the time quota fully covering what it wasn't. |