Re: profiler which does not just sum up used time
- From: "Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Wed, 09 Jan 2008 09:57:20 -0800
On Wed, 09 Jan 2008 08:02:10 -0800, Joe Withawk <no@xxxxx> wrote:
[...]
How would you suggest that I move on now? I have an app doing rendering and it occationally gets preempted (or so I beleive, can I test is this is indeed the cause somehow?) and when that happens I lose a few frames. I can not live with even a single lost frame unless the rendering is very complex, which it is generally not. What could be a solution to this?
I don't understand the comment that "I can not live with even a single lost frame". Either you always want to render frames as the fastest rate that the computer is capable of doing, or you are rendering frames in lockstep with some external activity.
In the former case, obviously you do have some wiggle room for a slightly lower frame rate, since performance on differing hardware is going to vary. In the latter case, if you aren't running this program on a computer that can easily keep up with the necessary framerate (and thus, your rendering thread can afford to defer to other threads now and then), then you need to find faster hardware.
In either case, the answer is to stop trying to set your thread to a higher priority.
For rendering applications, it's almost always the case that _smoothness_ is valued more highly than actual frame rate. And as you've seen, starving threads until they get boosted to your own priority is counter to getting a program to run smoothly.
Pete
.
- Follow-Ups:
- Re: profiler which does not just sum up used time
- From: Joe Withawk
- Re: profiler which does not just sum up used time
- References:
- profiler which does not just sum up used time
- From: Joe Withawk
- Re: profiler which does not just sum up used time
- From: Marc Gravell
- Re: profiler which does not just sum up used time
- From: Joe Withawk
- Re: profiler which does not just sum up used time
- From: Willy Denoyette [MVP]
- Re: profiler which does not just sum up used time
- From: Joe Withawk
- profiler which does not just sum up used time
- Prev by Date: Re: Get URL to newly created Virtual Directory
- Next by Date: Re: profiler which does not just sum up used time
- Previous by thread: Re: profiler which does not just sum up used time
- Next by thread: Re: profiler which does not just sum up used time
- Index(es):
Relevant Pages
|