POV-Ray : Newsgroups : povray.windows : Another reason to hate Windows 7 Server Time: 28 Sep 2020 22:16:28 GMT
  Another reason to hate Windows 7 (Message 11 to 20 of 42)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Darren New
Subject: Re: Another reason to hate Windows 7
Date: 3 Oct 2011 16:15:42
Message: <4e89dfae@news.povray.org>
On 10/2/2011 23:48, Thomas de Groot wrote:
> Am I right in assuming that we should put this is the Wish List?

Not for me personally, but it's certainly something I could see many people 
wanting, especially if you make it an option in the windows interface that 
can be checked on and off: "Prevent sleep while rendering?"

I'm actually not sure how you make the machine sleep when the render is 
finished if you've told it not to sleep, like whether Windows keeps asking 
you every few minutes or something, or whether you have to say "OK, try 
again" when you finish.

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Darren New
Subject: Re: Another reason to hate Windows 7
Date: 3 Oct 2011 18:08:29
Message: <4e89fa1d$1@news.povray.org>
On 10/2/2011 23:48, Thomas de Groot wrote:
> Am I right in assuming that we should put this is the Wish List?

Actually, it seems pretty easy, relatively speaking.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa373208%28v=vs.85%29.aspx

It looks like adding a call to
   SetThreadExecutionState(ES_SYSTEM_REQUIRED)
each time a work unit is dispatched in the renderer should be enough, as 
long as at least one of those work units is going to finish before the sleep 
timer runs out. Adding in ES_CONTINUOUS might be good, but you'd want to 
take care that you don't fail to clear that at the end of the render, too. 
Probably safer to keep telling it you're awake than to tell it to stay awake 
until further notice.

HTH!

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Darren New
Subject: Re: Another reason to hate Windows 7
Date: 3 Oct 2011 18:14:06
Message: <4e89fb6e@news.povray.org>
On 10/3/2011 11:08, Darren New wrote:
> Actually, it seems pretty easy, relatively speaking.

http://msdn.microsoft.com/en-us/library/aa373233%28VS.85%29.aspx

Actually, it looks like XP and 2000 work the way I remember.

"""
The system initiates a sleep request by first sending a PBT_APMQUERYSUSPEND 
event. Applications should not deny this request; doing so will prevent the 
system from going to sleep.
"""

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Thomas de Groot
Subject: Re: Another reason to hate Windows 7
Date: 4 Oct 2011 06:56:41
Message: <4e8aae29$1@news.povray.org>
On 3-10-2011 20:14, Darren New wrote:
> Actually, it looks like XP and 2000 work the way I remember.

I think XP did not go to sleep with a render under way. It maybe slowed 
down though... I am not sure.

Thomas


Post a reply to this message

From: Chris Cason
Subject: Re: Another reason to hate Windows 7
Date: 29 Jan 2013 00:40:45
Message: <51071a8d@news.povray.org>
On 28/09/2011 04:58, Cousin Ricky wrote:
> I start an overnight render.  I wake up the next morning, expecting a beautiful,
> polished image.
> 
> Instead, the damn machine has gone into sleep mode!

I've added a new 'Prevent sleep while rendering' option to avoid this
issue. It defaults to on, which is probably what most folks would want.

-- Chris


Post a reply to this message

From: clipka
Subject: Re: Another reason to hate Windows 7
Date: 29 Jan 2013 11:56:33
Message: <5107b8f1$1@news.povray.org>
Am 29.01.2013 01:40, schrieb Chris Cason:
> On 28/09/2011 04:58, Cousin Ricky wrote:
>> I start an overnight render.  I wake up the next morning, expecting a beautiful,
>> polished image.
>>
>> Instead, the damn machine has gone into sleep mode!
>
> I've added a new 'Prevent sleep while rendering' option to avoid this
> issue. It defaults to on, which is probably what most folks would want.

Sounds plausible indeed.


Post a reply to this message

