Re: profiler which does not just sum up used time

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
.



Relevant Pages

  • Re: Laggy Performance with Direct 3D
    ... > from immediate rendering, to rendering once per refresh (i.e. ... > recording a series of frame times and see what's up... ... >> shows the frame rate staying at my refresh rate. ... >> reformating and reinstalling. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: my opengl progs - ZX & nonZX themed
    ... > realtime, that you seeing it as realtime movement. ... > was prerendered frame by frame in some 3d rendering studio and putted ... hanging (making still pictures) when such widescreen landscapes appear. ...
    (comp.sys.sinclair)
  • Re: Tearing in Direct3D with TFT/LCD-Display
    ... > I'm having problems with tearing while rendering a Direct3D-scene. ... > Enabled and disabled VSYNC for Direct3D (and yes, ... > can see one half of the first frame, and the other half of the next frame, ... > video frames received from a video decoder. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: HPC vs. server workloads (was: Is a RISC chip more expensive?)
    ... |>>> I was referring to more important film animations, ... Each frame is rendered independently; ... |> possible to break up frames into separate rendering jobs as well. ... things like Mandelbrot, but not real pictures. ...
    (comp.arch)
  • Re: Laggy Performance with Direct 3D
    ... Prior to the new SDK, did your DX code render locked to the refresh ... from immediate rendering, to rendering once per refresh (i.e. ... recording a series of frame times and see what's up... ...
    (microsoft.public.win32.programmer.directx.graphics)