Team Spartan Cookies & Milk Forums
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)

Pages: 1 2 3 4 5 6


RE: Time quota exceeded. - Liizzii - 20-07-2016

(14-07-2016, 06:30 AM)Yuri6037 Wrote: It was working very fine before Person put his rule. And the crash happens only when my game freezes because i enter a planet with many entities. The profiler tells my only 10K max run time. When changing planet i get sometimes 100K spike which crashes it !
Si doubt the problem is in my code.
If i stay in an environment with low entity count nothing crashes client side.

Only starfall screens seam to be saved from environment change spikes...
Starfall screens don't need to be redrawn every frame as they can (theoretically) be copied from the previous frame (thus saving rendering time since it's already pre-rendered). HUDs on the other hand are redrawn every frame along with other HUD elements (such as weapon ammo and toolgun info) and after the world is drawn. For a game running at 60FPS that means that the game screen is being re-drawn 60 times every second. To keep at 60fps all the elements on screen, both the 3d game world and HUD elements, rendering updates need to be completed in under ~16.5ms. if you have a chip that takes 10ms to update, it leaves about 6ms for everything else and if it can't be done fast enough, your fps becomes lower (technically the world will render first then any time left over will be used by HUDs).

The reason the limit is in place is so that time-eating chips don't bring a lower end client to a crawl just because the player who made the chip has the hardware to support it's load (a GTX1080 could do rendering updates faster than say a 560Ti).


RE: Time quota exceeded. - Yuri6037 - 22-07-2016

Your answer is not a real answer it does not solve any issues. It just confirms that this quota is the worst idea client side for the reason you said : all clients do not have the same performances and because of that there should be a way to unlimit this quota by typing a command.

Also there is something in the code for Super Admins !!!

Now I understand why Person do not have any problems : unlimited(true) !!

Look into SF.Instance:HasExceededQuota, you'll find something seriously nice... "if self.Unlimited then return false end" !! That means if you are super admin you are not considered by this quota just by adding an unlimited(true) in the begining of your chip !

That's seriously nice, hiding this from us in plus...


RE: Time quota exceeded. - Red The Blue Color - 22-07-2016

(22-07-2016, 09:08 PM)Yuri6037 Wrote: Your answer is not a real answer it does not solve any issues. It just confirms that this quota is the worst idea client side for the reason you said : all clients do not have the same performances and because of that there should be a way to unlimit this quota by typing a command.

Also there is something in the code for Super Admins !!!

Now I understand why Person do not have any problems : unlimited(true) !!

Look into SF.Instance:HasExceededQuota, you'll find something seriously nice... "if self.Unlimited then return false end" !! That means if you are super admin you are not considered by this quota just by adding an unlimited(true) in the begining of your chip !

That's seriously nice, hiding this from us in plus...

T told me Person only uses this every once and awhile for a joke chip.... Your one of the last people complaining about this time quota this is getting pretty bad and annoying.

EDIT: "It just confirms that this quota is the worst idea client side for the reason you said : all clients do not have the same performances"
More specifically from that quote is "all clients do not have the same performances" If this quota wasn't in place then your just assuming every computer can update at the same speed as a 1080, which isn't true, so alot of people's framerates would be lowered to complete shit. This is why the quota is the best idea clientside ever.


RE: Time quota exceeded. - TheOneAndOnlyTee - 23-07-2016

You sound like you're assuming unlimited quota is what everyone wants which isn't true, maybe you should've spent the time you wasted going through SF code and complaining on fixing your stuff.

Your system is so unnecessarily complicated i'm not surprised that your stuff crashes and I haven't seen you code something from scratch without any of your 29 files/libs since you started.

EDIT:my intelligent mind reading mainframe just bet me your reply will have atleast one ' !' in it, funnily enough it didn't quota Big Grin.


RE: Time quota exceeded. - Yuri6037 - 23-07-2016