From: MichaelJF
Subject: Re: Another reason to hate Windows 7
Date: 29 Jan 2013 13:00:02
Message: <web.5107c78d11feb237a4048930@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 29.01.2013 01:40, schrieb Chris Cason:
> > On 28/09/2011 04:58, Cousin Ricky wrote:
> >> I start an overnight render.  I wake up the next morning, expecting a beautiful,
> >> polished image.
> >>
> >> Instead, the damn machine has gone into sleep mode!
> >
> > I've added a new 'Prevent sleep while rendering' option to avoid this
> > issue. It defaults to on, which is probably what most folks would want.
>
> Sounds plausible indeed.

That is reasonable. Another thing I do immediatelly after having purchased a new
windows machine is to let it ask before downloading updates. Updates can cause a
reboot which is annoying just as well.

Best regards,
Michael


Post a reply to this message

From: Warp
Subject: Re: Another reason to hate Windows 7
Date: 29 Jan 2013 15:22:08
Message: <5107e920@news.povray.org>
Chris Cason <del### [at] deletethistoopovrayorg> wrote:
> I've added a new 'Prevent sleep while rendering' option to avoid this
> issue. It defaults to on, which is probably what most folks would want.

Which got me thinking...

How hard would it be for winpov to detect that it was terminated while
a rendering was in progress, save that info somewhere, and then the next
time it's started for it to ask the user if they want to continue the
render?

-- 
                                                          - Warp


Post a reply to this message

From: MichaelJF
Subject: Re: Another reason to hate Windows 7
Date: 29 Jan 2013 19:25:00
Message: <web.5108216f11feb23bd2f8d970@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> Chris Cason <del### [at] deletethistoopovrayorg> wrote:
> > I've added a new 'Prevent sleep while rendering' option to avoid this
> > issue. It defaults to on, which is probably what most folks would want.
>
> Which got me thinking...
>
> How hard would it be for winpov to detect that it was terminated while
> a rendering was in progress, save that info somewhere, and then the next
> time it's started for it to ask the user if they want to continue the
> render?
>
> --
>                                                           - Warp

I'm certainly no expert at this. But POV leaves a state file when interrupted
otherwise an image. So it should not be impossible. But with a multicore machine
the continue option works only if all threads have left no "whole" in the
picture. That means if a block is not finished but an other which is later in
the sequence the blocks are worked through from another thread is (may be the
first contains some glass the second not, so the later thread is ready before
the first) than "continue" continues behind the later thread overlooking the
"whole" from the first unfinished thread. So if you have to interrupt a
rendering since you need your machine for other purposes, you have to be lucky
to can use the +c. IMO this issue is more important then the occasional updates
or the sleeps, which can be avoided easily with the update options or the energy
options Stephen pointed out.

Best regards,
Michael


Post a reply to this message

From: Warp
Subject: Re: Another reason to hate Windows 7
Date: 29 Jan 2013 19:45:36
Message: <510826df@news.povray.org>
MichaelJF <mi-### [at] t-onlinede> wrote:
> I'm certainly no expert at this. But POV leaves a state file when interrupted
> otherwise an image. So it should not be impossible. But with a multicore machine
> the continue option works only if all threads have left no "whole" in the
> picture. That means if a block is not finished but an other which is later in
> the sequence the blocks are worked through from another thread is (may be the
> first contains some glass the second not, so the later thread is ready before
> the first) than "continue" continues behind the later thread overlooking the
> "whole" from the first unfinished thread. So if you have to interrupt a
> rendering since you need your machine for other purposes, you have to be lucky
> to can use the +c. IMO this issue is more important then the occasional updates
> or the sleeps, which can be avoided easily with the update options or the energy
> options Stephen pointed out.

Are you saying that +C doesn't currently work, or are you just guessing?

I wasn't talking about the +C option per se. I was just talking about a
possible convenience feature in winpov that would suggest the user to
continue the render if povray was closed the last time while it was
rendering.

-- 
                                                          - Warp


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2008 Persistence of Vision Raytracer Pty. Ltd.