Idea: inactive close

  • Linkram
    3rd Dec 2020 Member 0 Permalink

    sometimes I am playing the powder toy and get distracted. 
    Then I had an idea! if the user doesn't touch anything for say, five Minutes, the the powder toy will close. 
    this will definitely save a lot of computer ram and GPUs and memory.

    it can be turned on or off in the settings tab

  • MachineMan
    4th Dec 2020 Member 0 Permalink

    Some saves take longer to do their thing than others. 1-

  • Linkram
    4th Dec 2020 Member 0 Permalink

    Moving the cursor would reset the timer

  • jacob1
    4th Dec 2020 Developer 0 Permalink
    I have a habit of pressing '~' every time I switch to another window. This brings up the console, which stops unnecessary CPU usage, because it doesn't have to update or render particles. Then it's ESC to get back into the game. You could try starting a habit like that.

    This feature by itself would cause people to lose work, if it closed the game while they were working on something. I think a better option would be to display a popup after some amount of inactivity (same effect as opening console, which is better than pausing alone).

    But I'm still not sure that is required.
  • Linkram
    4th Dec 2020 Member 0 Permalink

    ok, I didn't know opening the console did that.

  • Alexwall
    4th Dec 2020 Member 0 Permalink

    I imagine it could be done with a lua script maybe? I am not sure if there's any functions that will close the game in the current version though...

  • jacob1
    4th Dec 2020 Developer 0 Permalink
    @Alexwall (View Post)
    Yes, this can definitely be done by Lua. Closing the game, and bringing up a popup.

    os.exit() closes the game. This is a built in Lua function.