T, I can`t do more than I already done... I spent a whole afternoon trying different optimizations, but HUDs stays too unstable... The TimeQuota is too much random it`s entirely unpredictable. I even spent another whole afternoon trying to predict TimeQuota. I found something that works for approx 20 minutes.

The last way to optimize the screen and the HUD is by removing features, I`m pretty sure that`s what TimeQuota wants but I will NEVER remove any features that worked before that holy shit TimeQuota.

Maybe I`m the last complaining about that but I`m also the only one who tries to create an OS in Starfall...

If you knew the time I spent on developping the bootloader and DWM, you wouldn`t be so rude with me and your word `optimization`. I spent an entire month to find the best optimized way for my OS but that is still not sufficient because like all the time, TimeQuota is completely random, nothing can predict, and nothing except unlimited(true) can prevent it...

I still have those random crashes that you don`t have while using my screen... I thought it was IntelliHUD, but it`s not...


RE: Time quota exceeded. - Red The Blue Color - 23-07-2016

(23-07-2016, 07:12 AM)Yuri6037 Wrote: T, I can`t do more than I already done... I spent a whole afternoon trying different optimizations, but HUDs stays too unstable... The TimeQuota is too much random it`s entirely unpredictable. I even spent another whole afternoon trying to predict TimeQuota. I found something that works for approx 20 minutes.

The last way to optimize the screen and the HUD is by removing features, I`m pretty sure that`s what TimeQuota wants but I will NEVER remove any features that worked before that holy shit TimeQuota.

Maybe I`m the last complaining about that but I`m also the only one who tries to create an OS in Starfall...

If you knew the time I spent on developping the bootloader and DWM, you wouldn`t be so rude with me and your word `optimization`. I spent an entire month to find the best optimized way for my OS but that is still not sufficient because like all the time, TimeQuota is completely random, nothing can predict, and nothing except unlimited(true) can prevent it...

I still have those random crashes that you don`t have while using my screen... I thought it was IntelliHUD, but it`s not...
Only one who created an OS in starfall my ass, Superplayer has already done this.


RE: Time quota exceeded. - SuperPlayer - 23-07-2016

As I have done some Starfall in the past I want to say a bit about this:

1) I was on the server for a bit last week and wanted to test out if my SF stuff still worked and it did.
2) SF is not java, c++ or something of that kind. SF is an INGAME programming opportunity. With that beeing said it is pretty obvious that it was NOT meant to support something like an OS with bootloader and other things Yuri mentioned. This is simply not the purpose of SF.
3) The argument that Person doesnt care about the quota because he has this unlimited wuota thingy is just.... He simply can not not care as players would stop playing if he acts like this. But I can understand why he has it, everyone probably would have done the same for some fun from time to time.
4) The last thing I want to say is that it is not always other peoples fault that someones stuff isnt working. Maybe you, Yuri, should reread point 2 and then once again think about what you put your time into. If you want to create a real OS then do so in the real world but not in a game which is not designed for something like this. GMod is a sandbox physics game!

I hope no one is pissed now. Thats just my opinion


SuperPlayer


RE: Time quota exceeded. - Person8880 - 23-07-2016

(22-07-2016, 09:08 PM)Yuri6037 Wrote: Your answer is not a real answer it does not solve any issues. It just confirms that this quota is the worst idea client side for the reason you said : all clients do not have the same performances and because of that there should be a way to unlimit this quota by typing a command.

Also there is something in the code for Super Admins !!!

Now I understand why Person do not have any problems : unlimited(true) !!

Look into SF.Instance:HasExceededQuota, you'll find something seriously nice... "if self.Unlimited then return false end" !! That means if you are super admin you are not considered by this quota just by adding an unlimited(true) in the begining of your chip !

That's seriously nice, hiding this from us in plus...
First of all, I find it extremely hypocritical that you happily snoop through my code without any permission, and yet you keep all your Starfall work away from everyone else and would hate them to see it.

