Jump to content




Auto Shutdown Shell


  • You cannot reply to this topic
7 replies to this topic

#1 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 24 August 2013 - 05:34 AM

i edited the bios to auto shutdown if there is no user input for 2 minutes
unless there is a startup file, and this only applies once so when you edit something and leave for two minutes it dosent erase your stuff
i have noticed this significantly reduces computer lag on my server, as most people just right click computers type ls and leave and the computer remains on forever eating resources

#2 ElvishJerricco

  • Members
  • 803 posts

Posted 24 August 2013 - 11:54 AM

A lot of people write programs that run in the background behind the shell. How is the shell supposed to not stop for that? Maybe a shell.setAutoShutdown() function to disable it if you want? Of course then if someone runs os.run({},"shell") for some reason you run into the problem again...

#3 GopherAtl

  • Members
  • 888 posts

Posted 24 August 2013 - 02:57 PM

ElvishJerricco, "unless there is a startup file" any program running background tasks almost certainly has a startup file.

Pixel, Not clear what you mean by "only applies once." Also, pastebin is no longer blocking us, so you can stop inciting panic and update your sig now.

#4 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 24 August 2013 - 05:54 PM

You obviously have no idea how ComputerCraft works. The only resource a computer will use while it is not running is ticking any timers the computer has set once per tick. It honestly will cause no "lag" at all doing this. While a computer is not actually having any events fired, it will not run any Lua code at all.

Methinks you're seeing a benefit because you want to see a benefit.

#5 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 24 August 2013 - 07:08 PM

and in the process of testing, i spawned around 200 computers
out of memory! i even allocated 2GB to it and my server crashes instantly
:)

#6 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 24 August 2013 - 07:12 PM

You were talking about lag, not memory. The two are different. Make your mind up?

#7 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 24 August 2013 - 09:32 PM

Increased memory use could cause garbage collection to occur more often, causing lag.

#8 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 25 August 2013 - 09:51 PM

No shit? Smart arse immibis saves the day again?

TL;DR - not gonna happen, get a better server.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users