Secondly, the unlimited mode exists for one main purpose, and that is to avoid the quota firing in the middle of entity spawning. Both holograms and props enable unlimited mode until they have finished spawning, otherwise they can end up half spawned and un-removable.

The fact there's an unlimited mode switch in Starfall is simply because I know I can trust myself to not crash the server or other's clients. No one else can use it, it only applies to me. It's not as if I can't already run GLua directly on either the server or clients, so I don't see what difference it makes to anything. The only time I've ever used it was for my MVAM chip, and that was mainly to avoid the ops quota being overzealous rather than any time quotas.

As a final point, you've done nothing but complain and berate the changes I've made despite few other people having any real problems (after the initial hiccups). I've put up with it for a while, but I think you've gone a bit too far this time. You should come back when you're ready to be constructive and not just constant hateful complaining.

Regarding the time quota
Another point I want to make about the time quota. Many years ago the server was a lot worse at handling players and props. It would end up sat at 2 ticks/s very often and really struggle. People often think that the server hardware is some amazing crazy expensive thing. It isn't. It's a low-end 5 year old Intel processor that takes nearly double the CPU time to do anything my local machine does.

I had two choices. Either I give up and shut the server down, or I find everything I could to optimise and come up with new solutions to problems either in the game or in Lua code. I didn't have a choice of complaining about a quota. I couldn't just run to garry and say "omg this game needs more quota it's so unfair". Instead I put in many, many hours into optimisations which leave the server today running extremely smoothly and hardly ever lagging. Certainly, 2 tick/s lag is all but eliminated.

Even recently, I've halved the time Starfall Emitters take to render per frame, optimised the jammer checking and prop protection checks that were slowing down some operations a bit too much and have optimised circle drawing to hopefully get rid of the odd spikes that garry's code caused.

I've never stopped putting effort into this server, and never charged anyone for anything I've made. Sure, people have the option of donating, but that's always an option, not a requirement. I'd like to think all the hours I put in and the enjoyment people have derived from it mean I deserve a little better than constant passive-aggressive (or in this case, full on aggressive) complaints.


RE: Time quota exceeded. - Yuri6037 - 23-07-2016

First of all I didn`t want to come there. That`s entirely TimeQuota`s fault if I came to ~snip~. Also please stop withserver issues as now it`s no longer a problem. TimeQuota only affects rendering process. Like I said I tried everything, nothing worked, so I decided to ~snip~ in order to know how you made this blocking TimeQuota. I was searching the exact interval/amount of frames before it runs to directly bypass it by skipping frames if you want to know everything.

What you`ve done client side forced me to do what I never done !! Yeah that is the first time I ~snip~... I realy never done that before...
When I started to look at the code to find the inteval to skip on my system I found this self.Unlimited thing which made me realy angry when I saw it was set by a SuperAdmin only Starfall function ! That`s all, and I didn`t readany of your Stargazer/other client stuff you made.

I repeat again, I never wanted to do that I was forced to do it, otherwise I would have forced to disband a one month code !
Please understand this, and please fix your randomness TimeQuota, that would make me happy and I would no longer need to read your Starfall instance code...


RE: Time quota exceeded. - Person8880 - 23-07-2016

You were not forced to do anything. All you had to do was make a legitimate case without the drama and passive aggressive tone. The fact that you decided not to speaks volumes. That line of thinking is the same as saying you're justified in stealing from a bank because they've cut your savings interest rates.

Hell, why didn't you ask me how the quota was measured? It's not as if I don't always reply to people's questions.

The time quota is there to protect people from themselves and others. If your client is slower, then it's going to be hit sooner. This is entirely the point, as it stops your game freezing up and your framerate tanking. This has been explained many times. I've already tweaked the time quota 4 times since adding it, and again today for a 5th.

The server quota is entirely relevant because it's the same root problem. You can't just shirk responsibility and blame other things for problems, at some point you have to own your own mistakes.